/* Thinking Code design system. Shared tokens precede every component rule. */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('./fonts/PretendardVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Typography */
  --font: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --mono: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --heading-sm: 26px;
  --heading-md: 48px;
  --heading-lg: 72px;
  --tracking-heading: -.055em;
  --tracking-body: -.018em;

  /* Color */
  --ink: #191b20;
  --muted: #626875;
  --subtle: #9298a3;
  --line: #e6e6e6;
  --paper: #fff;
  --surface: #f3f2f0;
  --surface-accent: #f1eaff;
  --accent: #5d3dff;
  --accent-strong: #4329ce;
  --accent-soft: #f0ebff;
  --dark: #242428;
  --dark-card: #292c34;
  --white: #fff;
  --purple: var(--accent);
  --purple-deep: var(--accent-strong);
  --lavender: var(--surface-accent);

  /* Layout and shape */
  --content-width: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-space: 120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px rgba(25, 30, 50, .06);
  --shadow-product: 0 24px 64px rgba(40, 63, 130, .13);
}

html { scroll-padding-top: 88px; }
body { font-family: var(--font); color: var(--ink); font-size: var(--text-md); letter-spacing: var(--tracking-body); line-height: 1.6; }
button, input, textarea, select { font-family: var(--font); }
.container { width: min(var(--content-width), calc(100% - 64px)); }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* Text hierarchy */
.hero h1 { font-size: clamp(54px, 5.4vw, var(--heading-lg)); font-weight: 800; letter-spacing: var(--tracking-heading); line-height: 1.18; }
.section-heading h2, .lab-copy h2, .faq-grid h2, .consult-grid h2, .paths-left h2 { font-size: clamp(38px, 4vw, var(--heading-md)); font-weight: 800; letter-spacing: var(--tracking-heading); line-height: 1.27; }
.eyebrow { color: var(--accent); font-family: var(--font); font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; }
.hero-eyebrow { color: var(--accent); background: var(--accent-soft); font-size: var(--text-xs); }
.hero-lead, .method-summary>p { font-size: var(--text-lg); line-height: 1.7; }
.hero-lead { color: var(--muted); }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.section-heading>p:last-child, .split-heading>p, .lab-copy>p:not(.eyebrow) { font-size: var(--text-md); line-height: 1.75; color: var(--muted); }
.why-card h3, .method-list h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -.035em; }
.why-card p, .method-list p, .faq-list details p, .path-panel p { font-size: var(--text-sm); line-height: 1.75; }

/* Navigation and actions */
.site-header { background: #fff; border-color: var(--line); box-shadow: none; }
.brand { font-size: 19px; letter-spacing: -.04em; font-weight: 800; }
.brand-mark { background: var(--accent); }
.desktop-nav a { color: #3d424b; font-size: var(--text-sm); font-weight: 600; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--accent); }
.nav-cta, .button-primary, .button-dark { background: var(--dark); border-radius: var(--radius-pill); color: #fff; font-weight: 700; }
.nav-cta .icon, .button .icon, .text-link .icon { width: 16px; height: 16px; margin-left: 12px; }
.nav-cta:hover, .button-primary:hover, .button-dark:hover { background: #343943; }
.button { font-size: var(--text-sm); padding: 15px 22px; font-weight: 700; }
.text-link { font-size: var(--text-sm); font-weight: 600; color: #373c45; display: inline-flex; align-items: center; }
.text-link .icon { color: var(--accent); }
:where(a, button, summary, select, textarea):focus-visible { outline: 3px solid #9bb0ff; outline-offset: 3px; }

/* Product surfaces */
.hero-art { background: radial-gradient(circle at 10% 16%, #e7eaff, transparent 38%), radial-gradient(circle at 84% 16%, #dceeff, transparent 42%), linear-gradient(130deg, #edf0ff, #e9f2ff 55%, #f5f0ff); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.product-frame { box-shadow: var(--shadow-product); }
.product-logo { background: var(--accent) !important; }
.product-logo .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.product-sidebar>span { display: grid; place-items: center; }
.product-sidebar>span .icon { width: 18px; height: 18px; }
.product-sidebar .side-active { background: var(--accent-soft); color: var(--accent); }
.product-greeting small, .product-bottom b { color: var(--accent); font-family: var(--font); font-weight: 700; letter-spacing: .02em; }
.product-greeting h3 { font-size: 24px; font-weight: 750; letter-spacing: -.045em; }
.product-step span, .product-chips span { color: var(--accent); background: var(--accent-soft); }
.product-question { box-shadow: var(--shadow-card); }
.product-bottom b, .method-tag, .footer-bottom a { display: inline-flex; align-items: center; gap: 5px; }
.product-bottom .icon, .method-tag .icon, .footer-bottom .icon { width: 13px; height: 13px; }
.review-alert span { display: grid; place-items: center; }
.review-alert .icon { width: 19px; height: 19px; }
.floating-note { border-radius: var(--radius-md); }
.floating-note>span { color: var(--accent); }
.floating-note .icon { width: 24px; height: 24px; }

/* Consistent sections, cards, and showcase panels */
.ticker-heading { font-size: var(--text-sm); color: var(--subtle); }
.ticker-row span { font-size: var(--text-lg); font-weight: 600; color: #777e89; }
.ticker-separator { width: 4px; height: 4px; border-radius: 50%; background: #cbd0d9; }
.why-section { background: var(--surface); }
.why-section .split-heading h2 span { color: #979da8; }
.why-card { border: 1px solid #edf0f3; border-radius: var(--radius-lg); }
.why-card .symbol { width: 88px; height: 88px; display: grid; place-items: center; align-self: center; margin: 36px 0 44px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent); }
.why-card .symbol .icon { width: 42px; height: 42px; stroke-width: 1.7; }
.why-card .card-index { font-size: var(--text-xs); }
.lab-section { background: #f4f7ff; }
.lab-controls button[aria-selected=true] { color: var(--accent); border-color: var(--line); }
.lab-controls button[aria-selected=true] span, .window-label, .note-list b { color: var(--accent); }
.lab-window { box-shadow: var(--shadow-product); border-radius: var(--radius-lg); }
.window-bar, .window-label, .method-tag, .path-stage-top, .path-badge { font-family: var(--font); letter-spacing: .02em; }
.window-bar .icon { width: 14px; height: 14px; }
.window-footer i { background: var(--accent); }
.method-section { background: var(--dark); }
.method-section .eyebrow { color: #9db3ff; }
.method-section .section-heading h2 { font-size: clamp(38px, 4vw, var(--heading-md)); }
.method-section .section-heading h2 span { color: #a7adb9; }
.method-summary>p { color: #c2c7d2; }
.method-summary>div { border-color: #41454f; }
.method-list article { background: var(--dark-card); border: 1px solid #3c4049; border-radius: var(--radius-lg); }
.method-list article:hover { background: #30343e; }
.method-number { width: 54px; height: 54px; border: 1px solid #677aa8; border-radius: var(--radius-md); display: grid; place-items: center; color: #aec0ff; }
.method-number .icon { width: 27px; height: 27px; stroke-width: 1.8; }
.method-list p { color: #b9bfca; }
.method-tag { color: #a8baff; font-size: var(--text-xs); }
.path-tabs button { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.path-tabs button[aria-selected=true], .path-tabs button:hover { color: var(--ink); }
.path-tabs button[aria-selected=true] .icon, .path-tabs button:hover .icon { color: var(--accent); }
.path-tabs .icon { width: 17px; height: 17px; color: #aab0bc; }
.path-stage { background: radial-gradient(circle at 90% 90%, #dbe6ff, transparent 45%), linear-gradient(140deg, #eef3ff, #e5edff); border-radius: var(--radius-xl); }
.path-panel { border-color: #e3e8f3; border-radius: var(--radius-md); box-shadow: var(--shadow-product); }
.path-badge { background: var(--accent-soft); color: var(--accent); }
.path-panel h3 { font-size: var(--heading-sm); font-weight: 750; letter-spacing: -.04em; }
.path-steps .icon { width: 14px; height: 14px; color: var(--accent); }
.path-demo-blocks b { background: var(--accent); }
.path-demo-ai strong { display: inline-flex; align-items: center; gap: 6px; }
.path-demo-ai strong .icon { width: 15px; height: 15px; }
.faq-list, .faq-list details { border-color: var(--line); }
.faq-list summary { font-size: var(--text-md); font-weight: 650; }
.faq-list summary .icon { width: 19px; height: 19px; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.consult-section { background: #f0f4ff; }
.consult-form { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.consult-form select, .consult-form textarea { border-color: var(--line); border-radius: var(--radius-sm); }
.site-footer { background: var(--dark); }

@media (max-width: 800px) {
  .container { width: min(100% - 44px, var(--content-width)); }
  .hero h1 { font-size: clamp(48px, 7vw, 62px); }
  .why-card .symbol { width: 72px; height: 72px; margin: 20px 0 28px; }
  .why-card .symbol .icon { width: 36px; height: 36px; }
  .path-tabs button { font-size: var(--text-sm); }
  .menu-button span { background: var(--ink); }
  .mobile-nav:not([hidden]) { background: #fff; border-color: var(--line); }
  .mobile-nav a { color: var(--ink); }
  .mobile-nav .icon { width: 16px; height: 16px; }
}
@media (max-width: 580px) {
  :root { --heading-md: 34px; --heading-lg: 46px; }
  .container { width: calc(100% - 36px); }
  .hero h1 { font-size: var(--heading-lg); }
  .section-heading h2, .lab-copy h2, .faq-grid h2, .consult-grid h2, .paths-left h2, .method-section .section-heading h2 { font-size: var(--heading-md); }
  .hero-lead { font-size: var(--text-md); }
  .ticker-row span { font-size: var(--text-sm); }
  .why-card .symbol { width: 64px; height: 64px; margin: 12px 0 22px; }
  .why-card .symbol .icon { width: 32px; height: 32px; }
  .why-card h3, .method-list h3 { font-size: 20px; }
  .path-tabs button { font-size: var(--text-md); }
  .path-panel h3 { font-size: 23px; }
}
/* Accent details inside the sample workspace use the same brand blue. */
.path-stage-dot { color: #8ea7ff; }
.path-demo-blocks>* { background: var(--accent-soft); color: var(--accent-strong); }
.path-demo-blocks b { color: #fff; background: var(--accent); }
.path-demo-project b, .path-demo-ai b, .path-demo-project strong, .path-demo-ai strong { color: var(--accent); }
