/* ─────────────────────────────────────────────
   Visionbrew Landing — Dark Spatial Design
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #06856B;
  --green-dim: rgba(6, 133, 107, 0.18);
  --green-glow: rgba(6, 133, 107, 0.35);
  --bg: #080c0b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f0f4f2;
  --text-muted: rgba(240, 244, 242, 0.50);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(8, 12, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--surface-border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero_image_v3.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) saturate(0.6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(6, 133, 107, 0.12) 0%, transparent 70%),
              linear-gradient(to bottom, rgba(8,12,11,0.3) 0%, rgba(8,12,11,0.85) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  color: #4ecda4;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ecda4;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ecda4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #06856B 0%, #4ecda4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--green-glow);
  color: #fff;
  text-decoration: none;
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero-scroll svg { width: 20px; height: 20px; }

/* ── SECTION COMMON ── */
section { padding: 6rem 1.5rem; }
.section-label {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header { max-width: 580px; margin: 0 auto 4rem; text-align: center; }
.section-header p { margin-top: 0.85rem; font-size: 1.05rem; }
.container { max-width: 1100px; margin: 0 auto; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(16.66% + 1.5rem);
  right: calc(16.66% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.step-card:hover { border-color: rgba(6, 133, 107, 0.4); transform: translateY(-4px); }
.step-number {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4ecda4;
  margin-bottom: 1.25rem;
}
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.step-card p { font-size: 0.9rem; }

/* ── USE CASES ── */
.use-cases-section { background: linear-gradient(180deg, transparent 0%, rgba(6,133,107,0.04) 50%, transparent 100%); }
.use-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.use-case-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s, background 0.3s;
  cursor: default;
}
.use-case-card:hover {
  border-color: rgba(6, 133, 107, 0.35);
  background: rgba(6, 133, 107, 0.05);
}
.use-case-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.use-case-card h3 { font-size: 1rem; }
.use-case-card p { font-size: 0.875rem; margin: 0; }

/* ── AVATAR SHOWCASE ── */
.showcase-section { overflow: hidden; }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.showcase-phone {
  position: relative;
  width: 260px;
  z-index: 2;
}
.showcase-phone img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(6,133,107,0.15);
}
.showcase-glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,133,107,0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.showcase-chip {
  position: absolute;
  background: rgba(8,12,11,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  z-index: 3;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.showcase-chip .chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ecda4;
  box-shadow: 0 0 8px #4ecda4;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.chip-top { top: 10%; right: -30px; }
.chip-bottom { bottom: 12%; left: -40px; }
.showcase-text { display: flex; flex-direction: column; gap: 1.5rem; }
.showcase-text h2 { margin-bottom: 0.25rem; }
.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: rgba(6, 133, 107, 0.3); }
.feature-item-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--green-dim);
  border-radius: 8px;
  margin-top: 1px;
}
.feature-item-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.feature-item-text p { font-size: 0.825rem; margin: 0; line-height: 1.5; }

/* ── DOWNLOAD CTA ── */
.download-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(6,133,107,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.download-inner {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 4rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.download-inner h2 { margin-bottom: 0.75rem; }
.download-inner p { margin-bottom: 2rem; }
.appstore-btn {
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
}
.appstore-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.appstore-btn img { height: 52px; width: auto; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-logo img { width: 22px; height: 22px; border-radius: 5px; opacity: 0.7; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps::before { display: none; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .showcase-inner { grid-template-columns: 1fr; gap: 3rem; }
  .showcase-phone { width: 220px; }
  .chip-top { right: -10px; }
  .chip-bottom { left: -10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: rgba(8,12,11,0.96); backdrop-filter: blur(20px); padding: 1.5rem; border-bottom: 1px solid var(--surface-border); gap: 1rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; }
  .hero-sub { font-size: 1rem; }
  .download-inner { padding: 2.5rem 1.5rem; border-radius: 16px; }
  .showcase-chip { display: none; }
}
