/* Variables & Reset */
:root {
  --bg: #050508;
  --surface: #0c0c12;
  --card: #0f0f18;
  --card-hover: #131320;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00e5ff;
  --accent-2: #8b5cf6;
  --accent-3: #06ffa5;
  --text: #ffffff;
  --text-muted: #6b7280;
  --gradient: linear-gradient(135deg, #00e5ff, #8b5cf6);
  --max-w: 1200px;
  --radius: 16px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Cursor Glow */
#cursor-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.065) 0%, rgba(139, 92, 246, 0.035) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  will-change: left, top;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

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

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

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

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 72px;
}

.section-header h2 { margin: 14px 0 20px; }
.section-header p { font-size: 1.05rem; }

/* Label badge */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gradient);
  color: #030308;
  padding: 15px 34px;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 33px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 28px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('https://images.pexels.com/photos/12627677/pexels-photo-12627677.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 8, 0.9) 0%,
    rgba(5, 5, 8, 0.65) 60%,
    rgba(5, 5, 8, 0.82) 100%
  );
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 229, 255, 0.07);
  top: -80px;
  right: 5%;
  animation: orb-float 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(139, 92, 246, 0.09);
  bottom: 5%;
  right: 25%;
  animation: orb-float 12s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero-title {
  margin-bottom: 28px;
  background: linear-gradient(150deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.48);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.75;
}

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

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0.45;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 36px 28px 40px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  cursor: default;
}

.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 229, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover {
  border-color: rgba(0, 229, 255, 0.18);
  transform: translateY(-5px);
  background: var(--card-hover);
}

.step-card:hover::after { opacity: 1; }

.step-number {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.45;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card h3 { margin-bottom: 12px; }
.step-card p { font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.pricing-card {
  position: relative;
  padding: 48px 38px;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.pricing-card:not(.featured):hover { transform: translateY(-5px); }

.pricing-card.featured {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              var(--gradient) border-box;
  border: 1px solid transparent;
  transform: scale(1.04);
  z-index: 2;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #030308;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.pricing-price {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-price sup {
  font-size: 1.4rem;
  vertical-align: super;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.check-icon {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-icon svg {
  width: 9px;
  height: 9px;
  stroke: var(--accent);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-cta {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.85);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.about-image:hover img {
  transform: scale(1.03);
  filter: brightness(0.85) saturate(0.95);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-content .label { margin-bottom: 22px; }
.about-content h2 { margin-bottom: 24px; }
.about-content p { margin-bottom: 16px; }

.about-stats {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-item h4 {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.stat-item p {
  font-size: 0.82rem;
  margin: 4px 0 0;
  line-height: 1.4;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  font-style: italic;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 270px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255, 255, 255, 0.5); }

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Page */
.contact-page { min-height: 100vh; display: flex; flex-direction: column; }

.contact-hero {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 16px 0 20px;
}

.contact-hero p {
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto;
}

.contact-body {
  flex: 1;
  padding: 0 24px 120px;
  position: relative;
  z-index: 1;
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 9px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

/* Override browser autofill background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0f0f18 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: var(--border) !important;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 229, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.07);
}

.form-group textarea {
  resize: vertical;
  min-height: 148px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: 12px;
  margin-top: 8px;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 24px;
}

.success-msg h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hamburger menu */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.2s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-links li a {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.03em;
  padding: 10px 0;
  transition: color 0.2s;
}

.nav-mobile-links li a:hover,
.nav-mobile-links li a:active { color: var(--accent); }

.nav-mobile-cta {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pricing-card.featured { transform: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

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

  .steps-grid { grid-template-columns: 1fr; gap: 14px; }

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

  .about-image { aspect-ratio: 16 / 9; }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 36px;
    margin-top: 36px;
  }

  .stat-item { text-align: center; }
  .stat-item h4 { font-size: 1.8rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-card { padding: 32px 20px; }

  .contact-hero { padding: calc(var(--nav-h) + 40px) 0 40px; }

  .contact-body { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-item h4 { font-size: 1.5rem; }
  .stat-item p { font-size: 0.75rem; }

  .step-card { padding: 28px 22px; }

  .pricing-card { padding: 36px 24px; }

  .footer-brand p { max-width: none; }

  /* Prevent iOS font zoom on inputs */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}
