/* AdudiOS landing - design tokens */
:root {
  --bg: #f8f5ef;
  --bg-alt: #f1ede4;
  --surface: #ffffff;
  --ink: #0b1b2b;
  --ink-soft: #46586a;
  --line: #e4ded1;
  --emerald: #0d7a6b;
  --emerald-deep: #095c51;
  --emerald-soft: #dcefe9;
  --gold: #b8975a;
  --navy: #0b1b2b;
  --navy-2: #12293e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 43, .05), 0 12px 32px -12px rgba(11, 27, 43, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); line-height: 1.6; font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 14px;
}
.h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; max-width: 760px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 20px -8px rgba(13, 122, 107, .6); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc8b8; }
.btn-ghost:hover { background: rgba(11, 27, 43, .04); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, var(--emerald), var(--navy)); position: relative;
}
.logo-mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); right: 5px; top: 5px; }
.logo b { color: var(--emerald); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { padding: 10px 18px; font-size: .88rem; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  margin: 0 auto; position: relative; transition: transform .2s, background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(13, 122, 107, .16), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; margin: 22px 0 20px; }
h1 em { font-style: normal; color: var(--emerald); }
.hero p.lead { font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.status-line { margin-top: 22px; font-size: .88rem; color: var(--ink-soft); }

/* Dashboard mockup */
.mock-wrap { position: relative; }
.mock-label {
  position: absolute; top: -14px; right: 16px; z-index: 2; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em;
}
.mock {
  display: grid; grid-template-columns: 56px 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
  font-size: .72rem; min-height: 380px;
}
.mock-side { background: var(--navy); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.mock-side i:first-child { background: var(--emerald); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-top strong { font-size: .9rem; }
.mock-top span { color: var(--ink-soft); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px; }
.stat small { color: var(--ink-soft); display: block; font-size: .64rem; }
.stat b { font-size: 1.05rem; letter-spacing: -.02em; }
.mock-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.panel h4 { margin: 0 0 8px; font-size: .68rem; color: var(--ink-soft); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars span { flex: 1; background: var(--emerald-soft); border-radius: 4px 4px 0 0; }
.bars span:nth-child(4), .bars span:nth-child(6) { background: var(--emerald); }
.task { display: flex; align-items: center; gap: 7px; padding: 4px 0; color: var(--ink-soft); }
.task::before { content: ""; width: 10px; height: 10px; border: 1.5px solid #bdb6a5; border-radius: 3px; flex: none; }
.activity li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); list-style: none; }
.activity { margin: 0; padding: 0; }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald-deep); display: grid; place-items: center; font-weight: 700; font-size: .6rem; flex: none; }
.activity em { margin-left: auto; font-style: normal; color: #9a927f; }

/* Cards & grids */
.grid { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 21px; height: 21px; }
.closing { margin-top: 36px; font-weight: 600; font-size: 1.1rem; }
.closing::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.fine { margin-top: 28px; font-size: .86rem; color: var(--ink-soft); }
.alt { background: var(--bg-alt); }

/* AI */
.ai-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
.principles { display: grid; gap: 14px; margin-top: 30px; }
.principle { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.principle .n { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; flex: none; }
.principle h3 { font-size: 1rem; margin-bottom: 2px; }
.principle p { color: var(--ink-soft); font-size: .92rem; }
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.viz .pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Saudi (dark) */
.dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e9eef3; }
.dark .eyebrow { color: #6fd3c2; }
.dark .lead { color: #aebccb; }
.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.dark .card:hover { box-shadow: none; background: rgba(255, 255, 255, .08); }
.dark .card p { color: #aebccb; }
.dark .icon { background: rgba(111, 211, 194, .14); color: #6fd3c2; }
.dark .fine { color: #8b9cae; }

/* Heritage timeline */
.timeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 0; grid-template-columns: 1fr; position: relative; }
.timeline li { position: relative; padding: 0 0 28px 40px; font-weight: 600; font-size: 1.05rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { color: var(--emerald-deep); }
.timeline li:last-child::before { background: var(--emerald); border-color: var(--emerald); }
.timeline small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.story { display: grid; gap: 40px; grid-template-columns: 1fr; }
.story p { color: var(--ink-soft); margin-top: 16px; }

/* Roadmaps */
.road { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: 1fr; }
.road .card { position: relative; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.stage-num { font-size: 2rem; font-weight: 700; color: #d6cdb8; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.status { display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.status.live { background: var(--emerald-soft); color: var(--emerald-deep); border-color: transparent; }

/* CTA + form */
.cta { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e9eef3; border-radius: 28px; padding: 48px 24px; }
.cta .eyebrow { color: #6fd3c2; }
.cta .lead { color: #aebccb; }
.cta-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
form { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr; }
label { font-size: .84rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #d6cfbf; border-radius: 11px;
  background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(13, 122, 107, .35); border-color: var(--emerald); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .78rem; color: var(--ink-soft); }
.form-note a { color: var(--emerald-deep); }
.thanks { display: none; text-align: center; padding: 40px 12px; }
.thanks.show { display: block; }
.thanks h3 { font-size: 1.4rem; margin-bottom: 6px; }
.thanks p { color: var(--ink-soft); }
.error { color: #b3261e; font-size: .85rem; min-height: 1.2em; }

/* About */
.founder-slot {
  margin-top: 36px; border: 1.5px dashed #cfc8b8; border-radius: var(--radius);
  padding: 22px; color: var(--ink-soft); font-size: .92rem; max-width: 640px;
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 88px; }
.foot { display: grid; gap: 32px; grid-template-columns: 1fr; }
.foot p { color: var(--ink-soft); font-size: .92rem; margin-top: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.foot a:hover { color: var(--ink); }
.legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); display: grid; gap: 6px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .viz .pulse { animation: none; }
  .btn, .card { transition: none; }
}

/* Tablet+ */
@media (min-width: 720px) {
  .grid.g2, .road { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .cta { padding: 64px 48px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
  .grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g4 { grid-template-columns: repeat(4, 1fr); }
  .road.r3 { grid-template-columns: repeat(3, 1fr); }
  .ai-grid, .cta-grid, .story { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .timeline li { padding: 36px 8px 0 0; }
  .timeline li::before { top: 0; }
  .timeline li::after { left: 20px; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .foot { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (max-width: 859px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 1rem; }
  section { padding: 64px 0; }
}
