/* AeroCAD's product site: a quiet drafting grid, warm accents, precise details. */
:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #fdfdfb;
  --surface-2: #eeefec;
  --nav-bg: rgba(245, 245, 242, .92);
  --text: #22262a;
  --muted: #5d646a;
  --faint: #687079;
  --border: #d9ddda;
  --grid: rgba(85, 91, 96, .085);
  --accent: #ad480c;
  --accent-fill: #ff954f;
  --accent-hover: #ffaa70;
  --accent-soft: #f9eadd;
  --green: #24824a;
  --shadow: 0 28px 80px -30px rgba(23, 34, 42, .18);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --max-width: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101214;
  --surface: #171a1d;
  --surface-2: #1e2226;
  --nav-bg: rgba(16, 18, 20, .92);
  --text: #eeefed;
  --muted: #a1a8ae;
  --faint: #969ea6;
  --border: #30353a;
  --grid: rgba(159, 166, 173, .065);
  --accent: #ffa063;
  --accent-soft: #2d231d;
  --green: #8cce9c;
  --shadow: 0 30px 80px -25px rgba(0, 0, 0, .6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101214; --surface: #171a1d; --surface-2: #1e2226;
    --nav-bg: rgba(16, 18, 20, .92); --text: #eeefed;
    --muted: #a1a8ae; --faint: #969ea6; --border: #30353a;
    --grid: rgba(159, 166, 173, .065); --accent: #ffa063;
    --accent-soft: #2d231d; --green: #8cce9c;
    --shadow: 0 30px 80px -25px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #191511; background: #ffb078; }
h1, h2, h3, p, figure { margin: 0; }
svg { display: block; }
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 10px 18px; background: var(--accent-fill); color: #17120e; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: var(--nav-bg); backdrop-filter: blur(16px); }
.nav-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: -.9px; }
.brand img { flex: none; }
.icon-slot { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.icon-slot img { display: block; object-fit: contain; }
.logo-slot { display: flex; align-items: center; justify-content: center; width: min(320px, 100%); aspect-ratio: 10 / 3; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); margin-bottom: 28px; overflow: hidden; }
.logo-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-cad { font-weight: 400; }
.alpha-tag { display: inline-block; padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .6px; }
.brand .alpha-tag { margin-left: 3px; }
.nav-right, .nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; text-decoration: none; font-weight: 500; }
.nav-links a { color: var(--muted); padding-block: 12px; }
.nav-links a:hover, .footer-links a:hover { color: var(--accent); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.hero { position: relative; padding-block: 95px 64px; }
.hero-kicker { display: flex; align-items: center; gap: 11px; font: 11px/1.6 var(--mono); letter-spacing: 1px; color: var(--muted); margin-bottom: 29px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex: none; }
.kicker-rule { width: 56px; height: 1px; background: var(--border); }
.hero h1 { font-size: clamp(48px, 6.9vw, 86px); line-height: 1.08; font-weight: 600; letter-spacing: -.065em; }
.hero h1 > span { color: var(--muted); }
.hero-description { margin-top: 25px; color: var(--muted); font-size: 18px; line-height: 1.8; letter-spacing: -.2px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 47px; border-radius: 5px; padding: 12px 18px; border: 1px solid transparent; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.download-icon { display: block; width: 18px; height: 18px; flex: none; object-fit: contain; }
.user-image { visibility: hidden; }
.user-image.is-loaded { visibility: visible; }
.button-primary { background: var(--accent-fill); color: #21170f; border-color: var(--accent-fill); }
.button-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.button[aria-disabled="true"] { cursor: default; }
.button-quiet { color: var(--text); }
.button-quiet:hover { border-color: var(--border); background: var(--surface); }
.button-quiet span { margin-left: 5px; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font: 9px/1.8 var(--mono); color: var(--faint); margin-top: 23px; letter-spacing: .4px; }
.meta-dot { color: var(--faint); }
.hero-coordinate { position: absolute; right: 0; bottom: 100px; padding: 10px 0 0 16px; border-left: 1px solid var(--border); font: 10px/1.8 var(--mono); color: var(--faint); }
.hero-coordinate span { display: block; color: var(--accent); font-size: 9px; margin-top: 8px; }

.section-overline { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--faint); margin-bottom: 14px; }
.section-overline h2, .section-overline > span { font: 9px/1.5 var(--mono); letter-spacing: .7px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-slot { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.gallery-image { display: block; width: 100%; height: 100%; object-fit: contain; }

.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 34px; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--accent); font: 10px/1.6 var(--mono); letter-spacing: 1px; margin-bottom: 17px; }
.section h2 { font-size: clamp(29px, 3.5vw, 42px); letter-spacing: -.045em; line-height: 1.17; font-weight: 550; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 352px; line-height: 1.85; padding-bottom: 3px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 26px; display: flex; flex-direction: column; transition: border-color .15s ease; }
.feature-card:hover { border-color: var(--faint); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.card-top svg { width: 29px; height: 29px; color: var(--accent); }
.card-top span { font: 9px var(--mono); color: var(--faint); letter-spacing: .5px; }
.feature-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.45px; margin-bottom: 11px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 24px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.card-tags span { background: var(--surface-2); border: 1px solid var(--border); padding: 4px 6px; border-radius: 3px; font: 8px/1.4 var(--mono); color: var(--muted); letter-spacing: .1px; }
.guide { border-top: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--surface); }
.steps li { position: relative; padding: 28px; }
.steps li + li { border-left: 1px solid var(--border); }
.step-number { display: block; font: 11px var(--mono); color: var(--accent); margin-bottom: 27px; }
.steps h3 { font-weight: 600; font-size: 17px; letter-spacing: -.4px; margin-bottom: 10px; }
.steps p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.key-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 22px; font-size: 10px; color: var(--muted); }
kbd { display: inline-block; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; background: var(--surface-2); color: var(--text); font: 10px/1.7 var(--mono); }
.key-hints kbd:not(:first-child) { margin-left: 5px; }

.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding-top: 0; }
.faq h2 { font-size: 29px; }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; font-size: 13px; font-weight: 500; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { font: 19px var(--mono); color: var(--faint); transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { margin-bottom: 20px; padding-right: 28px; color: var(--muted); font-size: 13px; line-height: 1.85; }
details p a { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 35px; padding-block: 30px; border-top: 1px solid var(--border); }
.footer-brand .brand { font-size: 17px; gap: 8px; }
.footer-brand p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 11px; text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; font: 8px/1.6 var(--mono); letter-spacing: .7px; color: var(--faint); }

@media (min-width: 1500px) { .hero { padding-top: 112px; } }
@media (max-width: 1000px) {
  .hero-coordinate { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding: 22px; }
  .key-hints { font-size: 9px; gap: 4px; }
  .faq { gap: 40px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .nav-inner { min-height: 70px; }
  .nav-right { gap: 10px; }
  .nav-links { display: none; }
  .brand { font-size: 19px; gap: 8px; }
  .brand .alpha-tag { font-size: 8px; }
  .hero { padding-block: 65px 45px; }
  .hero h1 { font-size: clamp(44px, 8vw, 60px); }
  .hero-description { font-size: 16px; }
  .hero-coordinate { display: none; }
  .hero-meta { gap: 8px; font-size: 8px; }
  .section-overline > span { display: none; }
  .section-overline h2 { font-size: 8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding-block: 55px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-heading > p { max-width: 460px; }
  .feature-card { padding: 22px; }
  .card-top span { font-size: 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 26px; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--border); }
  .step-number { margin-bottom: 14px; }
  .key-hints { font-size: 11px; }
  .faq { padding-top: 0; grid-template-columns: 1fr; gap: 25px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { gap: 20px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .nav-right { gap: 3px; }
  .brand .alpha-tag { display: none; }
  .hero-kicker { font-size: 8px; letter-spacing: .8px; gap: 8px; }
  .kicker-rule { width: 22px; }
  .hero h1 { font-size: clamp(35px, 9.8vw, 47px); letter-spacing: -.06em; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 7px; }
  .button { font-size: 12px; gap: 9px; padding-inline: 14px; }
  .hero-meta { max-width: 310px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
