/* ============================================
   Codex for Business — Stylesheet
   Inspired by canvas-mcp.illinihunt.org
   ============================================ */

/* --- Fonts --- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #f0f4f8;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --accent-glow: rgba(8, 145, 178, 0.15);
  --accent-warm: #ea580c;
  --gradient-start: #0891b2;
  --gradient-mid: #0284c7;
  --gradient-end: #0369a1;
  --success: #059669;
  --border: rgba(100, 116, 139, 0.15);
  --border-hover: rgba(8, 145, 178, 0.4);
  --white: #ffffff;
  --font-display: 'Clash Display', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', ui-monospace, monospace;
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-hover);
  --shadow-glow: 0 0 60px var(--accent-glow);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
}

.section--deep {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.section--accent-bg {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #e0f2fe 50%, var(--bg-deep) 100%);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__eyebrow::before {
  content: '//';
  font-weight: 700;
}

.section--deep .section__eyebrow {
  color: #67e8f9;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
}

.section--deep .section__subtitle {
  color: var(--text-muted);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
}

.btn--outline {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__brand:hover { color: var(--accent); }

.nav__brand-icon { font-size: 1.3rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600 !important;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  color: var(--text-primary);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Glow effect */
.hero::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 400;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__note strong {
  color: var(--text-secondary);
}

.hero__note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Build Section --- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.build-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.build-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.build-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.build-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.build-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.build-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Who Section --- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.who-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.who-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(103, 232, 249, 0.3);
  transform: translateY(-3px);
}

.who-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.who-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.who-punchline {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: #67e8f9;
  font-style: italic;
  font-weight: 400;
}

/* --- Steps Section --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.step:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.step__number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step__desc a {
  color: var(--accent);
}

.step__code {
  display: inline-block;
  background: var(--text-primary);
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 6px;
  margin-top: 12px;
}

.steps-punchline {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

/* --- Modules Section --- */
.modules-timeline {
  display: grid;
  gap: 20px;
}

.module-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.module-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.module-card__number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.module-card--m0 .module-card__number {
  background: #ecfdf5;
  color: var(--success);
}

.module-card--m1 .module-card__number {
  background: #ede9fe;
  color: #7c3aed;
}

.module-card--m2 .module-card__number {
  background: #ecfeff;
  color: var(--accent);
}

.module-card--m3 .module-card__number {
  background: #fff7ed;
  color: var(--accent-warm);
}

.module-card__content { min-width: 0; }

.module-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.module-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.module-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.module-card__tag {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.modules-total {
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.modules-total span {
  color: var(--accent);
  font-weight: 700;
}

/* --- Getting Started Section --- */
.getting-started__prereqs {
  margin-bottom: 48px;
}

.getting-started__prereqs h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.prereq-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.prereq-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.prereq-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.getting-started__prompt {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.getting-started__prompt code {
  background: var(--text-primary);
  color: #67e8f9;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card__quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #67e8f9;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-card__author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-item__a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item__a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__credit { line-height: 1.7; }
.footer__credit a { color: #67e8f9; }
.footer__credit a:hover { color: var(--white); }

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--white); }

.footer__built {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-style: italic;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero__title { font-size: 3.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section__title { font-size: 1.85rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.1rem; }
  .hero__inner { padding: 40px 24px; }

  .nav {
    background: rgba(248, 250, 252, 0.95);
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }

  .build-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .module-card {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 24px;
  }

  .module-card__number { width: 52px; height: 52px; font-size: 1.2rem; }

  .stats-bar {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .who-grid { grid-template-columns: 1fr; }
  .module-card { grid-template-columns: 1fr; }
  .module-card__number { width: 48px; height: 48px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge { animation: fadeInUp 0.6s ease both; }
.hero__title { animation: fadeInUp 0.6s ease 0.1s both; }
.hero__subtitle { animation: fadeInUp 0.6s ease 0.2s both; }
.hero__tagline { animation: fadeInUp 0.6s ease 0.3s both; }
.hero__actions { animation: fadeInUp 0.6s ease 0.4s both; }
.hero__note { animation: fadeInUp 0.6s ease 0.5s both; }
