/* ============================================================
   LinksVault Landing Page Styles
   Design: Dark + Cyan/Teal, mobile-first, outline icons
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:             #08080F;
  --surface:        #0F1627;
  --surface-high:   #172035;
  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(6, 182, 212, 0.3);
  --accent:         #06B6D4;
  --accent-bright:  #22D3EE;
  --accent-dim:     #0891B2;
  --accent-glow:    rgba(6, 182, 212, 0.25);
  --accent-subtle:  rgba(6, 182, 212, 0.08);
  --text:           #F0F9FF;
  --text-muted:     #7899B8;
  --text-faint:     #3A5070;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --nav-h:          68px;
  --max-w:          1120px;
  --section-gap:    100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

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

.section { padding: var(--section-gap) 0; }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow); }
  50%       { box-shadow: 0 0 36px var(--accent-glow), 0 0 72px rgba(6, 182, 212, 0.12); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #020810;
  animation: pulse-glow 3.5s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-sign-in {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-sign-in:hover { color: var(--text); }

.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(8, 8, 15, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-mobile a {
  display: block;
  padding: 10px 0;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -80px;
  left: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 65%);
  animation-delay: -9s;
}

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

/* Hero left */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.4s ease both;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero-h1 .accent-word {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}

/* Hero right -- phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.6s 0.2s ease both;
}

.phone-mockup {
  width: 270px;
  background: var(--surface);
  border-radius: 40px;
  border: 2px solid var(--border-accent);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.08),
    0 0 60px rgba(6, 182, 212, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 28px 16px 24px;
  animation: float 5s ease-in-out infinite;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: var(--surface-high);
  border-radius: 3px;
  margin: 0 auto 20px;
}

.phone-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.phone-app-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.phone-app-count {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.phone-card {
  background: var(--surface-high);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.phone-card:last-child { margin-bottom: 0; }

.phone-thumb {
  height: 90px;
  width: 100%;
}

.phone-thumb-1 {
  background: linear-gradient(135deg, #1a4a5e 0%, #0e6a7a 40%, #0891B2 100%);
}

.phone-thumb-2 {
  background: linear-gradient(135deg, #2d1b4e 0%, #5b21b6 50%, #7c3aed 100%);
}

.phone-thumb-3 {
  background: linear-gradient(135deg, #1a3a2e 0%, #065f46 50%, #059669 100%);
}

.phone-thumb-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.phone-play-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.phone-play-icon svg {
  width: 14px;
  height: 14px;
  fill: white;
  margin-left: 2px;
}

.phone-card-info {
  padding: 8px 10px;
}

.phone-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-card-platform {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Stats Strip ────────────────────────────────────────────── */
.stats-strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.5);
}

.stats-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 40px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-text strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Problem Section ────────────────────────────────────────── */
.problem {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15, 22, 39, 0.4) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pain-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f87171;
}

.pain-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-text {
  padding-top: 8px;
}

.pain-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.pain-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 60%);
  pointer-events: none;
}

.solution-card-inner { position: relative; }

.solution-big {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.solution-big .accent-word { color: var(--accent); }

.solution-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── Feature Cards ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-bright);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works {
  background: rgba(15, 22, 39, 0.3);
}

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), var(--border), var(--border-accent));
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-dim);
  margin-bottom: 20px;
  display: block;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-bright);
  position: relative;
  z-index: 1;
}

.step-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.footer-brand-name span { color: var(--accent); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}

.footer-copy a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-gap: 70px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }

  .problem-grid { grid-template-columns: 1fr; gap: 48px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before { display: none; }

  .stat-item {
    padding: 10px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .stat-item:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 600px) {
  .hero-h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .phone-mockup { width: 220px; }
}
