/* FocusOS Gridverse Landing Page Styles */
/* Design Tokens */
:root {
  /* Palette */
  --page: #090A0B;               /* Void Black */
  --surface: #191A1C;            /* Graphite */
  --surface-raised: #191A1C;     /* Same as surface for consistency */
  --surface-deep: #191A1C;       /* Same as surface */
  --ink: #F5F5F0;                /* Soft White */
  --ink-soft: #A7A7A0;           /* Muted Silver */
  --muted: #A7A7A0;              /* Alias */
  --rule: rgba(255,255,255,0.08);/* Subtle rule */
  --accent: #F5C842;             /* Focus Yellow */
  --accent-ink: #090A0B;         /* Text on accent */
  --focus: #D4AF37;              /* Metallic Gold for hover/focus */
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
  --font-display: Inter, "Segoe UI", Arial, sans-serif;
  --content-width: 1180px;
  --radius-panel: 16px;
  --radius-control: 10px;
  --ease-out: cubic-bezier(.2,.75,.25,1);
}

/* Global resets */
* { box-sizing: border-box; }
html, body { min-width: 320px; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--accent-ink); background: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; transform: translateY(-150%); border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); background: var(--page); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; width: 112px; height: 76px; overflow: hidden; }
.brand img { width: 112px; height: 76px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.primary-nav a, .site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color 180ms var(--ease-out); }
.primary-nav a:hover, .site-footer nav a:hover { color: var(--accent); }
.primary-nav .button { color: var(--accent-ink); }

/* Buttons */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--accent); border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.button:hover { transform: translateY(-2px); border-color: var(--focus); background: var(--focus); box-shadow: 0 4px 0 var(--accent-ink); }
.button:active { transform: translateY(0); }
.button-small { min-height: 44px; padding-inline: 17px; font-size: 14px; }
.text-link { display: inline-flex; min-height: 48px; align-items: center; color: var(--ink); font-size: 15px; text-decoration-color: var(--muted); text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Section layout */
.section-wrap { padding-block: 112px; }
.gridverse-layer { transform: perspective(800px) rotateX(2deg) rotateY(-2deg); transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) {
  .gridverse-layer { transform: none; }
}

/* Hero */
.hero { padding-top: 74px; padding-bottom: 86px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(40px, 6vw, 82px); }
.hero-copy { min-width: 0; animation: settle-in 500ms var(--ease-out) both; }
.hero-kicker, .section-kicker { margin: 0 0 18px; color: var(--accent); font-size: 14px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--font-display); }
h1 { max-width: 9ch; margin-bottom: 22px; font-size: clamp(48px, 6vw, 76px); font-weight: 650; letter-spacing: -.065em; line-height: 1.02; }
.hero-description { max-width: 40ch; margin-bottom: 28px; color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-note { margin: 25px 0 0; color: var(--muted); font-size: 14px; }

/* Product preview – glass surface */
.product-preview { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--rule); border-radius: var(--radius-panel); background: rgba(25,26,28,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: settle-in 620ms 70ms var(--ease-out) both; }
.preview-topline { display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 8px 12px; color: var(--ink-soft); font-size: 12px; }
.preview-account { color: var(--muted); }
.preview-body { display: grid; grid-template-columns: 138px minmax(0, 1fr); min-height: 366px; overflow: hidden; border: 1px solid var(--rule); border-radius: 11px; background: var(--page); }
.preview-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 18px 10px 10px; border-right: 1px solid var(--rule); background: var(--surface-deep); }
.preview-sidebar-label { margin: 0 8px 9px; color: var(--muted); font-size: 11px; }
.preview-nav-item { min-height: 31px; display: flex; align-items: center; padding: 0 9px; border-radius: 7px; color: var(--ink-soft); font-size: 11px; }
.preview-nav-item.active { background: var(--surface-raised); color: var(--accent); }
.preview-profile { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 2px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 9px; }
.preview-avatar { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); font-size: 11px; }
.preview-main { min-width: 0; padding: 22px clamp(14px, 2.3vw, 28px); }
.preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.preview-crumb { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.preview-heading h2 { margin: 0; font-size: clamp(17px, 2vw, 24px); font-weight: 600; letter-spacing: -.04em; }
.preview-date { padding-bottom: 2px; color: var(--muted); font-size: 10px; }
.preview-work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, .58fr); gap: 10px; }
.preview-panel { min-width: 0; padding: 13px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.preview-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.preview-panel-heading h3 { margin: 0; font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.preview-panel-heading > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.preview-task { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.task-check { width: 13px; height: 13px; margin-top: 2px; border: 1px solid var(--muted); border-radius: 4px; }
.task-check.checked { display: grid; place-items: center; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 9px; }
.preview-task strong, .preview-task small { display: block; overflow-wrap: break-word; }
.preview-task strong { font-size: 10px; font-weight: 500; line-height: 1.35; }
.preview-task small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.task-complete strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.preview-focus { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; }
.focus-display { margin: 7px 0 3px; font-size: 33px; font-variant-numeric: tabular-nums; font-weight: 550; letter-spacing: -.06em; line-height: 1; }
.focus-display span { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.preview-focus p, .preview-plan p { margin: 4px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.focus-start { display: inline-flex; min-height: 29px; align-items: center; margin-top: auto; padding: 0 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 9px; font-weight: 600; }
.preview-plan { grid-column: 1 / -1; min-height: 82px; }
.preview-plan .preview-panel-heading { margin-bottom: 4px; }
.plan-line { display: grid; grid-template-columns: .45fr 1fr; gap: 7px; }
.plan-line span { height: 3px; border-radius: 2px; background: var(--surface-raised); }
.plan-line span:first-child { background: var(--accent); }
.product-preview figcaption { padding: 12px 5px 0; color: var(--muted); font-size: 11px; }

/* Workspace Section */
.workspace-section { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface-deep); }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 48px; align-items: end; margin-bottom: 55px; }
.section-heading .section-kicker { grid-column: 1 / -1; }
.section-heading h2, .workflow-intro h2, .closing-inner h2 { max-width: 15ch; margin-bottom: 0; font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.section-heading > p:last-child, .workflow-intro > p:last-child { max-width: 42ch; margin: 0; color: var(--muted); font-size: 17px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.feature-row { min-width: 0; min-height: 168px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 44px; align-items: center; gap: 16px; padding: 25px 22px 25px 0; border-bottom: 1px solid var(--rule); }
.feature-row:nth-child(odd) { border-right: 1px solid var(--rule); }
.feature-row:nth-child(even) { padding-left: 24px; }
.feature-index { align-self: start; padding-top: 6px; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.feature-row h3, .workflow-steps h3 { margin-bottom: 7px; font-size: 22px; font-weight: 550; letter-spacing: -.035em; }
.feature-row p, .workflow-steps p { max-width: 38ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink-soft); font-size: 13px; }
.feature-meow img { width: 42px; height: 42px; object-fit: contain; }

/* Workflow Section */
.workflow-section { padding-block: 120px; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 9vw, 130px); }
.workflow-intro .section-kicker { margin-bottom: 18px; }
.workflow-intro > p:last-child { margin-top: 22px; }
.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.workflow-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 23px 0; border-bottom: 1px solid var(--rule); }
.step-number { padding-top: 4px; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.workflow-steps h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; }

/* Closing Section */
.closing-section { padding-top: 0; padding-bottom: 112px; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--surface); }
.closing-inner .section-kicker { margin-bottom: 12px; }
.closing-inner h2 { font-size: clamp(30px, 4vw, 46px); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface-deep); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 35px; padding-block: 30px; }
.footer-brand { display: block; width: 70px; height: 48px; overflow: hidden; }
.footer-brand img { width: 70px; height: 48px; object-fit: contain; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { font-size: 13px; color: var(--ink-soft); text-decoration: none; transition: color 180ms var(--ease-out); }
.site-footer nav a:hover { color: var(--accent); }
.footer-copyright { grid-column: 2 / -1; justify-self: end; color: var(--muted); font-size: 12px; }

/* Legal pages – keep untouched */
.legal-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: block; width: 112px; height: 76px; flex: 0 0 auto; overflow: hidden; }
.legal-brand img { width: 112px; height: 76px; object-fit: contain; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px clamp(14px, 2.5vw, 32px); }
.legal-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: color 180ms var(--ease-out); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--accent); }
.legal-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.legal-main { padding-block: clamp(40px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.legal-content { width: 100%; min-width: 0; max-width: 820px; margin-inline: auto; padding: clamp(25px, 6vw, 64px); border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--surface); }
.legal-home-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 22px; color: var(--accent); font-size: 14px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.legal-content h1 { margin-bottom: 30px; font-size: clamp(36px, 6vw, 54px); line-height: 1.08; }
.legal-content > p { max-width: 68ch; margin-bottom: 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.legal-content strong { color: var(--ink); }
.legal-content a:not(.legal-home-link) { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: 4px; }
.legal-content a:not(.legal-home-link):hover { color: var(--accent); text-decoration-color: var(--accent); }
.legal-content > p:last-of-type { margin-top: 30px; margin-bottom: 0; padding: 17px 20px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); }
.legal-main + footer { display: flex; min-height: 72px; align-items: center; justify-content: center; gap: 18px; padding: 18px 24px; border-top: 1px solid var(--rule); background: var(--surface-deep); color: var(--muted); font-size: 13px; }
.legal-main + footer a { color: var(--ink-soft); text-decoration: none; text-underline-offset: 4px; }
.legal-main + footer a:hover { color: var(--accent); text-decoration: underline; }

@keyframes settle-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .section-wrap { padding-block: 86px; }
  .hero { padding-top: 48px; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { max-width: 640px; }
  h1 { max-width: 11ch; font-size: clamp(48px, 9vw, 68px); }
  .product-preview { width: min(100%, 760px); justify-self: center; }
  .workspace-section { padding-block: 82px; }
  .workflow-section { padding-block: 90px; }
  .closing-section { padding-top: 0; padding-bottom: 82px; }
}
@media (max-width: 620px) {
  .container { width: min(var(--content-width), calc(100% - 36px)); }
  .header-inner { min-height: 76px; gap: 10px; }
  .brand, .brand img { width: 86px; height: 60px; }
  .primary-nav { gap: 12px; }
  .primary-nav > a:not(.button) { display: none; }
  .button-small { min-height: 44px; padding-inline: 13px; font-size: 13px; }
  .hero { padding-top: 40px; padding-bottom: 66px; }
  .hero-grid { gap: 34px; }
  h1 { max-width: 10ch; margin-bottom: 16px; font-size: clamp(42px, 13vw, 58px); }
  .hero-kicker, .section-kicker { margin-bottom: 12px; font-size: 13px; }
  .hero-description { margin-bottom: 20px; font-size: 17px; }
  .hero-actions { align-items: flex-start; gap: 8px 18px; }
  .hero-note { margin-top: 17px; font-size: 13px; }
  .product-preview { padding: 8px; border-radius: 12px; }
  .preview-topline { min-height: 30px; font-size: 10px; }
  .preview-body { grid-template-columns: 82px minmax(0, 1fr); min-height: 330px; }
  .preview-sidebar { gap: 3px; padding: 12px 5px 7px; }
  .preview-sidebar-label { margin-inline: 5px; font-size: 9px; }
  .preview-nav-item { min-height: 28px; padding-inline: 6px; font-size: 9px; }
  .preview-profile { gap: 4px; font-size: 7px; }
  .preview-avatar { width: 20px; height: 20px; }
  .preview-main { padding: 14px 10px; }
  .preview-heading { align-items: flex-start; margin-bottom: 13px; }
  .preview-crumb, .preview-date { font-size: 8px; }
  .preview-heading h2 { font-size: 15px; }
  .preview-work-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .preview-panel { padding: 10px; }
  .preview-panel-heading { margin-bottom: 8px; }
  .preview-panel-heading h3 { font-size: 10px; }
  .preview-panel-heading > span { font-size: 8px; }
  .preview-task { gap: 6px; padding: 8px 0; }
  .preview-task strong { font-size: 9px; }
  .preview-task small { font-size: 8px; }
  .preview-focus { display: none; }
  .preview-plan { grid-column: auto; min-height: 66px; }
  .preview-plan p { margin-bottom: 8px; }
  .product-preview figcaption { font-size: 10px; }
  .workspace-section, .workflow-section { padding-block: 72px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-bottom: 34px; }
  .section-heading .section-kicker { grid-column: auto; margin-bottom: 0; }
  .section-heading h2, .workflow-intro h2 { font-size: 37px; }
  .section-heading > p:last-child, .workflow-intro > p:last-child { font-size: 16px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-row, .feature-row:nth-child(even) { min-height: 134px; grid-template-columns: 34px minmax(0, 1fr) 38px; gap: 11px; padding: 20px 0; border-right: 0; }
  .feature-row h3 { font-size: 20px; }
  .feature-row p { font-size: 14px; }
  .feature-mark { width: 34px; height: 34px; }
  .feature-meow img { width: 36px; height: 36px; }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .workflow-steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .closing-section { padding-bottom: 70px; }
  .closing-inner { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
  .closing-inner h2 { font-size: 34px; }
  .footer-inner { grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; }
  .footer-inner > p { grid-column: 2; font-size: 12px; }
  .site-footer nav { grid-column: 1 / -1; gap: 20px; }
  .footer-copyright { grid-column: 1 / -1; justify-self: start; }
  .legal-header-inner { min-height: 0; flex-wrap: wrap; gap: 2px 12px; padding-block: 8px 12px; }
  .legal-brand, .legal-brand img { width: 86px; height: 60px; }
  .legal-nav { width: 100%; justify-content: space-between; gap: 4px 10px; }
  .legal-nav a { min-height: 42px; font-size: 13px; }
  .legal-main { padding-block: 28px 56px; }
  .legal-main .container { width: calc(100vw - 36px); max-width: calc(100vw - 36px); }
  .legal-content { padding: 23px 20px; border-radius: 13px; }
  .legal-home-link { margin-bottom: 15px; }
  .legal-content h1 { margin-bottom: 23px; font-size: clamp(34px, 10vw, 44px); }
  .legal-content > p { margin-bottom: 18px; font-size: 15px; line-height: 1.72; }
  .legal-content > p:last-of-type { margin-top: 24px; padding: 15px; }
  .legal-main + footer { justify-content: flex-start; flex-wrap: wrap; gap: 12px; padding-inline: 18px; }
}