/* ===== TOKENS ===== */
:root {
  --navy:    #0A0F1E;
  --navy2:   #111827;
  --navy3:   #1A2236;
  --blue:    #2D7EFF;
  --blue-glow: rgba(45,126,255,0.18);
  --white:   #F0F4FF;
  --slate:   #8896B3;
  --green:   #3DD68C;
  --border:  rgba(255,255,255,0.07);
  --radius:  10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  min-height: 2.2em;
  margin-bottom: 1.4rem;
}
.typewriter { color: var(--white); }
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== TERMINAL ===== */
.hero-terminal {
  position: relative;
  z-index: 1;
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 340px;
  flex-shrink: 0;
  box-shadow: 0 0 60px var(--blue-glow);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #161B22;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #FF5F57;
}
.terminal-bar span:nth-child(2) { background: #FEBC2E; }
.terminal-bar span:nth-child(3) { background: #28C840; }
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 2;
}
.terminal-body p { opacity: 0; animation: fadeIn 0.4s forwards; }
.terminal-body p:nth-child(1) { animation-delay: 0.3s; }
.terminal-body p:nth-child(2) { animation-delay: 1s; }
.terminal-body p:nth-child(3) { animation-delay: 1.6s; }
.terminal-body p:nth-child(4) { animation-delay: 2.2s; }
.terminal-body p:nth-child(5) { animation-delay: 2.8s; }
.terminal-body p:nth-child(6) { animation-delay: 3.4s; }
@keyframes fadeIn { to { opacity: 1; } }

.t-dim   { color: #484F58; }
.t-cmd   { color: var(--white); }
.t-green { color: var(--green); }
.t-blue  { color: var(--blue); }
.t-blink .t-blue { animation: blink 1s step-end infinite; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ===== CARDS ===== */
.products-preview { background: var(--navy2); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}
.card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); }
.card-featured {
  border-color: rgba(45,126,255,0.35);
  box-shadow: 0 0 40px var(--blue-glow);
}
.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card p { color: var(--slate); line-height: 1.7; margin-bottom: 1.5rem; }
.card-link { color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; }

/* ===== SERVICES ===== */
.services-preview { background: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.service-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.service-item:hover { border-color: var(--blue); }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-item p { color: var(--slate); font-size: 0.9rem; line-height: 1.6; }

/* ===== WHY ===== */
.why { background: var(--navy2); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-text p { color: var(--slate); margin-bottom: 1.5rem; line-height: 1.8; }
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.why-list li {
  color: var(--slate);
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}
.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.why-stat-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label { color: var(--slate); font-size: 0.85rem; margin-top: 0.3rem; }

/* ===== CTA ===== */
.cta-section { background: var(--navy); text-align: center; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 100%;
}
.cta-inner p { color: var(--slate); margin-bottom: 2rem; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.footer {
  background: #07090F;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand p { color: var(--slate); font-size: 0.85rem; margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--slate); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--slate); font-size: 0.8rem; width: 100%; text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 2rem 5rem;
  text-align: center;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-hero p { color: var(--slate); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero-inner { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-terminal { width: 100%; max-width: 400px; }
  .why-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy2); padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
