:root {
  /* Brand palette */
  --bg: #0F172A;          /* Background - Dark */
  --panel: #020617;       /* Slightly darker panel */
  --muted-panel: #020617;
  --text: #E2E8F0;        /* Text - Light */
  --muted: #94A3B8;       /* Muted text */
  --line: rgba(148, 163, 184, 0.35);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
  --accent: #6D28D9;      /* Primary - Dark AI Purple */
  --accent-2: #3B82F6;    /* Secondary - Neon Blue */
  --danger: #EC4899;      /* Accent - AI Pink (used for highlights/errors) */
  --radius: 16px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% 0%, rgba(109, 40, 217, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(59, 130, 246, 0.28), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* Layout helpers */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04) 15%, transparent);
}

.section-header {
  max-width: 70ch;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(98, 208, 255, 0.22), rgba(124, 92, 255, 0.22));
  border: 1px solid var(--line);
}

.brand-text {
  font-size: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 10px;
  border-radius: 12px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(109, 40, 217, 0.14);
  border: 1px solid rgba(109, 40, 217, 0.45);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.nav-toggle-lines {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-lines::before {
  top: -6px;
}
.nav-toggle-lines::after {
  top: 6px;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    right: 16px;
    top: 64px;
    width: min(320px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(16, 24, 38, 0.95);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 12px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.85), rgba(59, 130, 246, 0.85));
  border-color: rgba(59, 130, 246, 0.9);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw + 1.2rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-highlights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

.highlight {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 14px;
}

.highlight-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.highlight-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cards */
.card {
  border: 1px solid var(--line);
  background: rgba(16, 24, 38, 0.75);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card .card {
  position: sticky;
  top: 92px;
}

@media (max-width: 920px) {
  .hero-card .card {
    position: static;
  }
}

.card-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--text);
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  margin-top: 1px;
}

.card-cta {
  margin-top: 14px;
}

.card-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Services */
.service,
.work {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 18px;
}

.reason {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 18px;
}

.reason h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.reason p {
  margin: 0;
  color: var(--muted);
}

.stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 920px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-number {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.16);
  margin-bottom: 10px;
  color: var(--text);
}

.service h3,
.work h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.service p,
.work p {
  margin: 0;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 0;
}

.cta-inner {
  border: 1px solid rgba(109, 40, 217, 0.55);
  background:
    radial-gradient(800px 400px at 15% 10%, rgba(109, 40, 217, 0.42), transparent 60%),
    radial-gradient(800px 400px at 85% 20%, rgba(236, 72, 153, 0.35), transparent 60%),
    rgba(15, 23, 42, 0.9);
  border-radius: calc(var(--radius) + 6px);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
}

.cta-inline {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cta-label {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.cta-link {
  color: var(--text);
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.cta-link:hover {
  border-color: rgba(98, 208, 255, 0.30);
  background: rgba(98, 208, 255, 0.08);
}

.cta-dot {
  color: rgba(255, 255, 255, 0.25);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 840px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Portfolio */
.work {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}

.work-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.work-title {
  margin: 0 0 8px;
}

.work-desc {
  margin: 0;
}

.work-link {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.work-link:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-text {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: var(--muted);
  font-weight: 600;
}

.footer-list a:hover {
  color: var(--text);
}

.footer-muted {
  color: rgba(182, 194, 217, 0.85);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  color: rgba(182, 194, 217, 0.85);
  font-weight: 600;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(38, 211, 102, 0.16);
  border: 1px solid rgba(38, 211, 102, 0.35);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 60;
}

.whatsapp-float:hover {
  background: rgba(38, 211, 102, 0.22);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
}

/* Small tweaks */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

