/* ─────────────────────────────────────────────
   STM8 — Global Stylesheet
   ───────────────────────────────────────────── */

/* ── VARIABLES & RESET ── */
:root {
  --base: #2b2b2b;
  --dark: #1a1a1a;
  --darker: #111111;
  --surface: #333333;
  --orange: #FF6B00;
  --orange-dim: #CC5500;
  --green: #3DD68C;
  --white: #F5F4F0;
  --muted: #8A8785;
  --border: #3F3D3A;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--darker); color: var(--white); font-family: 'DM Sans', sans-serif; }

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── NAVIGATION ── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-pill {
  background: rgb(2b, 2b, 2b); border-radius: 8px;
  padding: 4px 10px; display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  text-decoration: none; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.nav-link.active { color: var(--white); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 8px; transition: background 0.15s;
  width: 40px; height: 40px;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger:focus-visible { outline: 2px solid var(--orange); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid #252320;
  padding: 6px 0 14px;
}
.mobile-nav.open { display: flex; }
.mob-link {
  text-decoration: none; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 16px;
  padding: 13px 20px; transition: color 0.15s, background 0.15s;
}
.mob-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mob-link.active { color: var(--white); }

@media (min-width: 641px) {
  .hamburger { display: none !important; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 640px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
}

/* ── BUTTONS ── */
.btn-orange {
  display: inline-block; text-decoration: none;
  background: var(--orange); color: white;
  font-family: 'Syne', sans-serif; font-weight: 700;
  border-radius: 10px; padding: 13px 26px; font-size: 15px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,107,0,0.3), 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-orange:hover { background: var(--orange-dim); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,0,0.4), 0 2px 6px rgba(0,0,0,0.4); }
.btn-orange:active { transform: translateY(0); }
.btn-orange:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.btn-ghost {
  display: inline-block; text-decoration: none;
  background: transparent; color: var(--green);
  font-family: 'Syne', sans-serif; font-weight: 700;
  border-radius: 10px; padding: 13px 26px; font-size: 15px;
  border: 1.5px solid var(--green); cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(61,214,140,0.1); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ══════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  background: var(--base);
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(255,107,0,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(61,214,140,0.08) 0%, transparent 50%);
}

/* ── PHONE MOCKUP ── */
.phone {
  width: 210px; height: 430px;
  border: 2.5px solid #484440;
  border-radius: 36px;
  background: #0e0e0e;
  position: relative;
  box-shadow:
    0 0 0 1px #2a2825,
    0 32px 80px rgba(0,0,0,0.7),
    0 0 50px rgba(255,107,0,0.12);
  overflow: hidden;
  flex-shrink: 0;
}
.phone::before {
  content: ''; position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 5px;
  background: #2a2825; border-radius: 3px; z-index: 10;
}
.phone-screen { padding: 26px 12px 12px; height: 100%; }
.p-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  font-family: 'Syne', sans-serif; margin-bottom: 6px;
}
.p-badge {
  display: inline-block;
  background: rgba(61,214,140,0.15); color: var(--green);
  border: 1px solid rgba(61,214,140,0.3);
  border-radius: 4px; padding: 2px 7px;
  font-size: 8px; font-weight: 600; margin-bottom: 8px;
}
.p-title {
  font-family: 'Syne', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.p-divider { height: 1px; background: #252320; margin-bottom: 6px; }
.p-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; font-size: 8.5px;
  color: #777; border-bottom: 1px solid #1e1c1a;
}
.p-row span:last-child { color: var(--white); font-weight: 600; }
.p-total {
  margin-top: 10px;
  background: rgba(255,107,0,0.14);
  border: 1px solid rgba(255,107,0,0.28);
  border-radius: 8px; padding: 8px 10px;
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 700; color: var(--orange);
  font-family: 'Syne', sans-serif;
}
.p-btn {
  margin-top: 10px;
  background: var(--orange); color: white;
  border-radius: 8px; padding: 8px;
  text-align: center; font-size: 8.5px;
  font-weight: 700; font-family: 'Syne', sans-serif;
  letter-spacing: 0.06em;
}

/* ── FEATURE CARDS ── */
.feat-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  border-color: rgba(255,107,0,0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,107,0,0.12);
}
.icon-box {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  opacity: 0.15;
  transition: opacity 0.25s;
}
.feat-card:hover .icon-box {
  opacity: 1;
}

/* ── STEPS ── */
.step-num {
  width: 84px; height: 84px; border-radius: 20px;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800;
  color: var(--orange); font-size: 38px; flex-shrink: 0;
}

/* ── STATS ── */
.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 44px; font-weight: 800; line-height: 1;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--orange);
  background-image:
    radial-gradient(ellipse at 25% 50%, rgba(255,255,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
}
.cta-input {
  width: 100%; padding: 14px 18px;
  border-radius: 10px; border: none;
  background: rgba(0,0,0,0.22); color: white;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.55); }
.cta-input:focus { background: rgba(0,0,0,0.3); box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
.cta-btn {
  width: 100%; padding: 14px;
  background: #1a1a1a; color: white;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; border: none; border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.cta-btn:hover { background: #000; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.cta-btn:focus-visible { outline: 2px solid white; outline-offset: 3px; }

/* ── ANIMATIONS ── */
@keyframes spin {
  from { transform: perspective(700px) rotateY(0deg); }
  to   { transform: perspective(700px) rotateY(360deg); }
}
.float { animation: spin 10s linear infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s cubic-bezier(0.16,1,0.3,1) forwards; }
.d1 { opacity: 0; animation-delay: 0.05s; }
.d2 { opacity: 0; animation-delay: 0.15s; }
.d3 { opacity: 0; animation-delay: 0.28s; }
.d4 { opacity: 0; animation-delay: 0.42s; }

/* ── APP SHOWCASE ── */
.showcase-item {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 88px;
 }
.showcase-item:last-child { margin-bottom: 0; }
.showcase-reverse { flex-direction: row-reverse; }
.showcase-img { flex: 0 0 44%; }
.showcase-text { flex: 1; }
.showcase-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.showcase-intro {
  font-style: italic;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.showcase-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size:22px;
}
.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--white);
  line-height: 1.5;
}
.showcase-list li i {
  color: var(--green);
  font-size: 17px;
  flex-shrink: 0;
  font-size:22px;
}
@media (max-width: 768px) {
  .showcase-item,
  .showcase-reverse {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 56px;
  }
  .showcase-img { flex: none; width: 100%; }
}

/* ══════════════════════════════════════════════
   SUPPORT PAGE
   ══════════════════════════════════════════════ */

/* ── FAQ ACCORDION ── */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer;
  padding: 15px 0; font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: 22px; color: var(--white);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; user-select: none;
  transition: color 0.15s;
}
summary:hover { color: var(--orange); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; color: var(--orange);
  font-size: 22px; font-weight: 300; flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { color: var(--orange); }
.faq-body {
  padding: 0 0 20px;
  font-size: 15px; color: var(--muted); line-height: 1.75;
}



/* ── RESOURCES GRID ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .resources-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* ── HELP CARDS ── */
.help-card {
  background: var(--base); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; text-decoration: none; color: var(--white);
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.help-card:hover {
  border-color: rgba(255,107,0,0.5); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.help-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.help-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ── CONTACT FORM ── */
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 7px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr !important; } }

/* ══════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════ */

/* ── VALUE CARDS ── */
.val-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.val-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}

/* ── TEAM CARDS ── */
.team-card {
  background: var(--base); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: rgba(255,107,0,0.4); transform: translateY(-2px); }

/* ── TIMELINE ── */
.timeline-item {
  display: flex; gap: 20px; padding-bottom: 36px; position: relative;
}
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute;
  left: 19px; top: 42px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,107,0,0.12); border: 2px solid rgba(255,107,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; position: relative; z-index: 1;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--orange);
  background-image: radial-gradient(ellipse at 25% 50%, rgba(255,255,255,0.1) 0%, transparent 55%);
}

/* ── MISSION GRID RESPONSIVE ── */
@media (max-width: 640px) {
  .mission-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}
