:root {
  --bg: #020617;
  --bg-alt: rgba(15, 23, 42, 0.92);
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.22);
  --accent-2: #a855f7;
  --danger: #fb7185;
  --green: #4ade80;
  --border: rgba(148, 163, 184, 0.35);
  --radius-xl: 1.5rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.75);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #020617 100%);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Background blobs */

.bg-blob {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent);
  filter: blur(4px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -2;
  mix-blend-mode: screen;
}

.bg-blob-1 {
  top: -120px;
  left: -80px;
  animation: float 24s ease-in-out infinite alternate;
}

.bg-blob-2 {
  bottom: -180px;
  right: -60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent);
  animation: float 28s ease-in-out infinite alternate;
}

.bg-blob-3 {
  top: 40%;
  left: 55%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent);
  animation: float 32s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(40px, -30px, 0);
  }
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.section-contact {
  padding-bottom: 6rem;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Glass / cards */

.glass {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.72)
    );
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.card {
  padding: 1.7rem 1.6rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.5em;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.86),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 20% 10%, #e0f2fe, #0ea5e9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b1120;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.16), transparent);
  color: var(--fg) !important;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.1rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--fg);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.22), transparent);
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #16a34a);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #22d3ee, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-stat {
  min-width: 140px;
}

.hero-stat .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero-stat .value {
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-stat .strikethrough {
  position: relative;
  color: var(--danger);
}

.hero-stat .strikethrough::after {
  content: "";
  position: absolute;
  left: 0;
  right: -0.2rem;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.9), transparent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: #020617;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(34, 211, 238, 0.6);
}

.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--fg);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: var(--fg);
  width: 100%;
  padding: 0.6rem 1.2rem;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Hero visual HUD */

.hero-visual {
  position: relative;
}

.hud-card {
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 1.7rem;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent),
    rgba(15, 23, 42, 0.96);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #15803d);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.hud-title {
  flex: 1;
  margin-left: 0.5rem;
}

.hud-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.hud-body {
  border-radius: 1.1rem;
  padding: 1rem 0.3rem 0.4rem;
}

.hud-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hud-metric {
  flex: 1;
  padding: 0.7rem 0.7rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.15), transparent);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hud-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hud-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hud-chip.green {
  border-color: rgba(74, 222, 128, 0.65);
  color: #bbf7d0;
}

.hud-chart {
  position: relative;
  margin: 0.6rem 0.1rem 0.8rem;
  height: 120px;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(34, 211, 238, 0.07) 30%,
    rgba(168, 85, 247, 0.12) 60%,
    transparent 100%
  );
  mix-blend-mode: screen;
}

.chart-glow {
  position: absolute;
  inset: 40% 15%;
  border-radius: 999px;
  background: radial-gradient(
    ellipse,
    rgba(34, 211, 238, 0.5),
    rgba(34, 211, 238, 0.1),
    transparent
  );
  filter: blur(18px);
}

.chart-points {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.chart-points span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.9);
  transform-origin: center;
  animation: pulse-point 4s ease-in-out infinite alternate;
}

.chart-points span:nth-child(2) {
  transform: translateY(-16px);
  animation-delay: 0.4s;
}
.chart-points span:nth-child(3) {
  transform: translateY(-32px);
  animation-delay: 0.8s;
}
.chart-points span:nth-child(4) {
  transform: translateY(-20px);
  animation-delay: 1.2s;
}
.chart-points span:nth-child(5) {
  transform: translateY(-34px);
  animation-delay: 1.6s;
}

@keyframes pulse-point {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-18px) scale(1.1);
  }
}

.hud-footer .pill-mini {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  display: inline-flex;
  color: var(--muted);
}

/* Floating card */

.floating-card {
  position: absolute;
  right: -10px;
  bottom: -32px;
  width: 240px;
  padding: 1rem 1.1rem;
  border-radius: 1.4rem;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.12),
    rgba(2, 6, 23, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-glow);
  font-size: 0.86rem;
}

.floating-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
}

.floating-sub {
  margin: 0;
  color: var(--muted);
}

/* Grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.process-step {
  padding: 1.4rem 1.3rem;
}

.step-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.featured {
  border: 1px solid rgba(34, 211, 238, 0.7);
  box-shadow: var(--shadow-glow);
  position: relative;
  transform: translateY(-4px);
}

.featured .badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, #22d3ee, #a855f7);
  color: #020617;
}

.pricing-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Work */

.work-grid .card {
  min-height: 210px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-copy h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.contact-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-details {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.contact-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.7rem;
}

.contact-inline a {
  color: var(--accent);
  text-decoration: none;
}

.contact-inline a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #16a34a);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

/* Contact form */

.contact-form {
  padding: 1.7rem 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 0.8rem;
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4);
  background: #020617;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.form-success {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--green);
  min-height: 1.2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding: 1.4rem 0 1.6rem;
  background: rgba(2, 6, 23, 0.96);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  text-align: right;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.6rem;
  }

  .floating-card {
    position: static;
    margin-top: 1.4rem;
    width: 100%;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    inset: 60px 1.25rem auto;
    background: rgba(2, 6, 23, 0.97);
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.9);
    padding: 0.75rem 0.9rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-soft);
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.2rem;
  }

  .grid-3,
  .process-grid,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured {
    transform: none;
  }

  .hero-footer {
    gap: 0.9rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .card {
    padding: 1.4rem 1.3rem;
  }
}
