/*
Theme Name: NeevUp Pre-Launch
Theme URI: https://neevup.com
Author: NeevUp
Description: Pre-launch single-page landing site for NeevUp — crowdfunding for Nepal. Bilingual (English/Nepali), parallax hero, no build step.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neevup
*/

/* ============================================================
   NeevUp — pre-launch site styles
   Plain CSS, no dependencies. Palette: NeevUp green accent,
   charcoal ink, deep-forest secondary, amber for risk/caution.
   ============================================================ */

:root {
  --green: #1fa363;        /* NeevUp brand green */
  --green-dark: #17864f;
  --forest: #0f5132;       /* deep-green secondary */
  --amber: #b4690e;        /* caution / risk accent */
  --ink: #1b1d21;
  --neev: #33363b;         /* wordmark "Neev" charcoal */
  --muted: #5c6270;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f9f7;
  --bg-cta: #eef8f1;
  --bg-risk: #fef6ec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px rgba(22, 24, 29, .06);
  --maxw: 1080px;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font-body);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #20282f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Main photo, pinned to the viewport behind everything (the parallax base).
   position:fixed is used instead of background-attachment:fixed — it is far
   more reliable on iOS/Safari. Content scrolls over it; opaque cards cover it,
   the gaps between them reveal it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: #20282f url("images/hero-innovate.jpg") center / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,16,20,.62), rgba(13,16,20,.72));
}
:lang(ne) { line-height: 1.75; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31,163,99,.28); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 8px 22px rgba(31,163,99,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .93rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  opacity: .8;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: flex-start; gap: 1px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--neev); line-height: 1; }
.brand-up { color: var(--green); }
.brand-arrow { color: var(--green); margin-top: 1px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 500; color: var(--muted); font-size: .98rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: border-color .15s ease;
}
.lang-toggle:hover { border-color: var(--muted); }
.lang-toggle .lang-sep { opacity: .5; }
.lang-toggle .active-lang { color: var(--green); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- hero ---------- */
/* Transparent scrim only — reveals the fixed main photo on <body>. */
.hero {
  position: relative;
  padding: clamp(120px, 20vw, 240px) 0 clamp(96px, 14vw, 168px);
  color: #fff;
  background:
    linear-gradient(102deg, rgba(15,17,22,.78) 0%, rgba(15,17,22,.42) 48%, rgba(15,17,22,0) 100%),
    linear-gradient(0deg, rgba(15,17,22,.4) 0%, rgba(15,17,22,0) 38%);
}
.hero-inner { position: relative; max-width: 680px; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
  background: rgba(31,163,99,.92); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-soon {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: #35c07d;
  font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1; margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-credit {
  position: absolute; right: 16px; bottom: 12px; z-index: 1;
  font-size: .72rem; letter-spacing: .03em; color: rgba(255,255,255,.6);
}

/* ---------- media figures ---------- */
.media { margin: 0; }
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.media figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .96rem; }
.media-wide {
  max-width: 900px; margin: 0 auto clamp(36px, 5vw, 52px);
}
.media-wide img { aspect-ratio: 16 / 7; }

/* ---------- feature split ---------- */
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center; max-width: 940px; margin: clamp(40px, 6vw, 64px) auto 0;
}
.feature-split .media img { aspect-ratio: 4 / 3; }
.feature-text h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 12px; color: #fff; }
.feature-text p { color: rgba(255,255,255,.82); font-size: 1.06rem; }

/* ---------- quote band (transparent — reveals the fixed main photo) ---------- */
.band {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(15,17,22,.22), rgba(15,81,50,.62));
}
.band-inner { position: relative; text-align: center; padding: 96px 24px; }
.band-quote {
  font-family: var(--font-head); font-weight: 600; color: #fff;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.3; max-width: 760px; margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* ---------- sections (content floats directly over the fixed main photo) ---------- */
.section { padding: clamp(48px, 7vw, 88px) 20px; background: transparent; color: rgba(255,255,255,.9); }
.section > .container { background: transparent; padding: 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; color: #fff; }
.section-sub { color: rgba(255,255,255,.82); font-size: 1.08rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 250px 1fr; align-items: stretch;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.28); backdrop-filter: blur(10px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,.36); }
/* Alternate the image side down the list. */
.step:nth-child(even) { grid-template-columns: 1fr 250px; }
.step:nth-child(even) .step-media { order: 2; }
.step-media { margin: 0; }
.step-media img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; }
.step-main { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; }
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.step-body h3 { font-size: 1.2rem; margin-bottom: 5px; color: #fff; }
.step-body p { color: rgba(255,255,255,.8); }

/* ---------- phases ---------- */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.phase-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 12px 34px rgba(0,0,0,.28); backdrop-filter: blur(10px);
}
.phase-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: rgba(31,163,99,.42); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.phase-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: #fff; }
.phase-card p { color: rgba(255,255,255,.8); }
.phase-note {
  max-width: 720px; margin: 32px auto 0; text-align: center;
  color: var(--forest); font-weight: 500; font-size: 1.05rem;
}

/* ---------- risks ---------- */
.risk-box {
  display: flex; gap: 22px; max-width: 820px; margin: 0 auto;
  background: rgba(180,105,14,.20); border: 1px solid rgba(240,190,110,.42);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); backdrop-filter: blur(10px);
}
.risk-icon { flex: none; color: #f4c67e; }
.risk-body h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 12px; color: #fff; }
.risk-body p { color: rgba(255,255,255,.86); margin-bottom: 14px; }
.risk-body p:last-child { margin-bottom: 0; }

/* ---------- notify / cta ---------- */
.notify-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.notify-inner h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 12px; color: #fff; }
.notify-form { display: flex; gap: 12px; margin: 28px auto 14px; max-width: 480px; }
.notify-form[hidden] { display: none; } /* let the hidden attribute win over display:flex */
.notify-input {
  flex: 1; padding: 13px 18px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.notify-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,163,99,.12); }
.notify-captcha { display: flex; justify-content: center; margin: 6px 0; }
.notify-captcha:empty { display: none; }
.notify-code { margin-top: 12px; }
.notify-code .notify-input { letter-spacing: .3em; text-align: center; font-weight: 600; }
.notify-msg { min-height: 1.4em; font-weight: 600; color: #7ce0a8; }
.notify-fine { color: rgba(255,255,255,.72); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfd2da; padding: 48px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: flex-start; gap: 1px; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-up { color: #5fe0a0; }
.footer-brand .brand-arrow { color: #5fe0a0; }
.footer-brand p { color: #9aa0ad; margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-links > a:hover { color: #fff; }
.social { display: flex; gap: 14px; }
.social a { color: #9aa0ad; transition: color .15s ease; }
.social a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #8b909d; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .phase-grid { grid-template-columns: 1fr; max-width: 480px; }
  .feature-split { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; margin: 0;
    transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .risk-box { flex-direction: column; gap: 16px; }
  .notify-form { flex-direction: column; }
  .notify-form .btn { width: 100%; }
  /* Stack step image on top of text. */
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-media { order: 0; }
  .step-media img { min-height: 0; height: 200px; }
}

/* ---------- reduced motion: drop the parallax, let the photo scroll normally ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  body::before, body::after { position: absolute; }
}
