:root {
  --bg: #050608;
  --bg-soft: #0c0f13;
  --bg-softer: #10141a;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --fg: #f5f5f7;
  --fg-soft: #a6aab5;
  --accent: #e4ff4a;
  --accent-soft: rgba(228, 255, 74, 0.12);
  --accent-amber: #ffb86c;
  --accent-blue: #7aa6ff;
  --accent-green: #8bd8a6;
  --pill-bg: rgba(255, 255, 255, 0.04);
  --radius-sm: 999px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 18px 40px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #151927 0, var(--bg) 65%);
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.92),
    rgba(5, 6, 8, 0.85),
    transparent
  );
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-soft);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent), #4dffb5 40%, #181c24 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(228, 255, 74, 0.5);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.site-nav a {
  padding: 8px 0;
  color: var(--fg-soft);
}

.site-nav a:hover {
  color: var(--fg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(10, 12, 16, 0.9);
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 18px;
  padding-block: 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease,
    box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffffff);
  color: #050608;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.66);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border-color: var(--border-soft);
  color: var(--fg-soft);
  background: rgba(10, 12, 16, 0.9);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--fg);
}

.btn-ghost {
  border-color: var(--border-subtle);
  background: transparent;
  color: var(--fg-soft);
}

.btn-ghost:hover {
  border-color: var(--border-soft);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}

.btn-full {
  width: 100%;
  margin-top: 6px;
}

.hero {
  padding-block: 72px 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 11px;
  color: var(--fg-soft);
  margin: 0 0 14px;
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.hero-subtitle {
  margin: 0 0 28px;
  color: var(--fg-soft);
  font-size: 15px;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
}

.meta-item {
  min-width: 0;
}

.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-soft);
  margin-bottom: 4px;
}

.meta-value {
  display: block;
  font-size: 13px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg, var(--bg-soft), #05060a 60%, #05060a);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-subtle);
}

.hero-card.primary {
  background: radial-gradient(circle at 0 0, rgba(228, 255, 74, 0.16), transparent 60%),
    linear-gradient(145deg, var(--bg-soft), #05060a 52%, #05060a);
}

.hero-card.muted {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  border-style: dashed;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding-inline: 10px;
  padding-block: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--pill-bg);
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, opacity 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.bento-toggle {
  cursor: pointer;
  opacity: 0.65;
}

.pill.is-active {
  border-color: rgba(228, 255, 74, 0.6);
  background: var(--accent-soft);
  color: #f7f8ff;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(228, 255, 74, 0.4);
}

.pill-soft {
  border-color: rgba(228, 255, 74, 0.4);
  background: var(--accent-soft);
  color: #f7f8ff;
}

.pill-outline {
  border-style: dashed;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(228, 255, 74, 0.22);
}

.hero-card-title {
  font-size: 16px;
  margin: 0 0 10px;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--fg-soft);
}

.hero-card-list li + li {
  margin-top: 4px;
}

.hero-card-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--fg-soft);
  margin: 0 0 3px;
}

.hero-card-metric-value {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}

.hero-card-footnote {
  font-size: 12px;
  color: var(--fg-soft);
  margin: 0;
}

.section {
  padding-block: 64px 72px;
}

.section-bento {
  padding-block: 72px 84px;
}

.section-heading {
  max-width: 620px;
}

.section-heading-tight h2 {
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.section-subtitle {
  margin: 0;
  color: var(--fg-soft);
  font-size: 14px;
}

.service-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 60%);
  padding: 18px 18px 16px;
}

.service-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-soft);
}

.section-bento .section-heading {
  margin-bottom: 28px;
}

/* Consultancy calculator */
.section-calculator {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(228, 255, 74, 0.09), transparent 65%);
}

.calculator-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.9fr);
  gap: 28px;
  align-items: flex-start;
}

.calculator-control {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(150deg, rgba(10, 13, 18, 0.98), #050608);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-subtle);
}

.calculator-label {
  display: block;
  font-size: 12px;
  color: var(--fg-soft);
  margin-bottom: 6px;
}

.calculator-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(5, 7, 11, 0.95);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.calculator-select:focus {
  border-color: rgba(228, 255, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(228, 255, 74, 0.3);
}

.calculator-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fg-soft);
}

.calculator-results {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at 0 0, rgba(228, 255, 74, 0.22), transparent 65%),
    linear-gradient(150deg, var(--bg-soft), #050608);
  padding: 18px 18px 14px;
  display: grid;
  gap: 10px;
}

.calculator-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
}

.calculator-metric.compact {
  font-size: 12px;
}

.calculator-metric-label {
  color: var(--fg-soft);
}

.calculator-metric-value {
  font-weight: 500;
}

.calculator-metric-value.highlight {
  color: var(--accent);
}

.calculator-footnote {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fg-soft);
}

.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-softer));
  padding: 18px 18px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease, background 160ms ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 0 0,
    rgba(228, 255, 74, 0.22),
    transparent 60%
  );
  transition: opacity 160ms ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  border-color: rgba(228, 255, 74, 0.35);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card.highlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: 16px;
  background: radial-gradient(
      circle at 0 0,
      rgba(228, 255, 74, 0.2),
      transparent 54%
    ),
    linear-gradient(150deg, #111524, #080a10);
}

.bento-card.highlight[data-variant="enterprise-saas"] {
  background: radial-gradient(
      circle at 100% 0,
      rgba(122, 166, 255, 0.28),
      transparent 60%
    ),
    linear-gradient(150deg, #101529, #070811);
  border-color: rgba(122, 166, 255, 0.6);
}

.bento-card.highlight h3 {
  margin-top: 8px;
}

.bento-card.compact {
  font-size: 13px;
}

.bento-card.tall {
  min-height: 260px;
}

.bento-card[data-accent="amber"] {
  background: radial-gradient(
      circle at 0 0,
      rgba(255, 184, 108, 0.2),
      transparent 60%
    ),
    linear-gradient(145deg, var(--bg-soft), var(--bg-softer));
}

.bento-card[data-accent="blue"] {
  background: radial-gradient(
      circle at 100% 0,
      rgba(122, 166, 255, 0.25),
      transparent 60%
    ),
    linear-gradient(145deg, var(--bg-soft), var(--bg-softer));
}

.bento-card[data-accent="green"] {
  background: radial-gradient(
      circle at 0 100%,
      rgba(139, 216, 166, 0.25),
      transparent 60%
    ),
    linear-gradient(145deg, var(--bg-soft), var(--bg-softer));
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.card-metrics {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
}

.card-metrics.vertical {
  grid-template-columns: minmax(0, 1fr);
}

.card-metrics dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--fg-soft);
  margin-bottom: 2px;
}

.card-metrics dd {
  margin: 0;
}

.card-footnote {
  font-size: 12px;
  color: var(--fg-soft);
  margin: auto 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
  gap: 40px;
  align-items: flex-start;
}

.about-copy {
  font-size: 14px;
  color: var(--fg-soft);
  display: grid;
  gap: 12px;
}

.section-contact {
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at bottom, #131828, #050608 70%);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.8fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-form {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(150deg, rgba(10, 13, 18, 0.98), #050608);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--fg-soft);
}

.field input,
.field select,
.field textarea {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(5, 7, 11, 0.95);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.field textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(166, 170, 181, 0.66);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(228, 255, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(228, 255, 74, 0.3);
}

.form-footnote {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fg-soft);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 18px 26px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--fg-soft);
}

.footer-brand {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }

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

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .bento-card.highlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 57px;
    padding-inline: 24px;
    padding-block: 10px 14px;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, max-height 150ms ease;
  }

  .site-nav a.btn {
    width: 100%;
    justify-content: center;
  }

  .site-header.open .site-nav {
    max-height: 220px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
