/* ===================================================================
   ELANFIT Landing — styles.css
   Design tokens mirror the ELANFIT app (dark, premium, purple glow).
   Mobile-first; media queries scale up.
   =================================================================== */

:root {
  /* Surfaces */
  --bg: #07070D;
  --surface: #0F0F14;
  --surface-2: #13131A;
  --border: #1E1E2A;
  --border-strong: #2A2A35;

  /* Purple gradient + accents */
  --grad-from: #5B5BD6;
  --grad-to: #9E7BFF;
  --accent: #818CF8;

  /* Text */
  --text: #E2E8F0;
  --text-strong: #FFFFFF;
  --text-sub: #CBD5E1;
  --text-muted: #94A3B8;

  /* Radii + shadow */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(126, 91, 214, 0.35);

  /* Layout */
  --maxw: 1160px;
  --header-h: 64px;

  --font: "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--text-strong); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.grad-text {
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text-strong);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: var(--text-strong);
  box-shadow: 0 8px 24px rgba(94, 91, 214, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(126, 91, 214, 0.5); }

.store-badge {
  display: inline-flex;
  border-radius: var(--r-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge img { border-radius: var(--r-sm); }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}
.nav-desktop { display: none; gap: 28px; }
.nav-desktop a { color: var(--text-sub); font-size: 0.95rem; font-weight: 500; transition: color 0.15s ease; }
.nav-desktop a:hover { color: var(--text-strong); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 26px;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 13, 0.96);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { color: var(--text-sub); font-size: 1.05rem; font-weight: 500; padding: 6px 0; }
.nav-mobile .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 64px 56px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(800px 500px at 22% 8%, rgba(94, 91, 214, 0.38), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(129, 140, 248, 0.28), transparent 60%),
    url("assets/hero_bg.svg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-inner {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2rem, 8vw, 3.3rem); font-weight: 800; }
.hero-sub {
  margin-top: 18px;
  color: var(--text-sub);
  font-size: 1.05rem;
  max-width: 34ch;
}
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-visual { display: flex; justify-content: center; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: min(280px, 74vw);
  aspect-ratio: 1320 / 2868;
  background: #050509;
  border: 2px solid var(--border-strong);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 20px;
  background: #050509;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-sm { width: 100%; max-width: 230px; border-radius: 34px; }
.phone-sm .phone-screen { border-radius: 25px; }
.phone-sm .phone-notch { height: 16px; top: 12px; }

/* ---------- Features ---------- */
.features { padding-block: 64px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--text-muted); font-size: 1.02rem; }
.br-mobile { display: inline; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.feature-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.feature-shot { width: 100%; display: flex; justify-content: center; margin-bottom: 24px; }
.feature-text h3 { font-size: 1.18rem; font-weight: 700; }
.feature-text p { margin-top: 10px; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta { padding-block: 30px 80px; }
.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 56px 24px;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 50% -10%, rgba(126, 91, 214, 0.4), transparent 65%);
  z-index: 0;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; }
.cta-inner p { margin: 14px auto 28px; color: var(--text-sub); max-width: 40ch; }
.cta-inner .store-badge { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 48px 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
.footer-brand .brand { font-size: 1.4rem; }
.footer-tagline { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-sub); font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-strong); }
.footer-company li { color: var(--text-sub); font-size: 0.95rem; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .hero { padding-block: 90px 80px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero-sub { font-size: 1.15rem; }
  .phone { width: min(320px, 40vw); }
  .br-mobile { display: none; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.2fr 2fr; align-items: start; }
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero-copy h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store-badge, .feature-card { transition: none; }
}
