/* ==========================================================================
   Everest Market — Landing Page Design System
   Palette pulled directly from the Android app's colors.xml so the site and
   app read as the same product, not a re-skin done separately.
   ========================================================================== */

:root {
  --brand-primary: #1A3A6B;
  --brand-primary-dark: #0D2B52;
  --brand-primary-light: #C6CEDA;
  --accent: #F5821F;
  --accent-alt: #FF8C00;
  --success: #2E8B57;
  --cream: #F9F9F9;
  --surface: #FFFFFF;
  --ink: #1A2230;
  --ink-soft: #5B6470;
  --line: #E4E7E9;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(13, 43, 82, 0.07);
  --shadow-md: 0 12px 28px rgba(13, 43, 82, 0.12);
  --shadow-lg: 0 28px 64px rgba(13, 43, 82, 0.18);
  --shadow-glow: 0 24px 48px rgba(245, 130, 31, 0.22);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  line-height: 1.15;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section {
  padding: 80px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
}

.section-header p { font-size: 1.05rem; margin: 0; }

.section-alt { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 56px rgba(245, 130, 31, 0.28); }

.btn-outline {
  background: var(--surface);
  color: var(--brand-primary);
  border: 1.5px solid var(--line);
}

.btn-outline:hover { border-color: var(--brand-primary); background: rgba(26, 58, 107, 0.04); }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 249, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-primary);
}

.nav-logo img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

.nav-links a:hover { color: var(--accent); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(55% 55% at 25% 15%, rgba(245, 130, 31, 0.14), transparent 70%),
              radial-gradient(45% 45% at 85% 5%, rgba(26, 58, 107, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  letter-spacing: -0.01em;
}

.hero-copy .lede {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 3D hero visual (CSS-built, no screenshot dependency) ---------- */
.hero-visual {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.stack {
  position: relative;
  width: min(360px, 82vw);
  height: 360px;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(8deg);
  animation: floatStack 7s ease-in-out infinite;
}

.stack-card {
  position: absolute;
  width: 78%;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stack-card .stack-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stack-card .stack-icon svg { width: 22px; height: 22px; }

.stack-card h4 {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.stack-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  margin: 0;
}

.stack-card-1 {
  left: 0;
  top: 0;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  transform: translateZ(70px);
  z-index: 3;
}

.stack-card-2 {
  left: 14%;
  top: 34%;
  background: linear-gradient(145deg, var(--accent-alt), var(--accent));
  transform: translateZ(35px);
  z-index: 2;
}

.stack-card-3 {
  left: 26%;
  top: 68%;
  background: linear-gradient(145deg, #37916A, var(--success));
  transform: translateZ(0px);
  z-index: 1;
}

.stack-badge {
  position: absolute;
  right: -6%;
  top: 6%;
  background: var(--surface);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateZ(100px);
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes floatStack {
  0%, 100% { transform: rotateY(-16deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-16deg) rotateX(8deg) translateY(-14px); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Mountain scene (Everest motif, pure CSS — no photo asset) ----------
   Two clip-path silhouettes. Each is a single element whose background is a
   vertical gradient from white (near the top of the shape) into brand navy —
   since the polygon's peaks sit higher (closer to y:0%) than its valleys, the
   peaks land in the white part of the gradient and the base lands in navy,
   which reads as snow-capped ridgelines without needing separate cap shapes. */
.mountain-scene {
  position: relative;
  height: 130px;
  margin-top: 8px;
  overflow: hidden;
}

.mountain-layer {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
}

.mountain-back {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE4EE 14%, #AEBFD9 60%, #92A6C6 100%);
  clip-path: polygon(0% 100%, 0% 66%, 9% 44%, 17% 60%, 27% 30%, 38% 58%, 47% 22%, 58% 52%, 68% 34%, 79% 56%, 90% 20%, 100% 48%, 100% 100%);
  opacity: 0.75;
  animation: driftMountain 50s linear infinite alternate;
}

.mountain-front {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EDF3 10%, var(--brand-primary) 42%, var(--brand-primary-dark) 100%);
  clip-path: polygon(0% 100%, 0% 78%, 8% 50%, 16% 68%, 24% 12%, 33% 62%, 41% 8%, 50% 46%, 58% 24%, 67% 58%, 76% 30%, 85% 64%, 94% 40%, 100% 60%, 100% 100%);
}

@keyframes driftMountain {
  from { transform: translateX(0); }
  to { transform: translateX(-3%); }
}

/* ---------- Globe (CSS-built sphere with the app logo pinned on it) ---------- */
.globe-section { text-align: center; }

.globe-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 32px;
}

/* Positioning context for the pin/badge — kept separate from .globe itself, which needs
   overflow:hidden to clip the sphere shading/meridian lines into a clean circle. Nesting the
   pin/badge inside .globe would get them clipped by that same overflow:hidden. */
.globe-stage {
  position: relative;
  width: 220px;
  height: 220px;
}

.globe {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4E7DBD, var(--brand-primary) 55%, var(--brand-primary-dark) 100%);
  box-shadow:
    inset -22px -22px 50px rgba(0, 0, 0, 0.38),
    inset 14px 14px 34px rgba(255, 255, 255, 0.16),
    var(--shadow-lg);
  overflow: hidden;
}

.globe-lines {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spinGlobe 14s linear infinite;
}

.globe-lines span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  transform-origin: center;
}

.globe-lines span:nth-child(1) { transform: translateX(-50%) scaleX(0.2); }
.globe-lines span:nth-child(2) { transform: translateX(-50%) scaleX(0.55); }
.globe-lines span:nth-child(3) { transform: translateX(-50%) scaleX(0.9); }
.globe-lines span:nth-child(4) { transform: translateX(-50%) rotate(90deg) scaleX(1); border-left-color: rgba(255, 255, 255, 0.15); }

@keyframes spinGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.globe-pin {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.globe-pin img { width: 38px; height: 38px; border-radius: 10px; }

.globe-badge {
  position: absolute;
  right: -8%;
  bottom: 10%;
  background: var(--surface);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .mountain-back { animation: none; }
  .globe-lines { animation: none; }
}

/* ---------- Mini feature chips (secondary/supporting features) ---------- */
.mini-feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .mini-feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .mini-feature-grid { grid-template-columns: repeat(6, 1fr); }
}

.mini-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.mini-feature .mini-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-primary-light), #fff);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-feature .mini-icon svg { width: 20px; height: 20px; }

.mini-feature h4 {
  font-size: 0.88rem;
  margin: 0 0 4px;
  color: var(--ink);
}

.mini-feature p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Problem / Solution ---------- */
.compare {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.compare-card.solution { border-color: rgba(46, 139, 87, 0.35); background: #F3FAF6; }

.compare-card h3 { font-size: 1.15rem; }

.compare-card ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.compare-card li { margin-bottom: 8px; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-icon.tone-brand { background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; }
.feature-icon.tone-accent { background: linear-gradient(145deg, var(--accent-alt), var(--accent)); color: #fff; }
.feature-icon.tone-success { background: linear-gradient(145deg, #37916A, var(--success)); color: #fff; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---------- About / detail narrative ---------- */
.about-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.about-block h3 {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-block h3 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-block p { font-size: 0.96rem; margin-bottom: 0; }
.about-block p + p { margin-top: 12px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 32px;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.95rem; }

/* ---------- Value / pricing band ---------- */
.value-band {
  position: relative;
  background: linear-gradient(155deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.value-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 0%, rgba(245, 130, 31, 0.18), transparent 60%);
  pointer-events: none;
}

.value-band h2 { color: #fff; margin-bottom: 8px; position: relative; }
.value-band p { color: var(--brand-primary-light); max-width: 56ch; margin: 0 auto; position: relative; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.final-cta p { max-width: 50ch; margin: 0 auto 32px; font-size: 1.05rem; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .signup-form { flex-direction: row; }
}

.signup-form input[type="email"] {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--surface);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.82rem;
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-primary-dark);
  color: var(--brand-primary-light);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack { animation: none; }
  .feature-card:hover { transform: none; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

.legal-page h1 { font-size: 2rem; }
.legal-page .last-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 32px; }
.legal-page a { color: var(--accent); text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 24px;
}
