/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:           #030810;
  --bg-surface:   #070f1c;
  --bg-card:      #0b1525;
  --accent:       #1a72ff;
  --accent-dim:   rgba(26, 114, 255, 0.15);
  --accent-glow:  rgba(26, 114, 255, 0.35);
  --text-primary: #e8f3ff;
  --text-body:    #8aa4c8;
  --text-muted:   #4a6080;
  --border:       rgba(26, 114, 255, 0.18);
  --border-hover: rgba(26, 114, 255, 0.5);

  --font-display: 'Chakra Petch', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius:  12px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* Reveal animation base states */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: #2d84ff;
  box-shadow: 0 0 24px rgba(26, 114, 255, 0.5);
  transform: translateY(-2px);
}
.btn-large {
  font-size: 1rem;
  padding: 16px 40px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(3, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Animated dot-grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 114, 255, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 20s linear infinite;
  opacity: 0.5;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Floating abstract shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 2px;
  animation: floatShape linear infinite;
}
.shape-1 {
  width: 160px; height: 160px;
  top: 15%; right: 10%;
  transform: rotate(15deg);
  animation-duration: 18s;
  opacity: 0.4;
}
.shape-2 {
  width: 80px; height: 80px;
  bottom: 25%; left: 8%;
  transform: rotate(45deg);
  animation-duration: 14s;
  animation-delay: -6s;
  opacity: 0.25;
}
.shape-3 {
  width: 240px; height: 240px;
  top: 50%; right: 20%;
  transform: translateY(-50%) rotate(-10deg);
  animation-duration: 24s;
  animation-delay: -10s;
  opacity: 0.15;
}
@keyframes floatShape {
  0%, 100% { transform: rotate(var(--r, 15deg)) translateY(0); }
  50%       { transform: rotate(var(--r, 15deg)) translateY(-20px); }
}

/* Radial vignette overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  transition-delay: 0.1s;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-headline .line-1 { transition-delay: 0.2s; }
.hero-headline .line-2 { transition-delay: 0.35s; }

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-body);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  transition-delay: 0.5s;
}

.hero-content .btn-primary { transition-delay: 0.65s; }

/* ============================================================
   DIAGONAL DIVIDER
   ============================================================ */
.diagonal-divider {
  position: relative;
  height: 80px;
  background: var(--bg-surface);
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
  margin-top: -1px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-surface);
  padding: 100px 0 120px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 64px;
  transition-delay: 0.15s;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26,114,255,0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(26, 114, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.cards-grid .card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.25s; }

.card-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 28px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 28px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-features li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}
.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
  padding: 120px 0;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 32px;
}

.about-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}
.about-body:last-of-type { margin-bottom: 56px; }

.about-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.meta-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.meta-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  background: var(--bg-surface);
  padding: 120px 0;
  overflow: hidden;
}

.contact-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 114, 255, 0.15) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid {
    gap: 20px;
  }
  .card {
    padding: 36px 28px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.75rem; letter-spacing: 0.06em; }

  /* Hero */
  .hero { padding: 100px 24px 60px; }
  .hero-tagline { font-size: 1rem; }
  .shape-3 { display: none; }

  /* Services */
  .services { padding: 80px 0 100px; }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cards-grid .card:nth-child(2) { transition-delay: 0.15s; }
  .section-sub { margin-bottom: 48px; }

  /* About */
  .about { padding: 80px 0; }
  .about-meta { gap: 24px; }
  .meta-value { font-size: 1.6rem; }

  /* Contact */
  .contact { padding: 80px 0; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav-logo { font-size: 1rem; }
  .nav-links { gap: 16px; }
  .hero-headline { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .about-meta {
    flex-direction: column;
    gap: 28px;
  }
  .meta-divider { display: none; }
  .btn-large { padding: 14px 28px; font-size: 0.9rem; }
}
