/* ============================================================
   White Internet — Landing Page Styles
   Dark glass aesthetic
   ============================================================ */

:root {
  --bg-deep: #06060e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 212, 170, 0.2);
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.4);
  --text-primary: #e8edf4;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Noise texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

img, svg {
  display: block;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================================
   Typography
   ============================================================ */
.heading-display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* ============================================================
   Background Orbs — fluid motion on real paths
   ============================================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18) 0%, rgba(0, 212, 170, 0) 70%);
  top: -20%;
  left: -10%;
  animation: orb-move-1 12s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%);
  top: 30%;
  right: -15%;
  animation: orb-move-2 14s ease-in-out infinite;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.10) 0%, rgba(0, 212, 170, 0) 70%);
  bottom: -5%;
  left: 30%;
  animation: orb-move-3 10s ease-in-out infinite;
}

.orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, rgba(139, 92, 246, 0) 70%);
  top: 10%;
  left: 50%;
  animation: orb-move-4 13s ease-in-out infinite;
}

@keyframes orb-move-1 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(120px, 80px) scale(1.15); }
  40%  { transform: translate(40px, 180px) scale(0.9); }
  60%  { transform: translate(-100px, 100px) scale(1.1); }
  80%  { transform: translate(-60px, -40px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-move-2 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-100px, 70px) scale(1.12); }
  40%  { transform: translate(-180px, -50px) scale(0.88); }
  60%  { transform: translate(-60px, -120px) scale(1.08); }
  80%  { transform: translate(50px, -40px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-move-3 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(90px, -60px) scale(1.15); }
  40%  { transform: translate(-60px, -120px) scale(0.9); }
  60%  { transform: translate(50px, -40px) scale(1.1); }
  80%  { transform: translate(-30px, 60px) scale(0.93); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-move-4 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-80px, 100px) scale(1.12); }
  40%  { transform: translate(60px, 60px) scale(0.92); }
  60%  { transform: translate(120px, -50px) scale(1.08); }
  80%  { transform: translate(30px, -80px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 640px) {
  .orb-1 {
    width: 400px; height: 400px;
    top: -5%; left: -40%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.28) 0%, rgba(0, 212, 170, 0) 70%);
    animation-duration: 8s;
  }
  .orb-2 {
    width: 350px; height: 350px;
    top: 10%; right: -40%; left: auto;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.24) 0%, rgba(99, 102, 241, 0) 70%);
    animation-duration: 9s;
  }
  .orb-3 {
    width: 350px; height: 350px;
    bottom: 15%; left: -10%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.20) 0%, rgba(0, 212, 170, 0) 70%);
    animation-duration: 7s;
  }
  .orb-4 {
    width: 300px; height: 300px;
    top: 35%; left: 30%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
    animation-duration: 8s;
  }
}

/* ============================================================
   Navbar
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent);
  color: #06060e;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-accent:hover {
  background: #00efc0;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   Glass Card
   ============================================================ */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.06);
}

/* ============================================================
   Glow Card (CTA)
   ============================================================ */
.glow-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(99, 102, 241, 0.3), var(--accent-glow));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(99, 102, 241, 0.3));
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
}

.glow-card > .cta-content {
  background: rgba(6, 6, 14, 0.9);
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ============================================================
   Input Fields
   ============================================================ */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ============================================================
   Layout Containers
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   Grids
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

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

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   Cards (centered layout)
   ============================================================ */
.card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.card-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Cards (compact horizontal layout)
   ============================================================ */
.card-compact {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.card-compact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  flex-shrink: 0;
}

.card-compact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.card-compact-content {
  flex: 1;
  min-width: 0;
}

.card-compact-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-compact-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Hero bottom glow line */
.hero::after {
  content: '';
  position: absolute;
  width: 60%;
  max-width: 500px;
  height: 1px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.3), rgba(99, 102, 241, 0.2), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 8px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -8px;
}

/* ============================================================
   Use Cases List
   ============================================================ */
.usecases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.usecase-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}

.usecase-dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.usecase-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.usecase-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Numbered Steps
   ============================================================ */
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.step:hover {
  border-color: var(--border-glow);
}

.step-number {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}

.step-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-title {
  font-size: clamp(22px, 3.5vw, 36px);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-content {
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.modal-title {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Success State */
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

#modal-success {
  text-align: center;
}

#modal-success .modal-subtitle {
  margin-bottom: 0;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animate-in (for elements visible on load) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   Responsive — 640px breakpoint
   ============================================================ */
@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

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

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

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

  .hero {
    padding: calc(var(--nav-height) + 56px) 20px 48px;
  }

  .hero-content {
    gap: 0;
  }

  .hero-badge {
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 320px;
  }

  .hero-cta {
    margin-top: 0;
    margin-bottom: 24px;
  }

  .hero-desc {
    display: none;
  }

  .glow-card > .cta-content {
    padding: 40px 24px;
  }

  .modal-card {
    padding: 28px 20px 24px;
  }

  .faq-question {
    font-size: 15px;
    padding: 16px 18px;
  }

  .faq-answer p {
    padding: 0 18px 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .btn-accent {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ============================================================
   Responsive — 768px breakpoint
   ============================================================ */
@media (min-width: 641px) and (max-width: 767px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: var(--accent-dim);
  color: var(--accent);
}
