/* Aashram — design tokens
   Lagoon  #0E3B43  primary brand field
   Deep    #082429  hero shadow / footer
   Mist    #E8EFEE  page background
   Ink     #0A1F24  body text
   Slate   #4B5E62  secondary text
   Marigold#F2A541  single accent (actions, highlights)
*/
:root {
  --lagoon: #0e3b43;
  --deep: #082429;
  --mist: #e8efee;
  --paper: #f7faf9;
  --ink: #0a1f24;
  --slate: #4b5e62;
  --line: #cfdcda;
  --marigold: #f2a541;
  --marigold-deep: #d98a24;
  --max: 1180px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo svg { flex: none; }
.logo span { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .nav-cta { color: var(--deep); background: var(--marigold); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { background: #f6b65f; color: var(--deep); }

/* Header variant on light inner pages */
.site-header.solid { position: relative; background: var(--lagoon); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 40%, #155561 0%, rgba(21,85,97,0) 70%),
    linear-gradient(180deg, var(--lagoon) 0%, var(--deep) 100%);
  color: #fff;
  padding: 168px 0 0;
}
.rings { position: absolute; right: -260px; top: -120px; width: 1100px; height: 1100px; pointer-events: none; opacity: .5; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 140px; }
.hero h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 28px;
  font-variation-settings: "wdth" 85;
}
.hero p { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.76); max-width: 30em; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--marigold); color: var(--deep); }
.btn-primary:hover { background: #f6b65f; }
.btn-quiet { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-quiet:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--lagoon); color: #fff; }
.btn-dark:hover { background: #134b55; }

/* ---------- Devices (the memorable element) ---------- */
.devices { position: relative; height: 560px; }
.tablet {
  position: absolute; left: 0; bottom: -36px; width: 600px; height: 430px;
  background: #11161a; border-radius: 34px; padding: 18px;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.65), inset 0 0 0 2px #2a333a;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) .1s both;
}
.phone {
  position: absolute; right: -10px; bottom: 70px; width: 210px; height: 430px;
  background: #11161a; border-radius: 40px; padding: 12px;
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.7), inset 0 0 0 2px #2a333a;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) .28s both;
}
.screen { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: relative; }
.phone .screen { border-radius: 30px; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tablet, .phone { animation: none; } }

/* Game screen */
.game { background: linear-gradient(180deg, #bfe6f2 0%, #e4f5f8 62%, #9fd18a 62%, #86c06f 100%); }
.game .sun { position: absolute; right: 190px; top: 30px; width: 54px; height: 54px; border-radius: 50%; background: #ffd77a; box-shadow: 0 0 0 10px rgba(255,215,122,.35); }
.game .cloud { position: absolute; background: #fff; border-radius: 40px; opacity: .9; }
.game .creature { position: absolute; left: 238px; bottom: 60px; width: 150px; }
.game .prompt { position: absolute; left: 36px; top: 26px; background: rgba(255,255,255,.85); color: #24414a; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.game .tiles { position: absolute; left: 36px; bottom: 34px; display: grid; grid-template-columns: repeat(3, 62px); gap: 12px; }
.tile { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font: 700 34px/1 var(--font); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.14); }
.tile.lift { transform: translate(150px, -110px) rotate(8deg); box-shadow: 0 18px 24px rgba(0,0,0,.18); }

/* Parent progress screen */
.progress { background: var(--paper); color: var(--ink); padding: 34px 16px 16px; font-size: 12px; }
.progress h4 { margin: 0 0 2px; font-size: 17px; letter-spacing: -.01em; }
.progress .sub { color: var(--slate); margin: 0 0 16px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
.stat b { display: block; font-size: 24px; line-height: 1.1; color: var(--lagoon); }
.bar-row { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.bar-row span { width: 14px; font-weight: 700; }
.bar { flex: 1; height: 7px; background: #e1eae8; border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lagoon); border-radius: 9px; }
.bar i.warm { background: var(--marigold); }

/* ---------- Sections ---------- */
section { position: relative; }
.intro { padding: 160px 0 110px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.intro h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -.028em; font-weight: 600; margin: 0; }
.intro p { color: var(--slate); font-size: 19px; margin: 0 0 18px; max-width: 36em; }

.genres { padding: 0 0 120px; }
.genre-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.genre { padding: 30px 32px 0 0; }
.genre + .genre { padding-left: 32px; border-left: 1px solid var(--line); }
.genre h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 600; }
.genre p { color: var(--slate); margin: 0; }
.glyph { width: 44px; height: 44px; margin-bottom: 22px; }

/* Featured title */
.featured { background: var(--paper); padding: 120px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; }
.app-badge { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.app-icon { width: 76px; height: 76px; border-radius: 19px; background: linear-gradient(150deg, #ffbe5c, #f08d2a); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(217,138,36,.7); }
.app-badge strong { display: block; font-size: 20px; letter-spacing: -.01em; }
.app-badge small { color: var(--slate); font-size: 15px; }
.featured h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.028em; font-weight: 600; margin: 0 0 22px; }
.featured p { color: var(--slate); font-size: 18px; margin: 0 0 28px; max-width: 34em; }
.points { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points svg { flex: none; margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--lagoon); }
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 5px rgba(242,165,65,.25); }

.letters { position: relative; aspect-ratio: 1 / 1; max-width: 500px; justify-self: end; width: 100%; }
.letters .tile { position: absolute; width: 23%; height: 23%; font-size: clamp(30px, 4vw, 54px); border-radius: 22%; }

/* Standards */
.standards { padding: 130px 0; }
.standards-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.standards h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -.028em; font-weight: 600; margin: 0; }
.commit { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.commit h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
.commit p { color: var(--slate); margin: 0; font-size: 16px; }

/* CTA + footer */
.cta { background: var(--lagoon); color: #fff; padding: 110px 0; overflow: hidden; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 14em; }
.site-footer { background: var(--deep); color: rgba(255,255,255,.6); font-size: 14px; padding: 56px 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--lagoon), var(--deep)); color: #fff; padding: 168px 0 80px; position: relative; overflow: hidden; }
.page-hero .rings { right: -420px; top: -380px; opacity: .35; }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 0 0 18px; position: relative; }
.page-hero p { font-size: 19px; color: rgba(255,255,255,.75); margin: 0; max-width: 34em; position: relative; }
.page-body { padding: 90px 0 120px; }

.prose { max-width: 700px; }
.prose h2 { font-size: 23px; letter-spacing: -.015em; margin: 52px 0 10px; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--slate); margin: 0 0 16px; }
.prose a { color: var(--lagoon); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-aside h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.contact-aside p { color: var(--slate); margin: 0 0 30px; }
.contact-aside a { color: var(--lagoon); font-weight: 600; }
.form { background: var(--paper); border-radius: 26px; padding: 40px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(8,36,41,.35); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(14,59,67,.12); }
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-foot p { margin: 0; font-size: 14px; color: var(--slate); }
.form-foot a { color: var(--lagoon); font-weight: 600; }
.status-msg { margin: 18px 0 0; font-weight: 600; }
.status-msg.ok { color: #1f7a4d; }
.status-msg.bad { color: #b42318; }
button:disabled { opacity: .6; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 20px; }
  .devices { height: 460px; transform: scale(.82); transform-origin: left bottom; }
  .intro-grid, .featured-grid, .standards-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .letters { justify-self: start; max-width: 380px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 18px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 130px; }
  .hero p { font-size: 18px; }
  .devices { height: 330px; transform: scale(.56); width: 178%; }
  .intro { padding: 110px 0 80px; }
  .genre-row { grid-template-columns: 1fr; }
  .genre, .genre + .genre { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .featured, .standards, .cta { padding: 80px 0; }
  .commit { grid-template-columns: 1fr; gap: 30px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .form { padding: 24px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .page-hero { padding: 130px 0 60px; }
}
