@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;1,6..12,400&display=swap');

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

:root {
  --bg:        #07080c;
  --surface:   #0c0d14;
  --card:      #10121a;
  --card2:     #13151f;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #b91c1c;
  --accent-bright: #dc2626;
  --accent-dim:rgba(185,28,28,0.13);
  --accent-glow:rgba(185,28,28,0.28);
  --text:      #e8edf8;
  --muted:     #6e7a94;
  --faint:     #3a4156;
  --radius:    8px;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --max-w:     1080px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--muted); }

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(7,8,12,.88);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: .4rem;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  color: var(--muted); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
  opacity: 1;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: #dc2626 !important; opacity: 1 !important; }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: .4rem;
}
.nav-toggle svg { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #dc2626; opacity: 1; color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 2rem; max-width: var(--max-w); margin: 0 auto; }
.full-section { padding: 5.5rem 2rem; }
.full-section .container { max-width: var(--max-w); margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
}
.card:hover { border-color: rgba(14,165,233,.2); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.25rem; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.25rem; counter-reset: steps; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  counter-increment: steps; position: relative; overflow: hidden;
  transition: border-color .2s;
}
.step:hover { border-color: rgba(14,165,233,.25); }
.step-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 700;
  color: var(--accent); opacity: .18; line-height: 1; margin-bottom: .75rem;
}
.step h3 { margin-bottom: .5rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 60% 40%, rgba(185,28,28,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(185,28,28,.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(185,28,28,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,28,28,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent-dim); border: 1px solid rgba(14,165,233,.2);
  border-radius: 100px; padding: .35rem .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.hero h1 { max-width: 700px; margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.1rem; max-width: 520px; margin-bottom: 2.25rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-contact {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.hero-contact-item { font-size: .85rem; color: var(--muted); }
.hero-contact-item strong { color: var(--text); font-weight: 600; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 2rem 3.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { font-size: 1.05rem; max-width: 560px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* ── Highlight strip ── */
.strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}
.strip-inner { max-width: var(--max-w); margin: 0 auto; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }
.strip-item {}
.strip-item .num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
  color: var(--text); line-height: 1; margin-bottom: .3rem;
}
.strip-item .num span { color: var(--accent); }
.strip-item p { font-size: .9rem; }

/* ── Accordion ── */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%; background: none; border: none;
  color: var(--text); text-align: left; padding: 1.4rem 0;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; letter-spacing: .01em; transition: color .2s;
}
.accordion-btn:hover { color: var(--accent); }
.accordion-icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all .2s; color: var(--muted);
  line-height: 1;
}
.accordion-item.open .accordion-btn { color: var(--accent); }
.accordion-item.open .accordion-icon {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
}
.accordion-body {
  display: none; padding-bottom: 1.5rem;
  color: var(--muted); line-height: 1.85; font-size: .98rem;
}
.accordion-item.open .accordion-body { display: block; }

/* ── Form ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
input, select, textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: .98rem;
  padding: .75rem 1rem; outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: var(--faint); }

/* ── TOS ── */
.tos-body { max-width: 720px; }
.tos-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.tos-section:last-child { border-bottom: none; }
.tos-section h3 {
  font-family: var(--font-head); font-size: 1.3rem;
  letter-spacing: .03em; margin-bottom: 1rem; color: var(--text);
}
.tos-section p, .tos-section li { color: var(--muted); font-size: .97rem; line-height: 1.85; }
.tos-section ul { padding-left: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.tos-note {
  background: var(--accent-dim); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1.1rem; margin-bottom: 1rem;
  font-size: .9rem; color: var(--muted);
}

/* ── Contact box ── */
.contact-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center;
  justify-content: space-between;
}
.contact-box h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.contact-box p { color: var(--muted); }
.contact-box-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ── Footer ── */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .6rem; max-width: 280px; }
.footer-logo {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.footer-logo .dot { color: var(--accent); }
.footer h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { color: var(--muted); font-size: .88rem; transition: color .2s; opacity: 1; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: .82rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.5rem 2rem; gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 1.5rem; }
  .full-section { padding: 3.5rem 1.5rem; }
  .contact-box { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
@keyframes scan-line {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .6; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero staggered entrance */
.hero-eyebrow  { animation: slideRight .7s ease both; animation-delay: .1s; opacity:0; }
.hero h1       { animation: fadeUp .8s ease both; animation-delay: .25s; opacity:0; }
.hero > .hero-inner > p { animation: fadeUp .8s ease both; animation-delay: .4s; opacity:0; }
.hero-actions  { animation: fadeUp .8s ease both; animation-delay: .55s; opacity:0; }
.hero-contact  { animation: fadeUp .8s ease both; animation-delay: .7s; opacity:0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Card hover lift */
.card {
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(185,28,28,.35) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.step {
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.step:hover {
  border-color: rgba(185,28,28,.35) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* Scan line overlay on hero */
.hero-scan {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-scan::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(185,28,28,.18), transparent);
  animation: scan-line 6s linear infinite;
  animation-delay: 1.5s;
}

/* Stat counter section */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.stat-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: .85rem; color: var(--muted); }

/* Use-case chips */
.use-chips {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem;
}
.chip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: .35rem .9rem;
  font-size: .8rem; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--text); cursor: default; }

/* Testimonial / trust bar */
.trust-bar {
  display: flex; align-items: center; gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: var(--card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .83rem; color: var(--muted);
}
.trust-icon {
  width: 18px; height: 18px; color: var(--accent); flex-shrink: 0;
}

/* Split section */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.split-visual {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  padding: 2.5rem;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.split-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(185,28,28,.1) 0%, transparent 70%);
  pointer-events: none;
}
.terminal-line {
  font-family: 'Courier New', monospace; font-size: .82rem;
  color: var(--muted); line-height: 2;
}
.terminal-line .t-label { color: var(--accent); }
.terminal-line .t-value { color: var(--text); }
.terminal-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); vertical-align: middle;
  animation: pulse-dot 1.1s ease infinite;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .stat-item:last-child { border-bottom: none !important; }
}
