/* hatayas.com landing page. Colors follow the app's light palette (src/theme/index.ts). */
:root {
  --bg: #f4f8fd;
  --deep: #0f2a4d;
  --blue: #1559a6;
  --sky: #6aaeff;
  --amber: #f2b04a;
  --signal: #b86a00;
  --fg: #13243a;
  --text-2: #3b4f68;
  --muted: #566a82;
  --line: #c9d6e6;
  --card: #ffffff;
  --card-line: #dbe5f1;
  --shadow: 0 22px 50px -28px rgba(15, 42, 77, 0.35);
  --display: 'Secular One', 'Heebo', sans-serif;
  --body: 'Heebo', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f4f8fd 0%, #eef5fc 50%, #e7f0fa 100%) var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--amber); color: #1a1205; text-decoration: none;
  font-weight: 800; font-size: 17px;
  box-shadow: 0 10px 30px -8px rgba(242, 176, 74, 0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(242, 176, 74, 0.7); }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-ghost { background: rgba(255, 255, 255, 0.55); color: var(--deep); box-shadow: inset 0 0 0 1.5px rgba(15, 42, 77, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(15,42,77,.08), 0 8px 24px -16px rgba(15,42,77,.3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #1b6ac4, #0f3a73); }
.brand-mark svg { width: 30px; height: 30px; fill: #fff; }
.brand-name { font-family: var(--display); font-size: 24px; color: var(--deep); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.link { text-decoration: none; font-weight: 700; color: var(--muted); padding: 10px 4px; }
.link:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #5ea3ea 0%, #86bdf1 40%, #b9dafa 75%, #e3f0fc 100%); }
/* Climbing from the morning haze near the ground up into bright sky, which matches the page below. */
.space { position: absolute; inset: 0; opacity: 0; background: var(--bg); }
.dawn { position: absolute; inset: 0;
  background: radial-gradient(120% 55% at 50% 112%, rgba(255,196,110,.55), rgba(255,196,110,0) 60%); }
.stars { display: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.rings { position: absolute; left: 50%; top: 60%; width: 0; height: 0; }
.rings i { position: absolute; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%; transform: translate(-50%, -50%); left: 0; top: 0; }
.rings i:nth-child(1) { width: 46vmin; height: 46vmin; }
.rings i:nth-child(2) { width: 78vmin; height: 78vmin; }
.rings i:nth-child(3) { width: 112vmin; height: 112vmin; }

.clouds { position: absolute; inset: 0; pointer-events: none; }
.clouds svg { position: absolute; fill: #ffffff; }
.clouds[data-depth="back"] svg { opacity: .45; filter: blur(8px); }
.clouds[data-depth="mid"] svg { opacity: .6; filter: blur(6px); }
.clouds-front { z-index: 3; }
.clouds-front svg { opacity: .8; filter: blur(12px); }

.hero-copy {
  position: absolute; z-index: 2; inset: 0 var(--gutter) auto var(--gutter);
  top: clamp(96px, 16vh, 170px);
  max-width: 640px;
}
.eyebrow { margin: 0 0 14px; color: var(--blue); font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); color: var(--deep); text-shadow: 0 2px 30px rgba(255,255,255,.45); }
.hero .eyebrow { color: #0f3f7a; }
.split .w { display: inline-block; white-space: pre; }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 1.5vw, 20px); color: #18314f; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; font-size: 14px; color: #2b4565; }

.plane-wrap {
  position: absolute; z-index: 2;
  left: 8%; bottom: 14%;
  width: clamp(260px, 36vw, 540px); aspect-ratio: 200 / 80;
}
.plane { position: relative; z-index: 2; width: 100%; height: 100%;
  filter: drop-shadow(0 16px 18px rgba(15,42,77,.3)); }
/* Afterburner at the nozzle (192,40 in the drawing). The container stretches on scroll (takeoff thrust);
   the inner flame flickers on its own. */
.flame { position: absolute; z-index: 1; left: 95%; top: 50%; width: 20%; height: 10%; margin-top: -5%; transform-origin: left; }
.flame::before { content: ''; position: absolute; left: -12%; top: -60%; width: 46%; height: 220%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,170,60,.8), rgba(255,120,30,0)); filter: blur(4px); }
.flame i { position: absolute; inset: 0; transform-origin: left; border-radius: 20% 80% 80% 20% / 50% 50% 50% 50%;
  background: radial-gradient(ellipse 100% 50% at 0% 50%, #ffffff 0 12%, #fff2b0 22%, #ffc247 40%, #ff7a1a 62%, rgba(255,70,20,0) 84%);
  filter: blur(.7px); animation: flick 70ms linear infinite alternate; }
.flame i::after { content: ''; position: absolute; left: 0; width: 45%; top: 32%; bottom: 32%; border-radius: 50%;
  background: linear-gradient(90deg, #e9f6ff, rgba(160,210,255,0)); }
@keyframes flick { from { transform: scale(.84, .92); opacity: .88; } to { transform: scale(1.06, 1.04); opacity: 1; } }
/* Exhaust trail behind the flame, drawn out as the jet climbs. */
.trail { position: absolute; z-index: 0; left: 100%; top: 50%; width: 150vw; height: 4px; margin-top: -2px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,0)); border-radius: 2px; filter: blur(1px); }
.route-flame { position: absolute; z-index: -1; right: 96%; top: 50%; width: 56%; height: 16%; margin-top: -8%; }
.route-flame i { position: absolute; inset: 0; transform-origin: right; border-radius: 80% 20% 20% 80% / 50% 50% 50% 50%;
  background: radial-gradient(ellipse 100% 50% at 100% 50%, #ffffff 0 14%, #ffd27a 32%, #ff8a2a 58%, rgba(255,70,20,0) 82%);
  animation: flickX 70ms linear infinite alternate; }
@keyframes flickX { from { transform: scale(.8, .9); opacity: .85; } to { transform: scale(1.05, 1.04); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flame i, .route-flame i { animation: none; } }

.scroll-hint { position: absolute; z-index: 2; bottom: 26px; right: var(--gutter);
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: #2b4565; }
.scroll-hint span { width: 22px; height: 34px; border: 2px solid rgba(15,42,77,.4); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--deep); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Why ---------- */
.why { position: relative; padding: clamp(110px, 18vh, 200px) var(--gutter); max-width: 1100px; margin: 0 auto;
  background: transparent; }
.statement { color: var(--deep); font-family: var(--display); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.35; margin: 0; }
.statement .w { display: inline-block; white-space: pre; opacity: .16; }
.why-body { margin: 44px 0 0; max-width: 680px; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }

/* ---------- Stages ---------- */
.stages { position: relative; padding: 80px var(--gutter) 140px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 70px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 62px); color: var(--deep); }
.route { position: relative; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-ghost { fill: none; stroke: rgba(21,89,166,.35); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-line { fill: none; stroke: #e89a24; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242,176,74,.55)); }
.route-jet { position: absolute; left: 0; top: 0; width: 46px; height: 46px; fill: #fff; z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(15,42,77,.35)); pointer-events: none; }
.route-jet svg { display: block; width: 100%; height: 100%; }

.stage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.stage { position: relative; min-height: 230px; display: flex; align-items: center; }
.node {
  position: absolute; top: 50%; z-index: 2;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 24px; color: var(--muted);
  background: #fff; border: 2px solid var(--line);
  transition: background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.stage.on .node { background: var(--amber); color: #1a1205; border-color: var(--amber); box-shadow: 0 0 0 8px rgba(242,176,74,.16), 0 0 30px rgba(242,176,74,.45); transform: scale(1.06); }
.card {
  position: relative;
  width: 42%; padding: 26px 28px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 30px; margin-bottom: 8px; color: var(--deep); }
.card p { margin: 0; color: var(--text-2); }
.card .stage-no { color: var(--signal); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
/* Desktop: cards alternate sides, the route weaves between them. Odd stages sit on the right (RTL start). */
.stage:nth-child(odd) .node { left: 40%; }
.stage:nth-child(odd) { justify-content: flex-start; }
.stage:nth-child(even) .node { left: 60%; }
.stage:nth-child(even) { justify-content: flex-end; }
.stages-note { text-align: center; color: var(--muted); margin: 70px auto 0; max-width: 560px; font-size: 18px; }

/* ---------- What's inside ---------- */
.inside { position: relative; padding: 96px 0 80px; overflow: hidden; }
.inside-head { padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto; }
.stats { list-style: none; margin: 0 auto 60px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; }
@media (min-width: 761px) and (max-height: 860px) { .inside .section-head { margin-bottom: 36px; } .stats { margin-bottom: 36px; } .stats li { padding: 14px 10px; } .feature { min-height: 0; } }
.stats li { text-align: center; padding: 22px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }
.rail { padding: 0 var(--gutter); }
.features { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; width: max-content; }
.feature { width: clamp(280px, 26vw, 360px); min-height: 270px; padding: 30px 28px; border-radius: 24px;
  background: linear-gradient(160deg, #ffffff, #eef5fd); border: 1px solid var(--card-line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  padding: 10px; border-radius: 14px; background: #e2edfa; box-sizing: content-box; }
.feature h3 { font-size: 26px; margin-top: 12px; color: var(--deep); }
.feature p { margin: 0; color: var(--text-2); }
.inside-note { text-align: center; color: var(--muted); margin: 60px var(--gutter) 0; font-size: 17px; }

/* ---------- How it works ---------- */
.how { position: relative; padding: 120px var(--gutter); max-width: 1180px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border-radius: 20px; border: 1px solid transparent;
  opacity: .42; transition: opacity .5s ease, background .5s ease, border-color .5s ease; }
.step.on { opacity: 1; background: var(--card); border-color: rgba(242,176,74,.6); box-shadow: var(--shadow); }
.step-no { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 24px;
  border: 2px solid var(--line); color: var(--muted); transition: all .5s ease; }
.step.on .step-no { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.step h3 { font-size: 26px; margin: 6px 0 6px; color: var(--deep); }
.step p { margin: 0; color: var(--text-2); }
.how-cta { text-align: center; margin-top: 60px; }

.phone { justify-self: center; width: 290px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a3f5c, #111c2c); box-shadow: 0 40px 80px -30px rgba(15,42,77,.55), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f2f5f9; color: #13243a; }
.scr { position: absolute; inset: 0; padding: 60px 22px 24px; display: flex; flex-direction: column; gap: 12px; opacity: 0; }
.scr-title { margin: 0; font-family: var(--display); font-size: 25px; color: #0f3f7a; }
.scr-sub { margin: 0; color: #566a82; font-size: 14px; }
.code-boxes { direction: ltr; display: flex; justify-content: center; gap: 6px; margin: 18px 0 10px; }
.code-boxes i { font-style: normal; width: 34px; height: 46px; border-radius: 10px; border: 2px solid #d3dce8; background: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #13243a; }
.code-boxes i.filled { border-color: #1559a6; }
.scr-btn { margin-top: auto; text-align: center; padding: 14px; border-radius: 14px; background: #1559a6; color: #fff; font-weight: 700; }
.task { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #d3dce8; display: flex; flex-direction: column; }
.task b { color: #1559a6; font-size: 13px; }
.task span { font-weight: 700; }
.ring { position: relative; width: 150px; height: 150px; margin: 10px auto 0; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 11; }
.ring circle { stroke: #e2edfa; }
.ring .ring-fill { stroke: #1559a6; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.ring b { font-family: var(--display); font-weight: 400; font-size: 36px; color: #0f3f7a; line-height: 1; margin-top: 30px; }
.ring span { font-size: 13px; color: #566a82; margin-top: -40px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 10px; direction: ltr; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6aaeff, #1559a6); transform-origin: bottom; }

/* ---------- FAQ ---------- */
.faq { padding: 100px var(--gutter) 120px; max-width: 860px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.qa { border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); box-shadow: 0 10px 30px -24px rgba(15,42,77,.4); }
.q { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; background: none; border: 0; color: var(--fg); font: 700 19px/1.4 var(--body); text-align: right; cursor: pointer; }
.q:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 18px; }
.q i { flex: none; position: relative; width: 18px; height: 18px; }
.q i::before, .q i::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: var(--signal); transition: transform .35s ease; }
.q i::after { transform: rotate(90deg); }
.q[aria-expanded="true"] i::after { transform: rotate(0); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.a > div { overflow: hidden; }
.a p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }
.qa.open .a { grid-template-rows: 1fr; }

/* ---------- Final + footer ---------- */
.final { text-align: center; padding: 120px var(--gutter) 140px;
  background: radial-gradient(80% 70% at 50% 100%, rgba(106,174,255,.28), transparent 70%); }
.final h2 { color: var(--deep); font-size: clamp(30px, 4vw, 54px); max-width: 900px; margin: 0 auto 34px; }
.footer { border-top: 1px solid rgba(15,42,77,.1); padding: 34px var(--gutter) 44px; text-align: center; color: var(--muted); font-size: 14px; }
.footer p { margin: 6px 0; }
.disclaimer { color: var(--fg); font-weight: 500; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav .link { display: none; }
  .hero-copy { top: 92px; }
  .lead { margin: 16px 0 22px; }
  .plane-wrap { left: 4%; bottom: 5%; width: 62vw; }
  .scroll-hint { display: none; }
  .stage { min-height: 0; display: block; }
  .stage .node, .stage:nth-child(odd) .node, .stage:nth-child(even) .node { left: auto; right: 0; top: 28px; margin: 0; width: 44px; height: 44px; font-size: 20px; }
  .stage .card, .stage:nth-child(odd) .card, .stage:nth-child(even) .card { width: auto; margin-right: 60px; padding: 20px; }
  .card h3 { font-size: 25px; }
  .route-jet { width: 34px; height: 34px; }
  .section-head { margin-bottom: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 40px; }
  .features { flex-direction: column; width: auto; }
  .feature { width: auto; min-height: 0; padding: 24px 22px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .step { opacity: 1; padding: 18px; }
  .phone { width: 250px; }
  .q { font-size: 17px; padding: 16px 18px; }
  .a p { padding: 0 18px 18px; }
}
@media (max-height: 640px) and (max-width: 760px) {
  .fine { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span::after { animation: none; }
  .statement .w { opacity: 1; }
}
