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

:root {
  --red:        #E53E3E;
  --red-dark:   #C53030;
  --red-glow:   rgba(229, 62, 62, 0.15);
  --bg:         #0F0F0F;
  --bg-2:       #161616;
  --bg-3:       #1E1E1E;
  --border:     rgba(255,255,255,0.08);
  --text:       #F2F2F2;
  --text-muted: #9CA3AF;
  --white:      #FFFFFF;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── Typography ───────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.text-red { color: var(--red); }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(229,62,62,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.btn-nav,
.nav-links a.btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 0.875rem;
}
.btn-nav:hover,
.nav-links a.btn-nav:hover { background: var(--red-dark); }

.btn-full { width: 100%; justify-content: center; }

/* ─── Section Shared ───────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p { color: var(--text-muted); margin-top: 16px; font-size: 1.0625rem; }

.section-tag {
  display: inline-block;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(229,62,62,0.3);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* ─── Header / Nav ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo strong { font-weight: 900; color: var(--red); }
.logo-star { width: 28px; height: 28px; color: var(--red); flex-shrink: 0; }
.logo-footer { font-size: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(229,62,62,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(229,62,62,0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 640px;
  margin: 24px auto 40px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  max-width: 660px;
  margin: 0 auto;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  flex: 1;
}
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ─── Platforms ────────────────────────────────────────── */
.platforms {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.platforms-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.platform-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  cursor: default;
}
.platform-name:hover { color: rgba(255,255,255,0.6); }

/* ─── Solutions ────────────────────────────────────────── */
.solutions {
  padding: 100px 0;
}

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

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.card-featured {
  border-color: rgba(229,62,62,0.4);
  background: linear-gradient(160deg, rgba(229,62,62,0.06), var(--bg-2));
}
.card-featured:hover { border-color: rgba(229,62,62,0.7); }

.card-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--red);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--red-glow);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--red); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }

.card-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.card-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Why Us ───────────────────────────────────────────── */
.why-us {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}

.feature {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--red); }

.feature-body h4 { margin-bottom: 6px; }
.feature-body p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ─── How It Works ─────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red-glow);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 12px; }
.step p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(229,62,62,0.2));
  margin-top: 30px;
}

/* ─── Metrics ──────────────────────────────────────────── */
.metrics {
  background: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: var(--red);
  border-radius: var(--radius);
  position: relative;
}
.metric-num { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.metric-label { font-size: 0.875rem; color: rgba(255,255,255,0.85); margin-top: 8px; }

/* ─── Testimonial ──────────────────────────────────────── */
.testimonial {
  padding: 100px 0;
  background: var(--bg-2);
}

.testimonial-card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  text-align: center;
}

.quote-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
  color: var(--red);
  opacity: 0.6;
}
.quote-icon svg { width: 100%; height: 100%; }

.testimonial-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.9375rem; }
.testimonial-author span { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── FAQ ──────────────────────────────────────────────── */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question[aria-expanded="true"] { background: rgba(229,62,62,0.05); }

.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  display: none;
  padding: 0 28px 22px;
}
.faq-answer.open { display: block; }
.faq-answer p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* ─── Contact ──────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { padding-top: 8px; }
.contact-info h2 { margin-top: 16px; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.contact-item svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

/* Form */
.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2); }

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select option { background: var(--bg-3); }

textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: -4px;
}

.form-success {
  display: none;
  background: rgba(229,62,62,0.08);
  border: 1px solid rgba(229,62,62,0.3);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--red);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.footer-col h5 { margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

/* ─── Scroll Reveal ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.scale      { transform: scale(0.92); }

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15,15,15,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    max-height: 400px;
    padding: 16px 0 24px;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1rem; }
  .btn-nav { display: inline-flex; margin-top: 8px; }

  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 0; }
  .stat { padding: 16px 20px; }
  .stat-num { font-size: 1.375rem; }
  .stat-divider { height: 36px; }

  .steps { flex-direction: column; align-items: center; gap: 16px; }
  .step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--red), rgba(229,62,62,0.2));
    margin: 0;
  }

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

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

  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; align-items: stretch; }
  .stat-divider { width: 100%; height: 1px; }
  .platform-logos { gap: 24px; }
  .footer-links { grid-template-columns: 1fr; }
}
