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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:            #08060F;
  --surface:       #0F0C1A;
  --card:          #140F22;
  --card-hover:    #1B1430;
  --border:        rgba(255, 255, 255, 0.065);
  --border-blue:   rgba(124, 58, 237, 0.3);
  --blue:          #7C3AED;
  --blue-dim:      #5B21B6;
  --blue-bright:   #A78BFA;
  --cyan:          #34D399;
  --amber:         #F59E0B;
  --violet:        #8B5CF6;
  --emerald:       #10B981;
  --mint:          #34D399;
  --mint-dim:      #10B981;
  --text:          #F1F5F9;
  --text-muted:    #94A3B8;
  --text-dim:      #475569;
  --radius:        16px;
  --radius-sm:     8px;
  --max-w:         1200px;
  --section-pad:   5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section       { padding: var(--section-pad) 0; }
.section-alt   { background: var(--surface); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.nav.scrolled {
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.85; }

.logo-img {
  height: 120px;
  width: auto;
  filter: brightness(3) saturate(0.9);
}

.footer .logo-img { height: 140px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px !important;
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--blue-dim) !important; color: #fff !important; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  margin-left: auto;
  line-height: 0;
}
.burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  background: rgba(10, 14, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-drawer.open { display: block; }

.mobile-drawer ul { list-style: none; }
.mobile-drawer a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer a:hover { color: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.13);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 3rem; max-width: 580px; }

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}

.section-sub {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 500px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 9rem;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 55% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 55% 50%, black 0%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 7px rgba(124, 58, 237, 0); }
}

/* Hero headline */
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #A78BFA 0%, #34D399 65%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.brand-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-strip-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 0.1rem;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.net-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.08));
}

/* ============================================================
   BENTO SERVICES GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.card-lg { grid-row: span 2; }

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 1rem 0 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Card icons */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }

.card-icon-blue    { background: rgba(124, 58, 237, 0.12); color: var(--blue); }
.card-icon-amber   { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.card-icon-cyan    { background: rgba(52, 211, 153, 0.12);  color: var(--cyan); }
.card-icon-violet  { background: rgba(139, 92, 246, 0.12); color: var(--violet); }
.card-icon-emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }

/* Bottom accent line on large card */
.card-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
}
.card-accent-blue {
  background: linear-gradient(90deg, var(--blue) 0%, transparent 100%);
}

/* ============================================================
   FOR HOME GRID
   ============================================================ */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.home-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.home-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.home-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.home-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ============================================================
   INDUSTRIES GRID
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.industry-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
}

.industry-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1rem;
}
.industry-icon svg { width: 20px; height: 20px; }

.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ============================================================
   WHY A96
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.why-item {
  padding: 2rem 2rem 2rem 0;
  border-top: 2px solid var(--border);
  padding-right: 2rem;
  transition: border-color 0.25s;
}

.why-item + .why-item { padding-left: 2rem; }

.why-item:hover { border-top-color: var(--blue); }

.why-number {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================================
   CONSULTING
   ============================================================ */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.consult-card {
  background: var(--card);
  padding: 2rem;
  transition: background 0.22s;
}
.consult-card:hover { background: var(--card-hover); }

.consult-num {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.73rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 0.8rem;
}

.consult-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.consult-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.consult-cta {
  text-align: center;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.consult-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--bg); }

.cta-box {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(91, 33, 182, 0.14) 0%,
    rgba(52, 211, 153, 0.07) 60%,
    rgba(7, 9, 15, 0.4) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-muted); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}

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

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .home-grid     { grid-template-columns: 1fr 1fr; }

  .why-item { padding: 1.5rem 1.5rem 1.5rem 0; }
  .why-item + .why-item { padding-left: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem; }

  .nav-links { display: none; }
  .burger    { display: flex; }
  .logo-img  { height: 72px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .hero-visual {
    order: -1;
    max-height: 260px;
    overflow: hidden;
  }

  .net-svg { max-width: 260px; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-lg { grid-row: span 1; }

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

  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .why-item + .why-item { padding-left: 0; border-top: 2px solid var(--border); }

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

  .cta-box { padding: 3rem 1.75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav   { margin-left: 0; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }

  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { justify-content: center; }

  .footer-nav { gap: 1rem; flex-wrap: wrap; }
}
