/*
Theme Name:  Nurii
Theme URI:   https://nurii.com
Author:      Hayley Smeulders
Author URI:  https://nurii.com
Description: Official marketing theme for Nurii — brain longevity & wellness intelligence app.
Version:     1.0.0
License:     Proprietary
Text Domain: nurii
*/

/* ── TOKENS ── */
:root {
  --ink-900: #0F1411; --ink-700: #2C3631; --ink-500: #6B756F; --ink-400: #94998E;
  --ink-300: #BFC2B5; --ink-200: #DEDFD3;
  --paper-50: #FBF9F2; --paper-100: #F6F2E7; --paper-200: #EFEAD9; --paper-300: #E5DEC6;
  --sage-700: #3E5739; --sage-500: #5C7A52; --sage-300: #95AB87; --sage-100: #D6E0CD; --sage-50: #EDF2EA;
  --ochre-500: #C68B3A; --ochre-300: #E2B779; --ochre-100: #F4E4C2;
  --clay-500: #B36746;
  --fd: 'Lora', Georgia, serif;
  --fb: 'Carlito', Arial, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--fd); font-weight: 400; font-style: normal; line-height: 1.1; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--sage-500); font-weight: 400; }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--ochre-300); }
p { font-family: var(--fb); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .wrap { padding: 0 24px; } }
.eyebrow {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-500);
}

/* ── SCROLL REVEAL ── */
/* Hidden only when JS has run (html.js class added by main.js).
   Without JS, content stays visible so sections never appear blank. */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
html.js .reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .06s }  .d2 { transition-delay: .12s }  .d3 { transition-delay: .18s }
.d4 { transition-delay: .24s }  .d5 { transition-delay: .30s }  .d6 { transition-delay: .36s }
.d7 { transition-delay: .42s }  .d8 { transition-delay: .48s }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251,249,242,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper-200);
  transition: background .3s, border-color .3s;
}
nav.dk { background: rgba(15,20,17,.92); border-bottom-color: rgba(255,255,255,.05); }
.nav-logo svg { width: 78px; height: auto; display: block; }
.nav-r { display: flex; align-items: center; gap: 28px; }
.nav-a {
  font-family: var(--fb); font-size: 13px; font-weight: 400;
  color: var(--ink-500); text-decoration: none; transition: color .2s;
}
.nav-a:hover { color: var(--ink-900); }
nav.dk .nav-a { color: rgba(149,171,135,.65); }
nav.dk .nav-a:hover { color: #F6F2E7; }
.nav-cta {
  font-family: var(--fb); font-size: 13px; font-weight: 700;
  background: var(--sage-500); color: #FBF9F2;
  padding: 9px 22px; border-radius: 22px;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--sage-700); }
@media (max-width: 640px) { nav { padding: 0 20px; } .nav-a { display: none; } }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 32px 80px;
  overflow: hidden; background: #0a0e0c;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; pointer-events: none; }
.hero-css-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(62,87,57,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(92,122,82,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(44,54,49,0.5) 0%, transparent 55%),
    linear-gradient(160deg, #0a0f0c 0%, #111a14 40%, #0c120e 100%);
  animation: heroBgShift 18s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
  0%   { background-position: 0% 50%, 100% 0%, 60% 100%, 0 0; opacity: 0.9; }
  33%  { background-position: 10% 40%, 85% 15%, 55% 90%, 0 0; opacity: 1; }
  66%  { background-position: 5% 60%, 90% 5%, 65% 95%, 0 0; opacity: 0.85; }
  100% { background-position: 15% 45%, 80% 20%, 50% 85%, 0 0; opacity: 1; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,12,.55) 0%, rgba(10,14,12,.35) 50%, rgba(10,14,12,.7) 100%);
  pointer-events: none; z-index: 1;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(198,139,58,.11) 0%, rgba(92,122,82,.08) 40%, transparent 68%);
  animation: glowB 9s ease-in-out infinite; pointer-events: none; z-index: 2;
}
@keyframes glowB {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .7; }
  50%       { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
}
.hero-content { position: relative; z-index: 10; max-width: 680px; }
.hero-logo { margin-bottom: 32px; opacity: 0; animation: ri 1s ease .1s both; }
.hero-logo svg { width: 150px; height: auto; }
.hero-eyebrow {
  font-family: var(--fb); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(149,171,135,.65); margin-bottom: 24px;
  opacity: 0; animation: ri 1s ease .15s both;
}
.hero-h1 {
  font-family: var(--fd); font-size: clamp(44px,6vw,76px); font-weight: 400;
  font-style: normal; color: #F6F2E7; line-height: 1.07; margin-bottom: 24px;
  opacity: 0; animation: ri 1s ease .25s both;
}
.hero-h1 em { font-style: italic; color: var(--ochre-300); font-weight: 400; }
.hero-sub {
  font-family: var(--fb); font-size: 17px; font-weight: 400; line-height: 1.7;
  color: rgba(149,171,135,.75); max-width: 460px; margin: 0 auto 38px;
  opacity: 0; animation: ri 1s ease .38s both;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: ri 1s ease .48s both; }
.btn-p {
  font-family: var(--fb); font-size: 14px; font-weight: 700;
  background: var(--sage-500); color: #FBF9F2;
  border: none; padding: 15px 34px; border-radius: 28px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, transform .2s;
}
.btn-p:hover { background: var(--sage-700); transform: translateY(-1px); }
.btn-g {
  font-family: var(--fb); font-size: 14px; font-weight: 400;
  background: transparent; color: rgba(149,171,135,.75);
  border: 1px solid rgba(149,171,135,.22); padding: 15px 34px; border-radius: 28px;
  cursor: pointer; text-decoration: none; display: inline-block; transition: all .2s;
}
.btn-g:hover { border-color: rgba(149,171,135,.5); color: #F6F2E7; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: ri 1s ease .9s both; z-index: 10;
}
.hero-scroll span { font-family: var(--fb); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(149,171,135,.35); }
.scroll-ln { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(92,122,82,.45), transparent); animation: sp 2.2s ease-in-out infinite; }
@keyframes sp {
  0%, 100% { transform: scaleY(1); opacity: .4; }
  50%       { transform: scaleY(1.25); opacity: 1; }
}
@keyframes ri {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── PROBLEM ── */
.problem { background: var(--paper-50); padding: 120px 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; gap: 48px; } }
.ph2 { font-family: var(--fd); font-size: clamp(34px,4vw,54px); font-weight: 400; color: var(--ink-900); margin-bottom: 22px; }
.ph2 em { font-style: italic; color: var(--sage-500); font-weight: 400; }
.pp { font-family: var(--fb); font-size: 15.5px; font-weight: 400; line-height: 1.75; color: var(--ink-500); margin-bottom: 14px; }
.pp.accent { color: var(--ink-400); }
.sig-cards { display: flex; flex-direction: column; gap: 13px; }
.sig-card {
  background: var(--paper-100); border: 1px solid var(--paper-200);
  border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .3s, background .3s, transform .3s;
}
.sig-card:hover { border-color: var(--sage-300); background: var(--sage-50); transform: translateX(4px); }
.sig-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--paper-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .3s;
}
.sig-card:hover .sig-ico { background: var(--sage-500); }
.sig-card:hover .sig-ico svg { color: white !important; stroke: white !important; }
.sig-t { font-family: var(--fb); font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 3px; }
.sig-d { font-family: var(--fb); font-size: 12.5px; font-weight: 400; line-height: 1.55; color: var(--ink-500); }

/* ── LOOP / HOW IT WORKS ── */
.loop { background: var(--ink-900); padding: 120px 0; position: relative; overflow: hidden; }
.loop-ga {
  position: absolute; top: -180px; right: -80px; width: 560px; height: 560px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(92,122,82,.11), transparent 65%);
  pointer-events: none;
}
.loop-gb {
  position: absolute; bottom: -160px; left: -80px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(198,139,58,.07), transparent 65%);
  pointer-events: none;
}
.lh2 { font-family: var(--fd); font-size: clamp(34px,4vw,52px); font-weight: 400; color: #F6F2E7; margin-bottom: 16px; }
.lh2 em { font-style: italic; color: var(--ochre-300); font-weight: 400; }
.lsub { font-family: var(--fb); font-size: 15.5px; font-weight: 400; line-height: 1.72; color: rgba(149,171,135,.72); }
.nudge-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: 28px 30px; margin-bottom: 52px;
  max-width: 640px; position: relative; overflow: hidden;
}
.nudge-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,122,82,.55), transparent);
}
.n-label {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--fb); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-300); margin-bottom: 14px;
}
.n-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--sage-500); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.65); }
}
.n-text { font-family: var(--fd); font-size: 20px; font-weight: 400; font-style: normal; color: #F6F2E7; line-height: 1.5; margin-bottom: 18px; }
.n-text em { font-style: italic; color: var(--ochre-300); font-weight: 400; }
.n-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.n-chip {
  display: flex; align-items: center; gap: 7px;
  background: rgba(92,122,82,.13); border: 1px solid rgba(92,122,82,.26);
  border-radius: 16px; padding: 5px 12px;
  font-family: var(--fb); font-size: 11px; font-weight: 700; color: var(--sage-300);
}
.loop-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
@media (max-width: 860px) { .loop-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .loop-steps { grid-template-columns: 1fr; } }
.ls {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 24px 18px;
  transition: background .3s, border-color .3s;
}
.ls:hover { background: rgba(92,122,82,.08); border-color: rgba(92,122,82,.22); }
.ls-n { font-family: var(--fd); font-size: 12px; font-weight: 400; font-style: italic; color: rgba(149,171,135,.38); display: block; margin-bottom: 16px; }
.ls-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(92,122,82,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ls-ico svg { color: var(--sage-300); stroke: var(--sage-300); }
.ls-t { font-family: var(--fd); font-size: 19px; font-weight: 400; color: #F6F2E7; margin-bottom: 7px; }
.ls-d { font-family: var(--fb); font-size: 13px; font-weight: 400; line-height: 1.6; color: rgba(149,171,135,.62); }
.wearable-note { margin-top: 28px; padding: 18px 22px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 13px; max-width: 540px; }
.wearable-note p { font-family: var(--fb); font-size: 13px; font-weight: 400; color: rgba(149,171,135,.58); line-height: 1.65; }
.wearable-note strong { color: rgba(149,171,135,.82); font-weight: 700; }

/* ── PILLARS ── */
.pillars { background: var(--paper-50); padding: 120px 0; }
.pillars-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; }
@media (max-width: 768px) { .pillars-top { flex-direction: column; align-items: flex-start; } }
.pil-h2 { font-family: var(--fd); font-size: clamp(34px,4vw,50px); font-weight: 400; color: var(--ink-900); }
.pil-h2 em { font-style: italic; color: var(--sage-500); font-weight: 400; }
.pil-side { font-family: var(--fb); font-size: 15px; font-weight: 400; line-height: 1.72; color: var(--ink-500); max-width: 330px; flex-shrink: 0; }
.pil-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 860px) { .pil-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .pil-grid { grid-template-columns: 1fr; } }
.pc {
  background: var(--paper-100); border: 1px solid var(--paper-200);
  border-radius: 16px; padding: 22px 18px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.pc:hover { border-color: var(--sage-300); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(15,20,17,.08); }
.pc-n { font-family: var(--fd); font-size: 11px; font-weight: 400; font-style: italic; color: var(--ink-300); display: block; margin-bottom: 14px; }
.pc-ico { width: 32px; height: 32px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.pc-ico svg { color: var(--sage-500); stroke: var(--sage-500); }
.pc-name { font-family: var(--fd); font-size: 18px; font-weight: 400; color: var(--ink-900); margin-bottom: 5px; line-height: 1.2; }
.pc-desc { font-family: var(--fb); font-size: 12px; font-weight: 400; line-height: 1.58; color: var(--ink-400); }
.pc-dot { position: absolute; bottom: 14px; right: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-300); opacity: 0; transition: opacity .28s; }
.pc:hover .pc-dot { opacity: 1; }

/* ── SCIENCE / CREDIBILITY ── */
.cred { background: var(--paper-100); border-top: 1px solid var(--paper-200); border-bottom: 1px solid var(--paper-200); padding: 120px 0; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 860px) { .cred-grid { grid-template-columns: 1fr; gap: 56px; } }
.stat-row { padding: 24px 0; border-bottom: 1px solid var(--paper-200); }
.stat-row:first-of-type { border-top: 1px solid var(--paper-200); }
.stat-num { font-family: var(--fd); font-size: 48px; font-weight: 400; color: var(--ink-900); line-height: 1; margin-bottom: 5px; }
.stat-num em { font-style: normal; color: var(--sage-500); font-weight: 400; }
.stat-label { font-family: var(--fb); font-size: 13px; font-weight: 400; color: var(--ink-500); line-height: 1.6; margin-bottom: 5px; }
.stat-source { font-family: var(--fb); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300); }

/* Founder card */
.founder-card { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 18px; padding: 28px; margin-bottom: 18px; }
.f-ey { font-family: var(--fb); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 14px; }
.f-q { font-family: var(--fd); font-size: 17px; font-weight: 400; font-style: italic; line-height: 1.55; color: var(--ink-900); margin-bottom: 18px; }
.f-by { display: flex; align-items: center; gap: 12px; }
.f-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid var(--paper-200); flex-shrink: 0; }
.f-name { font-family: var(--fb); font-size: 13px; font-weight: 700; color: var(--ink-900); }
.f-role { font-family: var(--fb); font-size: 12px; font-weight: 400; color: var(--ink-400); }

/* Beta signup card */
.beta-card { background: var(--ink-900); border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.beta-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,122,82,.55), transparent);
}
.b-ey { font-family: var(--fb); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 9px; }
.b-h3 { font-family: var(--fd); font-size: 24px; font-weight: 400; color: #F6F2E7; margin-bottom: 7px; line-height: 1.25; }
.b-sub { font-family: var(--fb); font-size: 13px; font-weight: 400; line-height: 1.65; color: rgba(149,171,135,.68); margin-bottom: 20px; }
.b-form { display: flex; gap: 9px; }
.b-input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 12px 16px;
  font-family: var(--fb); font-size: 14px; font-weight: 400; color: #F6F2E7;
  outline: none; transition: border-color .2s;
}
.b-input::placeholder { color: rgba(149,171,135,.38); }
.b-input:focus { border-color: rgba(92,122,82,.48); }
.b-btn {
  font-family: var(--fb); font-size: 13px; font-weight: 700;
  background: var(--sage-500); color: #FBF9F2;
  border: none; border-radius: 20px; padding: 12px 20px;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.b-btn:hover { background: var(--sage-700); }
.b-note { font-family: var(--fb); font-size: 11px; font-weight: 400; color: rgba(149,171,135,.32); margin-top: 9px; }

/* CF7 overrides — style Contact Form 7 to match the beta card design */
.beta-card .wpcf7-form { display: flex; flex-direction: column; }
.beta-card .wpcf7-form p { display: flex; gap: 9px; margin-bottom: 9px; }
.beta-card .wpcf7-form input[type="email"] { flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 12px 16px; font-family: var(--fb); font-size: 14px; color: #F6F2E7; outline: none; transition: border-color .2s; }
.beta-card .wpcf7-form input[type="email"]:focus { border-color: rgba(92,122,82,.48); }
.beta-card .wpcf7-form input[type="submit"] { font-family: var(--fb); font-size: 13px; font-weight: 700; background: var(--sage-500); color: #FBF9F2; border: none; border-radius: 20px; padding: 12px 20px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.beta-card .wpcf7-form input[type="submit"]:hover { background: var(--sage-700); }

/* ── FOOTER ── */
footer {
  background: var(--ink-900); padding: 52px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.ft-logo svg { width: 72px; height: auto; }
.ft-tag { font-family: var(--fd); font-size: 14px; font-weight: 400; font-style: italic; color: rgba(149,171,135,.42); }
.ft-copy { font-family: var(--fb); font-size: 11px; font-weight: 400; color: rgba(149,171,135,.26); letter-spacing: .06em; }
