/* ============================================================
   SpotHK Marketing Website — Global Styles
   Domain: spothk.navbytes.io
   ============================================================ */

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

:root {
  /* Brand */
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --sky:        #0EA5E9;
  --cyan:       #06B6D4;
  --amber:      #F59E0B;
  --emerald:    #10B981;
  --red:        #EF4444;

  /* Surfaces */
  --bg:         #0B1120;
  --bg-card:    rgba(255,255,255,0.04);
  --bg-glass:   rgba(15,25,35,0.72);
  --surface:    #111827;
  --border:     rgba(255,255,255,0.08);

  /* Text */
  --text:       #F1F5F9;
  --text-dim:   #94A3B8;
  --text-muted: #64748B;

  /* Misc */
  --radius:     16px;
  --radius-sm:  10px;
  --max-w:      1180px;
  --nav-h:      72px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--sky), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sky);
  margin-bottom: 12px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
  color: #fff;
}

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(14,165,233,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(245,158,11,0.08) 0%, transparent 50%),
              var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 500px; height: 500px; background: var(--sky); top: -10%; left: -5%; }
.blob-2 { width: 400px; height: 400px; background: var(--amber); bottom: -5%; right: -5%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(25px,-25px) scale(1.04); }
  66% { transform: translate(-15px,15px) scale(0.96); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-text { max-width: 540px; }
.hero-text h1 { margin-bottom: 24px; }
.hero-text p { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 36px; max-width: 460px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14,165,233,0.35);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  color: var(--text);
}

.btn svg { width: 20px; height: 20px; }

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

.phone-mockup {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #1a2332, #0f1923);
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border-radius: 38px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 20px;
}

.phone-screen-map {
  width: 100%;
  flex: 1;
  border-radius: 16px;
  background: linear-gradient(170deg, #1a3a2a 0%, #1a2a3a 40%, #0f1f2f 100%);
  position: relative;
  overflow: hidden;
}

.phone-screen-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px);
}

.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,0.5);
  animation: pin-bounce 2s ease-in-out infinite;
}
.map-pin::after {
  content: 'P';
  transform: rotate(45deg);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.map-pin:nth-child(1) { top: 25%; left: 30%; }
.map-pin:nth-child(2) { top: 45%; left: 60%; animation-delay: 0.5s; }
.map-pin:nth-child(3) { top: 65%; left: 35%; animation-delay: 1s; }
.map-pin:nth-child(4) { top: 35%; left: 70%; animation-delay: 1.5s; background: var(--emerald); box-shadow: 0 4px 12px rgba(16,185,129,0.5); }

@keyframes pin-bounce {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-4px); }
}

.phone-bar {
  width: 100%;
  padding: 12px 0 6px;
  display: flex;
  justify-content: center;
}
.phone-bar-inner {
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .phone-mockup { width: 220px; height: 460px; }
}

/* ---------- Stats Bar ---------- */
.stats {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Features (Bento Grid) ---------- */
.features { padding: 100px 0; }
.features-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.features-header p { color: var(--text-dim); margin-top: 16px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.bento-card.large { grid-column: span 2; }

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.bento-icon.blue   { background: rgba(14,165,233,0.12); color: var(--sky); }
.bento-icon.amber  { background: rgba(245,158,11,0.12); color: var(--amber); }
.bento-icon.green  { background: rgba(16,185,129,0.12); color: var(--emerald); }
.bento-icon.purple { background: rgba(168,85,247,0.12); color: #A855F7; }
.bento-icon.cyan   { background: rgba(6,182,212,0.12); color: var(--cyan); }
.bento-icon.red    { background: rgba(239,68,68,0.12); color: var(--red); }

.bento-card h3 { margin-bottom: 10px; }
.bento-card p { color: var(--text-dim); font-size: 0.95rem; }

@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: span 1; }
}

/* ---------- How It Works ---------- */
.how { padding: 100px 0; background: var(--surface); }
.how-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.how-header p { color: var(--text-dim); margin-top: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  color: #fff;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.95rem; max-width: 280px; margin: 0 auto; }

/* Connector lines between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--border));
  z-index: -1;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .blob { opacity: 0.12; }

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 36px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--surface); }
.faq-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.faq-header p { color: var(--text-dim); margin-top: 16px; }

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:hover { color: var(--sky); }
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a { color: var(--sky); }
.legal-content a:hover { text-decoration: underline; }

/* ---------- Support Page ---------- */
.support-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}
.support-page h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.support-page .subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.support-card:hover {
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-2px);
}
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.support-card .support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .support-grid { grid-template-columns: 1fr; }
}

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

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
