/* ============================================================================
   Noor — landing page
   Design language ported 1:1 from the iOS app (Noor/DesignSystem/*.swift):
   a calm night sky — deep midnight navy ground, warm soft-gold accent, an
   elegant serif for spiritual headlines over SF for UI. Procedural crescent +
   starfield motifs. No photos of faces, no literal mosques.
   ============================================================================ */

/* ----------------------------------------------------------------- tokens -- */
:root {
  /* The night — backgrounds (Noor enum) */
  --midnight:    #0B1220;
  --navy:        #111B30;
  --navy-raised: #18243D;
  --dusk:        #1E2C49;
  --twilight:    #2A3B63;

  /* Warmth & accents */
  --gold:        #D9B36C;
  --gold-bright: #E7C988;
  --sand:        #E8D9BC;
  --emerald:     #5B8A72;
  --emerald-dim: #3C5E4E;

  /* Text */
  --ink:    #F5F1E8;
  --cream:  #EFE9DC;
  --muted:  #A9B1C4;
  --faint:  #6B7488;

  /* Lines & glass */
  --hairline:     rgba(255,255,255,0.08);
  --glass-stroke: rgba(255,255,255,0.12);
  --glass-fill:   rgba(255,255,255,0.045);
  --glass-fill-2: rgba(255,255,255,0.07);

  /* Type — serif maps to "New York" on Apple platforms (matches the app) */
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --arabic: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif;

  /* Layout */
  --margin: 24px;
  --maxw: 1180px;
  --radius-card: 22px;
  --radius-pill: 999px;

  --gold-grad: linear-gradient(135deg, var(--gold-bright), var(--gold));
  --night-grad: linear-gradient(to bottom, var(--twilight), var(--dusk) 26%, var(--navy) 62%, var(--midnight));
}

/* ------------------------------------------------------------------ reset -- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--midnight);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(217,179,108,0.28); color: var(--ink); }

/* --------------------------------------------------------------- type kit -- */
.overline {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.7px; color: rgba(217,179,108,0.85);
}
.serif { font-family: var(--serif); }
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.display { font-size: clamp(40px, 7.2vw, 76px); font-weight: 600; line-height: 1.04; }
.hero-title { font-size: clamp(38px, 6.4vw, 68px); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); }
.quote { font-family: var(--serif); font-weight: 400; font-style: normal; }
.muted { color: var(--muted); }
.arabic { font-family: var(--arabic); direction: rtl; }

/* ------------------------------------------------------------- structure -- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--margin); }
section { position: relative; }
.section-pad { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { margin-bottom: 34px; }
.section-head .overline { display: block; margin-bottom: 12px; }
.section-head p.sub { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 52ch; }
.center { text-align: center; }
.center .section-head p.sub { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------- global backdrop -- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: var(--night-grad);
}
.stars-global { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9; }
.glow-fixed {
  position: fixed; z-index: -1; pointer-events: none;
  width: 70vw; height: 70vw; left: 50%; top: -22vw; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217,179,108,0.10), rgba(217,179,108,0) 60%);
  filter: blur(8px);
}

/* ------------------------------------------------------------------ nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,18,32,0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 30px; height: 30px; }
.brand .word { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--cream); opacity: .82; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right .login { font-size: 14.5px; color: var(--cream); opacity: .85; }
.nav-right .login:hover { opacity: 1; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid var(--glass-stroke); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cream); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--cream); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ----------------------------------------------------------- buttons ------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-pill); transition: transform .18s ease, box-shadow .25s ease, background .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-grad); color: #2A1E0B; box-shadow: 0 10px 30px -10px rgba(217,179,108,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(217,179,108,0.7), inset 0 1px 0 rgba(255,255,255,0.5); transform: translateY(-1px); }
.btn-glass { background: var(--glass-fill-2); color: var(--ink); border: 1px solid var(--glass-stroke); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,0.11); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }
.play-fab { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: #2A1E0B; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 6px 18px -6px rgba(217,179,108,0.6); transition: transform .18s; }
.play-fab:hover { transform: scale(1.06); }
.play-fab svg { width: 16px; height: 16px; margin-left: 2px; }

/* --------------------------------------------------------------- hero ----- */
.hero { padding-top: 128px; padding-bottom: 40px; text-align: center; overflow: hidden; }
.hero .overline { display: inline-block; margin-bottom: 18px; }
.hero-phones { position: relative; height: clamp(420px, 42vw, 580px); margin: 0 auto 30px; max-width: 720px; }
.phone {
  position: absolute; border-radius: 38px; overflow: hidden;
  background: #05080F;
  border: 2px solid rgba(255,255,255,0.10);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.85), 0 0 0 1.5px rgba(0,0,0,0.6) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p-main {
  width: clamp(186px, 18vw, 248px); aspect-ratio: 9 / 19.5;
  left: 50%; top: 4%; transform: translateX(-62%) rotate(-7deg); z-index: 3;
}
.phone.p-right {
  width: clamp(170px, 16.5vw, 230px); aspect-ratio: 9 / 19.5;
  left: 50%; top: 0; transform: translateX(0%) rotate(6deg); z-index: 2;
}
.hero-halo {
  position: absolute; left: 50%; top: 40%; width: 110%; height: 110%;
  transform: translate(-50%,-50%); z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(217,179,108,0.16), rgba(217,179,108,0) 58%);
  filter: blur(10px);
}
.hero-copy { max-width: 720px; margin: 0 auto; position: relative; z-index: 4; }
.hero-copy .hero-title { margin-bottom: 18px; }
.hero-copy .hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30ch; margin: 0 auto 30px; line-height: 1.45; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.stars-row { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* ----------------------------------------------------------- pillars ------ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 30px 26px; border-radius: var(--radius-card); background: var(--glass-fill); border: 1px solid var(--hairline); transition: transform .3s ease, border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--glass-stroke); }
.pillar .ico { width: 52px; height: 52px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 16px; background: rgba(217,179,108,0.10); border: 1px solid rgba(217,179,108,0.22); }
.pillar .ico svg { width: 26px; height: 26px; color: var(--gold); }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* -------------------------------------------------------- testimonials ---- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { padding: 28px; border-radius: var(--radius-card); background: var(--glass-fill); border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.tcard .stars-row { font-size: 13px; margin-bottom: 14px; }
.tcard blockquote { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--cream); flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard .who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #2A1E0B; background: var(--gold-grad); flex: none; }
.tcard .who .nm { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tcard .who .dt { font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------- cta band --- */
.ctaband { text-align: center; }
.ctaband-inner { padding: clamp(46px, 7vw, 78px) 30px; border-radius: 30px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(42,59,99,0.55), rgba(17,27,48,0.5)); border: 1px solid var(--glass-stroke); }
.ctaband-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -10%, rgba(217,179,108,0.18), transparent 60%); pointer-events: none; }
.ctaband h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; position: relative; }
.ctaband .btn { position: relative; }

/* --------------------------------------------------------- verse + quest -- */
.feature-2col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: stretch; }
.verse-card { position: relative; overflow: hidden; border-radius: 26px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #16223C, #0C1424); border: 1px solid var(--glass-stroke); }
.verse-card .art-stars { position: absolute; inset: 0; opacity: .5; }
.verse-card .overline { position: relative; margin-bottom: 22px; }
.verse-card .ar { position: relative; font-family: var(--arabic); direction: rtl; font-size: clamp(22px, 3vw, 30px); color: var(--gold-bright); line-height: 1.8; margin-bottom: 22px; }
.verse-card blockquote { position: relative; font-family: var(--serif); font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; color: var(--ink); margin-bottom: 16px; }
.verse-card cite { position: relative; font-style: normal; color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.verse-card .reflect { position: relative; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.6; border-top: 1px solid var(--hairline); padding-top: 20px; }

.quest-card { position: relative; overflow: hidden; border-radius: 26px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--glass-stroke); min-height: 320px; }
.quest-card .qc-top { position: relative; z-index: 2; }
.quest-card .qc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(217,179,108,0.12); border: 1px solid rgba(217,179,108,0.25); padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 18px; }
.quest-card h3 { position: relative; z-index: 2; font-size: 27px; margin-bottom: 8px; }
.quest-card .qc-sub { position: relative; z-index: 2; color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.quest-card .qc-meta { position: relative; z-index: 2; display: flex; gap: 18px; color: var(--cream); font-size: 13.5px; margin-bottom: 22px; }
.quest-card .qc-meta b { color: var(--ink); }
.quest-card .qc-actions { position: relative; z-index: 2; display: flex; gap: 12px; }

/* ----------------------------------------------------- card art (motif) --- */
/* Procedural night artwork — palette gradient + crescent motif + stars.
   Palettes mirror Palette.library in Gradients.swift. */
.art { position: relative; overflow: hidden; background: var(--p-grad, linear-gradient(160deg,#1B2A4A,#131F38,#0B1220)); }
.art .crescent { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 58%; aspect-ratio: 1; }
.art .crescent .disc-gold { fill: var(--p-accent, #D9B36C); opacity: .92; }
.art .crescent .disc-cut { fill: var(--p-mid, #131F38); }
.art .twinkle { position: absolute; inset: 0; background-image:
    radial-gradient(1.4px 1.4px at 18% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 30% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 12% 60%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.3px 1.3px at 45% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 60% 80%, rgba(255,255,255,.4), transparent);
  opacity: .8; }
.art .glow { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--p-accent, #D9B36C) 45%, transparent), transparent 65%); filter: blur(6px); }

/* palette definitions (top, mid, bottom, accent) ported from the app */
.pal-midnight { --p-grad: linear-gradient(160deg,#1B2A4A,#131F38,#0B1220); --p-mid:#131F38; --p-accent:#D9B36C; }
.pal-deep     { --p-grad: linear-gradient(160deg,#142033,#0E1626,#070C16); --p-mid:#0E1626; --p-accent:#D9B36C; }
.pal-twilight { --p-grad: linear-gradient(160deg,#3A2E5A,#241E40,#12101F); --p-mid:#241E40; --p-accent:#C9A7E0; }
.pal-violet   { --p-grad: linear-gradient(160deg,#322A4A,#201A33,#100C1C); --p-mid:#201A33; --p-accent:#B79CE0; }
.pal-dusk     { --p-grad: linear-gradient(160deg,#3A3142,#241F2E,#110F17); --p-mid:#241F2E; --p-accent:#C9A7E0; }
.pal-indigo   { --p-grad: linear-gradient(160deg,#232A4A,#161B33,#0A0E1C); --p-mid:#161B33; --p-accent:#8FA0E0; }
.pal-tide     { --p-grad: linear-gradient(160deg,#1E3A4A,#122733,#0A151C); --p-mid:#122733; --p-accent:#6FB3C7; }
.pal-ocean    { --p-grad: linear-gradient(160deg,#1A3340,#10222B,#08131A); --p-mid:#10222B; --p-accent:#6FB3C7; }
.pal-storm    { --p-grad: linear-gradient(160deg,#2A3242,#1A2230,#0C121C); --p-mid:#1A2230; --p-accent:#9FB0C4; }
.pal-sage     { --p-grad: linear-gradient(160deg,#2A3F35,#1B2A23,#0E1713); --p-mid:#1B2A23; --p-accent:#5B8A72; }
.pal-forest   { --p-grad: linear-gradient(160deg,#243A30,#16261F,#0A130E); --p-mid:#16261F; --p-accent:#6FA98A; }
.pal-desert   { --p-grad: linear-gradient(160deg,#4A3A28,#2C2218,#14100B); --p-mid:#2C2218; --p-accent:#E8D9BC; }
.pal-amber    { --p-grad: linear-gradient(160deg,#4A3A22,#2E2415,#15100A); --p-mid:#2E2415; --p-accent:#E7C988; }
.pal-gold     { --p-grad: linear-gradient(160deg,#4A3E22,#2E2614,#14100A); --p-mid:#2E2614; --p-accent:#E7C988; }
.pal-ember    { --p-grad: linear-gradient(160deg,#4A2A22,#2E1A15,#150C0A); --p-mid:#2E1A15; --p-accent:#E0986F; }
.pal-dawn     { --p-grad: linear-gradient(160deg,#3E2E3A,#2A2030,#14101A); --p-mid:#2A2030; --p-accent:#E0A890; }
.pal-rose     { --p-grad: linear-gradient(160deg,#4A2A36,#2E1A24,#150C10); --p-mid:#2E1A24; --p-accent:#E0A0B0; }

/* ------------------------------------------------------------- rails ------ */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; -ms-overflow-style: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.rail-head .overline { display: block; margin-bottom: 10px; }
.rail-head h2 { font-size: clamp(24px, 3vw, 34px); }
.rail-head .sub { color: var(--muted); font-size: 15px; margin-top: 7px; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-stroke); background: var(--glass-fill); color: var(--cream); display: grid; place-items: center; transition: background .2s, transform .15s; }
.rail-nav button:hover { background: var(--glass-fill-2); }
.rail-nav button:active { transform: scale(.92); }
.rail-nav button svg { width: 18px; height: 18px; }

/* session tile (vertical) */
.tile { scroll-snap-align: start; flex: 0 0 auto; width: 210px; display: block; transition: transform .25s ease; }
.tile:hover { transform: translateY(-5px); }
.tile .art { width: 210px; height: 210px; border-radius: var(--radius-card); border: 1px solid var(--glass-stroke); }
.tile .art .dur { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-size: 11.5px; font-weight: 600; color: var(--ink); background: rgba(7,12,22,0.6); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); }
.tile .art .tile-play { position: absolute; right: 12px; bottom: 12px; z-index: 3; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.tile:hover .art .tile-play { opacity: 1; transform: scale(1); }
.tile .meta { padding: 13px 4px 0; }
.tile .meta .kind { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--gold); opacity: .85; margin-bottom: 5px; }
.tile .meta h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.tile .meta .by { font-size: 13px; color: var(--muted); }

/* wide collection / path card */
.tile.wide { width: 300px; }
.tile.wide .art { width: 300px; height: 170px; display: flex; align-items: flex-end; padding: 16px; }
.tile.wide .art .ov { position: relative; z-index: 3; }
.tile.wide .art .ov .cnt { font-size: 12px; color: var(--cream); opacity: .85; }
.tile.wide .art .ov h4 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-top: 2px; }
.tile.wide .start { position: absolute; right: 14px; top: 14px; z-index: 3; }

/* path card with joined count */
.path { scroll-snap-align: start; flex: 0 0 auto; width: 250px; }
.path .art { width: 250px; height: 320px; border-radius: var(--radius-card); border: 1px solid var(--glass-stroke); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.path .art .p-ov { position: relative; z-index: 3; }
.path .art .p-ov .joined { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cream); background: rgba(7,12,22,0.55); border: 1px solid var(--hairline); padding: 5px 11px; border-radius: var(--radius-pill); margin-bottom: 12px; backdrop-filter: blur(6px); }
.path .art .p-ov h4 { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 5px; }
.path .art .p-ov .p-by { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.path .art .p-ov .btn { width: 100%; }

/* ---------------------------------------------------- categories grid ----- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius-card); min-height: 168px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--glass-stroke); transition: transform .25s; }
.cat:hover { transform: translateY(-4px); }
.cat .c-ico { position: absolute; right: 20px; top: 20px; z-index: 3; width: 40px; height: 40px; color: var(--p-accent, var(--gold)); opacity: .9; }
.cat .c-body { position: relative; z-index: 3; }
.cat h3 { font-size: 22px; margin-bottom: 6px; }
.cat p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* --------------------------------------------------- "for what you feel" -- */
.feel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feel { padding: 22px 18px; border-radius: 18px; background: var(--glass-fill); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; transition: transform .25s, border-color .25s, background .25s; cursor: pointer; }
.feel:hover { transform: translateY(-3px); border-color: var(--glass-stroke); background: var(--glass-fill-2); }
.feel .f-ico { width: 30px; height: 30px; color: var(--gold); opacity: .9; }
.feel .f-name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.feel .f-line { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------- articles ----- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--glass-fill); transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.article:hover { transform: translateY(-4px); border-color: var(--glass-stroke); }
.article .a-art { height: 168px; }
.article .a-body { padding: 22px; }
.article .a-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--gold); margin-bottom: 10px; }
.article h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.article p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------------ counter ----- */
.counter { text-align: center; }
.counter .overline { display: inline-block; margin-bottom: 22px; }
.counter .big { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 9vw, 104px); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.counter .clabel { color: var(--muted); font-size: 17px; margin-top: 14px; }
.counter .badges { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.store-badge { height: 54px; display: inline-flex; align-items: center; gap: 12px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--glass-stroke); background: var(--glass-fill); transition: background .2s, transform .15s; }
.store-badge:hover { background: var(--glass-fill-2); transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-txt { text-align: left; line-height: 1.1; }
.store-badge .sb-txt small { display: block; font-size: 10.5px; color: var(--muted); }
.store-badge .sb-txt b { font-size: 17px; font-weight: 600; font-family: var(--serif); }

/* ------------------------------------------------------------- footer ----- */
footer { border-top: 1px solid var(--hairline); padding: 64px 0 44px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 30ch; margin-bottom: 20px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-stroke); display: grid; place-items: center; color: var(--cream); transition: background .2s, color .2s; }
.foot-social a:hover { background: var(--glass-fill-2); color: var(--gold); }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); opacity: .85; margin-bottom: 16px; font-weight: 600; font-family: var(--sans); }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.foot-bottom .cp { color: var(--faint); font-size: 13px; }
.foot-bottom .ihsan { color: var(--faint); font-size: 13px; font-style: italic; font-family: var(--serif); }
.foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal a { color: var(--faint); font-size: 13px; transition: color .2s; }
.foot-legal a:hover { color: var(--muted); }

/* --------------------------------------------------------- scroll reveal -- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------- mobile nav menu - */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(11,18,32,0.97); backdrop-filter: blur(20px); display: none; flex-direction: column; padding: 96px 28px 40px; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--cream); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-close { position: absolute; right: 24px; top: 26px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-stroke); color: var(--cream); font-size: 24px; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 980px) {
  .pillars, .tcards, .art-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .feel-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .feature-2col { grid-template-columns: 1fr; }
  .tcards .tcard:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --margin: 18px; }
  .nav-links, .nav-right .login, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 104px; }
  .hero-copy .hero-title { font-size: clamp(31px, 8.4vw, 46px); }
  .hero-copy .hero-sub { max-width: 34ch; font-size: 16px; }
  /* size the phones by HEIGHT on mobile so the tall frames always fit */
  .hero-phones { height: 56vh; max-height: 470px; min-height: 360px; margin-bottom: 26px; }
  .phone.p-main { width: auto; height: 92%; top: 5%; transform: translateX(-58%) rotate(-7deg); }
  .phone.p-right { width: auto; height: 83%; top: 0; transform: translateX(6%) rotate(6deg); }
  .pillars, .tcards, .art-grid, .cat-grid, .feel-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .rail-nav { display: none; }
  .section-pad { padding: 54px 0; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- finish: honest bits -- */
/* primary CTA in the closing "Begin tonight" block */
.counter-cta { margin-top: 30px; }
/* Google Play is not live yet — show the badge, but make it clearly inert */
.store-badge.is-soon { opacity: .5; cursor: default; }
.store-badge.is-soon:hover { background: var(--glass-fill); transform: none; }
/* honesty caption under the illustrative testimonials */
.tnote { color: var(--faint); font-size: 13px; line-height: 1.55; margin: 24px auto 0; max-width: 62ch; }
