/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a12;
  --bg2: #0f0f1a;
  --bg3: #141420;
  --surface: #1a1a2e;
  --surface2: #20203a;
  --gold: #f5c542;
  --gold-dim: rgba(245,197,66,0.12);
  --gold-border: rgba(245,197,66,0.25);
  --text: #e8e8f0;
  --text-dim: rgba(232,232,240,0.55);
  --green: #34c759;
  --red: #ff453a;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,18,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 20px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f5c542, #ff9f0a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold);
  color: #0a0a12;
  font-size: 13px; font-weight: 800;
  padding: 8px 18px;
  border-radius: 24px;
  transition: opacity 0.15s, transform 0.1s;
}
.nav-cta:hover { opacity: 0.9; transform: scale(0.98); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f5c542, #e6a817);
  color: #0a0a12;
  font-size: 16px; font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary.btn-large { font-size: 18px; padding: 18px 36px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 16px; font-weight: 600;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  transition: all 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.btn-ghost-dark {
  display: block; text-align: center;
  background: var(--surface2);
  color: var(--text);
  font-size: 15px; font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.15s;
}
.btn-ghost-dark:hover { background: var(--surface); }

/* ── Section labels ── */
.section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 18px; color: var(--text-dim);
  max-width: 560px; line-height: 1.6;
  margin-bottom: 56px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  gap: 60px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,197,66,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  flex: 1; padding: 80px 0 80px 24px;
  max-width: 560px;
  margin-left: calc((100vw - 1100px) / 2);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 800;
  color: var(--gold); letter-spacing: 1px;
  margin-bottom: 28px;
}
.badge-spade { font-size: 14px; }
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-dim);
  line-height: 1.65; max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: 22px; font-weight: 900; color: var(--gold);
  letter-spacing: -0.5px;
}
.stat-lbl { font-size: 12px; color: var(--text-dim); max-width: 120px; line-height: 1.3; }
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.1);
}

.hero-phones {
  flex-shrink: 0;
  position: relative;
  width: 360px; height: 640px;
  margin-right: calc((100vw - 1100px) / 2);
  align-self: center;
}
.phone-wrap {
  position: absolute;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-wrap img { width: 100%; height: 100%; object-fit: cover; }
.phone-back {
  width: 240px; height: 480px;
  top: 80px; left: 0;
  opacity: 0.6;
  transform: rotate(-6deg);
}
.phone-front {
  width: 260px; height: 520px;
  top: 60px; right: 0;
  z-index: 1;
}

/* ── Features ── */
.features {
  padding: 120px 0;
  background: var(--bg2);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px; font-weight: 800;
  margin-bottom: 10px; color: white;
}
.feature-card p {
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots {
  padding: 120px 0 80px;
  overflow: hidden;
}
.screenshots .container { margin-bottom: 48px; }
.scroll-gallery {
  overflow-x: auto;
  padding: 12px 24px 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.scroll-gallery::-webkit-scrollbar { display: none; }
.scroll-track {
  display: flex; gap: 20px;
  width: max-content;
  padding: 0 calc((100vw - 1100px) / 2);
}
.scroll-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.scroll-item img {
  width: 220px; height: 440px;
  object-fit: cover; object-position: top;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.scroll-item span {
  font-size: 13px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.3px;
}

/* ── How it works ── */
.how-it-works {
  padding: 120px 0;
  background: var(--bg2);
}
.steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 680px;
}
.step {
  display: flex; gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 13px; font-weight: 900;
  color: var(--gold); letter-spacing: 1px;
  min-width: 32px;
  padding-top: 4px;
}
.step-body h3 {
  font-size: 20px; font-weight: 800;
  margin-bottom: 8px;
}
.step-body p {
  font-size: 15px; color: var(--text-dim); line-height: 1.65;
}

/* ── Pricing ── */
.pricing {
  padding: 120px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}
.pricing-featured {
  background: linear-gradient(145deg, #1a1a2e, #1e1e38);
  border-color: var(--gold-border);
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(245,197,66,0.08);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #0a0a12;
  font-size: 11px; font-weight: 900; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 20px;
}
.pricing-tier {
  font-size: 14px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 42px; font-weight: 900; color: white;
  letter-spacing: -1px; margin-bottom: 4px;
}
.pricing-price span {
  font-size: 16px; font-weight: 500; color: var(--text-dim);
  letter-spacing: 0;
}
.pricing-trial {
  font-size: 13px; font-weight: 700; color: var(--green);
  margin-bottom: 28px;
}
.pricing-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.pricing-list li {
  font-size: 14px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.pricing-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Download ── */
.download {
  padding: 120px 0;
  background: var(--bg2);
  text-align: center;
}
.download-inner {
  max-width: 560px; margin: 0 auto;
}
.download-spade {
  font-size: 64px; color: var(--gold);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(245,197,66,0.4));
}
.download h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900; letter-spacing: -1px;
  margin-bottom: 16px;
}
.download p {
  font-size: 17px; color: var(--text-dim);
  margin-bottom: 36px; line-height: 1.6;
}
.download-note {
  font-size: 13px; color: rgba(255,255,255,0.3);
  margin-top: 16px; margin-bottom: 0;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
}
.footer-logo {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #f5c542, #ff9f0a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px; color: var(--text-dim);
}
.footer-links {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p {
  font-size: 12px; color: rgba(255,255,255,0.25);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 80px;
    min-height: unset;
  }
  .hero-inner {
    padding: 60px 24px 0;
    margin-left: 0;
    max-width: 100%;
  }
  .hero-phones {
    margin: 0 auto 60px;
    width: 280px; height: 500px;
  }
  .phone-back { width: 190px; height: 380px; }
  .phone-front { width: 210px; height: 420px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-featured { transform: none; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 600px) {
  .section-title { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .scroll-track { padding: 0 24px; }
}

/* ── Legal / Support pages ── */
.legal-page {
  padding: 120px 0 80px;
  min-height: 80vh;
}
.legal-inner {
  max-width: 720px;
}
.legal-inner h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 14px; color: var(--text-dim);
  margin-bottom: 56px;
}
.legal-body {
  display: flex; flex-direction: column; gap: 32px;
}
.legal-body h2 {
  font-size: 20px; font-weight: 800;
  color: white; margin-bottom: 10px;
}
.legal-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.legal-body p {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.75;
}
.legal-body p + p { margin-top: 10px; }
.legal-body ul {
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  margin: 10px 0;
}
.legal-body ul li {
  font-size: 15px; color: var(--text-dim); line-height: 1.6;
}
.legal-body a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  transition: border-color 0.15s;
}
.legal-body a:hover { border-color: var(--gold); }
.support-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.support-cta h2 { font-size: 22px; font-weight: 800; }
.support-cta p { font-size: 15px; color: var(--text-dim); }
.support-cta .btn-primary { align-self: flex-start; margin-top: 4px; }

/* ════════ Animations ════════ */

/* Fade-up base state — set on elements before they enter viewport */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.fade-up[data-delay="1"] { transition-delay: 0.08s; }
.fade-up[data-delay="2"] { transition-delay: 0.16s; }
.fade-up[data-delay="3"] { transition-delay: 0.24s; }
.fade-up[data-delay="4"] { transition-delay: 0.32s; }
.fade-up[data-delay="5"] { transition-delay: 0.40s; }
.fade-up[data-delay="6"] { transition-delay: 0.48s; }
.fade-up[data-delay="7"] { transition-delay: 0.56s; }
.fade-up[data-delay="8"] { transition-delay: 0.64s; }

/* Hero entrance — runs immediately on load, no scroll trigger needed */
.hero-badge   { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-title   { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.22s both; }
.hero-sub     { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
.hero-actions { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.44s both; }
.hero-stats   { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.54s both; }
.phone-back   { animation: phoneBack 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.phone-front  { animation: phoneFront 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phoneBack {
  from { opacity: 0; transform: rotate(-6deg) translateX(-30px); }
  to   { opacity: 0.6; transform: rotate(-6deg) translateX(0); }
}
@keyframes phoneFront {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Number counter pulse when stat enters view */
.stat-num { display: inline-block; }
.stat-num.counting {
  animation: statPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes statPop {
  0%   { transform: scale(0.7); opacity: 0.3; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Pricing card hover lift */
.pricing-card {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pricing-featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 24px 80px rgba(245,197,66,0.15);
}

/* Gold glow pulse on spade in download section */
.download-spade {
  animation: spadePulse 3s ease-in-out infinite;
}
@keyframes spadePulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(245,197,66,0.35)); }
  50%       { filter: drop-shadow(0 0 48px rgba(245,197,66,0.7)); }
}

/* Step number accent */
.step { transition: background 0.2s; border-radius: 12px; padding: 36px 16px; }
.step:hover { background: rgba(245,197,66,0.04); }

/* Screenshot item hover */
.scroll-item img {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s ease;
}
.scroll-item:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

/* Nav link underline slide */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Smooth nav background on scroll */
.nav.scrolled {
  background: rgba(10,10,18,0.98);
  box-shadow: 0 1px 40px rgba(0,0,0,0.3);
}

/* ════════ Support Form ════════ */
.hidden { display: none; }

.support-form-wrap {
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 48px;
}
.support-form-title {
  font-size: 28px; font-weight: 900; color: white;
  margin-bottom: 8px;
}
.support-form-sub {
  font-size: 15px; color: var(--text-dim);
  margin-bottom: 36px; line-height: 1.6;
}
.support-form {
  display: flex; flex-direction: column; gap: 20px;
}
.sf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sf-field {
  display: flex; flex-direction: column; gap: 8px;
}
.sf-field label {
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 0.2px;
}
.sf-field input,
.sf-field select,
.sf-field textarea {
  background: var(--bg2);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.sf-field input::placeholder,
.sf-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.sf-field input:focus,
.sf-field select:focus,
.sf-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.1);
}
.sf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.sf-field select option { background: #1a1a2e; color: white; }
.sf-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.sf-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f5c542, #e6a817);
  color: #0a0a12;
  font-size: 16px; font-weight: 900;
  border: none; border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 4px;
}
.sf-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.sf-submit:active { transform: scale(0.98); }

.sf-note {
  text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.25);
  margin-top: -4px;
}

/* Success state */
.sf-success {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  padding: 40px 0;
}
.sf-success-icon {
  width: 56px; height: 56px;
  background: rgba(52,199,89,0.15);
  border: 1.5px solid #34c759;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #34c759; font-weight: 900;
  margin-bottom: 8px;
}
.sf-success h3 { font-size: 22px; font-weight: 800; color: white; }
.sf-success p  { font-size: 15px; color: var(--text-dim); max-width: 340px; }

@media (max-width: 600px) {
  .sf-row { grid-template-columns: 1fr; }
  .support-form-wrap { padding: 28px 20px; }
}
