/* ---------- Base ---------- */
:root {
  --bg: #080b12;
  --bg-soft: #0e131e;
  --surface: #111827;
  --surface-2: #151d2b;
  --text: #f4f7fb;
  --muted: #9ba8bc;
  --border: rgba(255,255,255,.10);
  --accent: #7cf7c8;
  --accent-2: #8cb4ff;
  --danger-soft: rgba(255, 120, 120, .08);
  --success-soft: rgba(124, 247, 200, .08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.dark-section {
  background: linear-gradient(180deg, #0c111a, #0a0e16);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: .16em;
  font-weight: 600;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.1rem, 7.3vw, 7.2rem);
  letter-spacing: -.055em;
  max-width: 970px;
  margin-bottom: 28px;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  letter-spacing: -.04em;
}

h3 {
  letter-spacing: -.025em;
}

p {
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .88rem;
  border: 1px solid var(--border);
  padding: 7px 9px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .91rem;
  color: #c8d1df;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 10px 14px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  margin: 5px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 95px 0 105px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}

.hero-content {
  position: relative;
}

.hero-lead {
  max-width: 790px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 38px 0 42px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #07110d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124,247,200,.14);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 790px;
  margin-bottom: 46px;
}

.hero-proof div {
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: .93rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 4px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(18,26,39,.95), rgba(10,15,23,.98));
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  color: #b8c2d0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(124,247,200,.7);
}

.panel-state {
  margin-left: auto;
  color: var(--accent);
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  padding: 25px;
}

.pipeline-step {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  padding: 16px;
  border-radius: 10px;
  min-height: 92px;
  display: flex;
  gap: 12px;
}

.step-number {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
}

.pipeline-step small,
.pipeline-step strong {
  display: block;
}

.pipeline-step small {
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .13em;
  margin-bottom: 6px;
}

.pipeline-step strong {
  font-size: .82rem;
}

.arrow {
  color: #647084;
}

.terminal {
  margin: 0 25px 25px;
  border: 1px solid var(--border);
  background: #05080d;
  padding: 20px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: .76rem;
  line-height: 1.9;
  overflow-x: auto;
}

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

.muted {
  color: #738096;
}

.success {
  color: #9deccc;
}

/* ---------- Intro ---------- */
.section-intro {
  background: #0b0f17;
}

.split-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: end;
}

.split-intro p {
  font-size: 1.12rem;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 55px;
}

.state-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
}

.state-before {
  background: var(--danger-soft);
}

.state-after {
  background: var(--success-soft);
}

.state-label {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.state-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.state-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.state-card li:last-child {
  border-bottom: 0;
}

.transformation-arrow {
  font-size: 2rem;
  color: var(--accent);
}

/* ---------- Shared headings ---------- */
.section-heading {
  max-width: 830px;
  margin-bottom: 50px;
}

.section-heading p {
  font-size: 1.07rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: .2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,247,200,.35);
}

.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(124,247,200,.08);
  color: var(--accent);
  border: 1px solid rgba(124,247,200,.17);
  margin-bottom: 22px;
}

.service-card p {
  min-height: 52px;
}

.service-card ul,
.package-card ul {
  padding-left: 18px;
  color: #c7d0df;
}

.service-card li,
.package-card li {
  margin: 7px 0;
}

/* ---------- Packages ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.package-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  background: #0c111a;
}

.package-card.featured {
  border-color: rgba(124,247,200,.48);
  box-shadow: inset 0 0 0 1px rgba(124,247,200,.05);
}

.package-tag {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  background: var(--accent);
  color: #07110d;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 7px 10px;
  border-radius: 7px;
}

.package-duration {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .82rem;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Process ---------- */
.process-section {
  background:
    linear-gradient(180deg, rgba(8,11,18,.94), rgba(8,11,18,.94)),
    radial-gradient(circle at top left, rgba(140,180,255,.15), transparent 34%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.process-item {
  padding: 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 245px;
}

.process-item > span {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: .74rem;
}

.process-item h3 {
  margin-top: 38px;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.stack-group {
  border-bottom: 1px solid var(--border);
  padding: 18px 0 22px;
}

.stack-group > span {
  color: var(--muted);
  font-size: .8rem;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips b {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  border-radius: 100px;
  padding: 7px 11px;
  font-size: .8rem;
  font-weight: 600;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.audience-grid article {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.audience-grid article > span {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
}

.audience-grid h3 {
  margin-top: 32px;
}

/* ---------- About ---------- */
.about-section {
  background: #0c111a;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}

.large-copy {
  font-size: 1.28rem;
  color: #d6deea;
}

.about-links {
  display: flex;
  gap: 22px;
  margin-top: 28px;
}

.about-links a {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-section {
  background: linear-gradient(180deg, #080b12, #0b1118);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: center;
  border: 1px solid rgba(124,247,200,.3);
  background:
    linear-gradient(135deg, rgba(124,247,200,.06), transparent 45%),
    #0d141d;
  padding: 48px;
  border-radius: 18px;
}

.contact-card h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.7rem);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions small {
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: .84rem;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  color: var(--text);
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: var(--accent);
  display: inline-block;
  margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: #0e141f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
  }

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

  .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .split-intro,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-grid,
  .packages-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.8rem);
  }

  .brand-name {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .transformation-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

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

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

  .contact-card {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}


/* ---------- Language switcher ---------- */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  border-radius: 8px;
  padding: 5px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
}

.language-switcher span {
  color: #556176;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
  background: rgba(124,247,200,.08);
}

@media (max-width: 980px) {
  .language-switcher {
    align-self: flex-start;
    margin: 8px 10px;
  }
}
