/* ===== CSS Variables ===== */
:root {
  --bg-primary: #080e1a;
  --bg-secondary: #0d1527;
  --bg-card: #111d33;
  --bg-card-hover: #152240;
  --green-primary: #00d68f;
  --green-dark: #00a86b;
  --green-glow: rgba(0, 214, 143, 0.25);
  --green-subtle: rgba(0, 214, 143, 0.08);
  --text-primary: #e8edf5;
  --text-secondary: #8a95a9;
  --text-muted: #5a6578;
  --border-color: rgba(255, 255, 255, 0.06);
  --nav-height: 72px;
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

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

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ===== Animated Background ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 214, 143, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 214, 143, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  top: -200px;
  right: -100px;
  background: var(--green-primary);
}

.bg-glow--2 {
  bottom: -200px;
  left: -100px;
  background: #0066ff;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(8, 14, 26, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  z-index: 1001;
}

.nav__logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav__logo span {
  color: var(--green-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--green-primary);
  color: #080e1a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: #00e89d;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--green-glow);
}

.nav__cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay — hidden by default */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.nav__mobile a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--transition);
}

.nav__mobile a:hover {
  color: var(--green-primary);
}

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

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--green-subtle);
  border: 1px solid rgba(0, 214, 143, 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

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

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title em {
  font-style: normal;
  position: relative;
  color: var(--green-primary);
}

.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--green-glow);
  border-radius: 4px;
}

.hero__desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--green-primary);
  color: #080e1a;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #00e89d;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--green-glow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.4s both;
}

.hero__phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(165deg, #111d33, #0d1527);
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero__phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #080e1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.hero__phone-screen {
  position: absolute;
  inset: 2px;
  border-radius: 38px;
  background: linear-gradient(180deg, #0d1a2d, #0a1222);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 24px;
}

.hero__phone-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.phone-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.shield-icon {
  width: 120px;
  height: 120px;
  margin: 20px 0;
}

.phone-btn {
  width: 100%;
  padding: 14px;
  background: var(--green-primary);
  color: #080e1a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 14px;
  margin-top: auto;
}

/* Orbit rings */
.hero__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 214, 143, 0.08);
  animation: spin 30s linear infinite;
}

.hero__orbit--1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__orbit--2 {
  width: 540px;
  height: 540px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 45s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green-glow);
}

.hero__orbit--1 .orbit-dot { top: 0; left: 50%; }
.hero__orbit--2 .orbit-dot { bottom: 0; right: 15%; }

/* ===== Stats ===== */
.stats {
  padding: 40px 0 80px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 214, 143, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-card__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Features ===== */
.features {
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.features__header .section-desc {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 214, 143, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--green-subtle);
  border: 1px solid rgba(0, 214, 143, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-primary);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
  position: relative;
}

.cta__box {
  background: linear-gradient(135deg, #0d1e30, #0a1628);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--green-glow), transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta__desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  position: relative;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--green-primary);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--green-primary);
  flex-shrink: 0;
}

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

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

.legal-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-page__content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page__content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.legal-page__content h2:first-child {
  margin-top: 0;
}

.legal-page__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-page__content ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.legal-page__content ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 6px;
}

.legal-page__content a {
  color: var(--green-primary);
}

.legal-page__content a:hover {
  text-decoration: underline;
}

.legal-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Contact Page ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(0, 214, 143, 0.2);
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: var(--green-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-primary);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card__info {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-card__info a {
  color: var(--green-primary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .nav__links,
  .nav__cta-wrap {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile menu — enable on small screens */
  .nav__mobile {
    display: flex;
  }

  .hero__phone {
    width: 240px;
    height: 480px;
  }

  .hero__orbit--1 { width: 320px; height: 320px; }
  .hero__orbit--2 { width: 440px; height: 440px; }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .cta__box {
    padding: 48px 28px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .legal-page__content {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stat-card__number {
    font-size: 32px;
  }
}
