/* =========================================================
   Maple Ltd — Shared Stylesheet
   Modern mobile app studio landing page
   ========================================================= */

:root {
  --bg: #0b0d17;
  --bg-soft: #11132099;
  --surface: #161a2b;
  --surface-2: #1d2238;
  --border: #272c44;
  --text: #eef1ff;
  --text-soft: #a8aec9;
  --text-dim: #6f7699;
  --brand: #ff5a3c;
  --brand-2: #ffb24c;
  --brand-3: #ff7a59;
  --accent: #7c8bff;
  --maple: linear-gradient(135deg, #ff5a3c 0%, #ff7a59 45%, #ffb24c 100%);
  --maple-soft: linear-gradient(135deg, rgba(255, 90, 60, 0.16), rgba(255, 178, 76, 0.10));
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 18px 50px -12px rgba(255, 90, 60, 0.45);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 75% -10%, rgba(255, 90, 60, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 10% 10%, rgba(124, 139, 255, 0.10), transparent 55%),
    radial-gradient(40vw 40vw at 50% 120%, rgba(255, 178, 76, 0.08), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maple);
  color: #1a0f0a;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(255, 90, 60, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------------- Section headers ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--maple-soft);
}
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
  font-weight: 800;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

.grad-text {
  background: var(--maple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--maple);
  border-radius: 11px;
  box-shadow: var(--shadow-brand);
}
.brand .logo svg { width: 22px; height: 22px; }

/* Wordmark logotype */
.wordmark { display: inline-flex; align-items: center; gap: 9px; line-height: 1; }
.wordmark .wm-name {
  font-weight: 800;
  font-size: 1.34rem;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #d7d2e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wordmark .wm-name b { color: var(--brand); -webkit-text-fill-color: var(--brand); font-weight: 800; }
.wordmark .wm-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 3px 7px 3px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--maple-soft);
  align-self: center;
}
.site-footer .wordmark .wm-name { font-size: 1.24rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero { padding: 96px 0 80px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 22px;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .lbl { color: var(--text-dim); font-size: 0.85rem; }

/* Hero phone cluster */
.hero-visual { position: relative; height: 560px; }
.phone {
  position: absolute;
  width: 260px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1c2238, #11131f);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone .screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
  background: #0e1019;
}
.phone .notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; border-radius: 999px;
  background: #05060c; z-index: 3;
}
.hero-visual .phone.front {
  left: 50%; top: 24px; transform: translateX(-52%) rotate(-4deg);
  z-index: 2;
}
.hero-visual .phone.back {
  right: -6%; top: 96px; transform: rotate(7deg) scale(0.9);
  opacity: 0.92; z-index: 1;
}
.floating-card {
  position: absolute;
  background: rgba(22, 26, 43, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.floating-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--maple-soft); }
.floating-card .ic svg { width: 20px; height: 20px; }
.floating-card b { font-size: 0.9rem; }
.floating-card span { font-size: 0.76rem; color: var(--text-dim); }
.fc-1 { top: 6%; left: -4%; }
.fc-2 { bottom: 8%; right: 2%; }

/* App screen UI (CSS mock) */
.app-ui { padding: 30px 16px 16px; height: 100%; display: flex; flex-direction: column; color: #fff; }
.app-ui .au-head { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.app-ui .au-title { font-size: 1.25rem; font-weight: 800; margin: 4px 0 16px; }
.app-ui .au-row { height: 54px; border-radius: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.app-ui .au-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--maple); flex-shrink: 0; }
.app-ui .au-lines { flex: 1; }
.app-ui .au-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.app-ui .au-lines i:first-child { width: 70%; margin-bottom: 6px; }
.app-ui .au-lines i:last-child { width: 40%; background: rgba(255,255,255,0.10); }
.app-ui .au-fab { margin-top: auto; align-self: flex-end; width: 52px; height: 52px; border-radius: 16px; background: var(--maple); box-shadow: var(--shadow-brand); display: grid; place-items: center; }

/* gradient screen variants */
.screen.grad-a { background: linear-gradient(165deg, #2a1733, #120c1f); }
.screen.grad-b { background: linear-gradient(165deg, #142036, #0c1320); }

/* ---------------- Logos / trust strip ---------------- */
.trust { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust span { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.trust .badges { display: flex; gap: 36px; flex-wrap: wrap; }
.trust .badges b { font-size: 1.05rem; color: var(--text-soft); font-weight: 700; }

/* ---------------- Products ---------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(17, 19, 32, 0.6));
  padding: 30px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 89, 0.4); box-shadow: var(--shadow); }
.product-card::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -90px; top: -90px;
  background: var(--maple-soft);
  border-radius: 50%;
  filter: blur(10px);
}
.product-head { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.product-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.product-icon svg { width: 30px; height: 30px; }
.pi-1 { background: linear-gradient(135deg, #ff5a3c, #ff8a3c); }
.pi-2 { background: linear-gradient(135deg, #6f8bff, #4cc8ff); }
.pi-3 { background: linear-gradient(135deg, #ff5ca8, #b65cff); }
.pi-4 { background: linear-gradient(135deg, #2ecc8f, #1fb6d6); }
.product-card h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.product-card .tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-2); display: inline-block; margin-top: 4px;
}
.product-card p { color: var(--text-soft); margin: 18px 0 22px; position: relative; z-index: 1; }
.product-features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; position: relative; z-index: 1; }
.product-features li {
  font-size: 0.8rem; color: var(--text-soft);
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: rgba(255,255,255,0.03);
}
.store-links { display: flex; gap: 10px; position: relative; z-index: 1; }
.store-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  font-size: 0.82rem; transition: background 0.2s, border-color 0.2s;
}
.store-btn:hover { background: rgba(255,255,255,0.07); border-color: var(--text-dim); }
.store-btn svg { width: 20px; height: 20px; }
.store-btn small { display: block; font-size: 0.62rem; color: var(--text-dim); line-height: 1; }
.store-btn b { font-size: 0.85rem; line-height: 1.2; }
.store-btn.soon { opacity: 0.7; cursor: default; }
.store-btn.soon:hover { background: rgba(255,255,255,0.03); border-color: var(--border); }

/* ---------------- Process ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative;
}
.step .step-no {
  font-size: 0.85rem; font-weight: 800; color: var(--brand-2);
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--maple-soft);
  border: 1px solid var(--border); margin-bottom: 18px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------------- Team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s;
}
.member:hover { transform: translateY(-5px); border-color: rgba(255, 122, 89, 0.4); }
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 18px; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; color: #1a0f0a;
  background: var(--maple); box-shadow: var(--shadow-brand);
}
.member h4 { font-size: 1.12rem; }
.member .role { color: var(--brand-2); font-size: 0.86rem; font-weight: 600; margin: 2px 0 12px; }
.member p { color: var(--text-soft); font-size: 0.88rem; }

/* ---------------- Values / features ---------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.value .v-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--maple-soft); display: grid; place-items: center; margin-bottom: 18px; }
.value .v-icon svg { width: 26px; height: 26px; }
.value h4 { font-size: 1.18rem; margin-bottom: 10px; }
.value p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------------- CTA band ---------------- */
.cta-band {
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  background: var(--maple);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #1a0f0a; font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: #3a1f12; margin: 14px auto 30px; max-width: 540px; font-size: 1.05rem; }
.cta-band .btn-dark { background: #14111a; color: #fff; }
.cta-band .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-soft); margin: 16px 0; font-size: 0.92rem; max-width: 300px; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.85rem;
}

/* ---------------- Policy page ---------------- */
.policy-hero { padding: 70px 0 30px; text-align: center; }
.policy-hero .eyebrow { margin-bottom: 18px; }
.policy-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.policy-hero p { color: var(--text-dim); margin-top: 12px; }
.policy-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 100px; }
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow);
}
.policy-card h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 14px; letter-spacing: -0.01em; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.policy-card h2:first-child { margin-top: 0; }
.policy-card h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; color: var(--brand-2); }
.policy-card h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.policy-card p { color: var(--text-soft); margin-bottom: 14px; }
.policy-card ul { margin: 0 0 16px 4px; padding-left: 22px; color: var(--text-soft); }
.policy-card ul li { margin-bottom: 9px; }
.policy-card ul ul { margin-top: 9px; }
.policy-card a { color: var(--brand-3); word-break: break-word; }
.policy-card a:hover { text-decoration: underline; }
.policy-card strong { color: var(--text); }
.policy-card em { color: var(--text-dim); }
#data-deletion { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 24px; background: var(--surface-2); margin: 18px 0; }
#data-deletion:target { border-color: var(--brand); box-shadow: var(--shadow-brand); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; margin-top: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 24px; align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .section { padding: 78px 0; }
  .steps, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .policy-card { padding: 30px 22px; }
  .cta-band { padding: 44px 24px; }
  .hero-stats { gap: 26px; }
  .nav-cta .btn-ghost { display: none; }
}
