:root {
  color-scheme: dark;
  --bg: #071019;
  --surface: rgba(14, 31, 47, 0.84);
  --surface-border: rgba(163, 203, 225, 0.14);
  --text: #e8f1f7;
  --muted: #97adba;
  --teal: #69e2d0;
  --cyan: #67b9ff;
  --gold: #f1c57a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 108, 120, 0.34), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 185, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #071019 0%, #09131d 35%, #050b12 100%);
  color: var(--text);
}

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

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

.signal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header,
.section,
.hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  border: 1px solid rgba(233, 247, 255, 0.18);
  background: rgba(11, 26, 39, 0.8);
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.brand-copy,
.site-nav {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 4.2rem 0 2rem;
}

.eyebrow,
.section-label,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  font-size: 0.76rem;
  margin: 0 0 0.9rem;
}

.hero h1,
.section-heading h2,
.contact-panel h2,
.founder-panel h2,
.showcase-copy h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin: 0;
  max-width: 12ch;
}

.hero-summary,
.section-intro,
.founder-panel p,
.capability-panel p,
.contact-panel p,
.product-card p,
.offer-grid p,
.showcase-summary {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  border: none;
  font: inherit;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(105, 226, 208, 0.18), rgba(103, 185, 255, 0.28));
  border: 1px solid rgba(105, 226, 208, 0.34);
  box-shadow: 0 12px 30px rgba(42, 109, 121, 0.24);
  color: var(--text);
}

.button-secondary {
  background: rgba(12, 27, 40, 0.64);
  border: 1px solid rgba(163, 203, 225, 0.16);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stats div,
.panel,
.system-window {
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(11, 24, 36, 0.84), rgba(8, 17, 26, 0.88));
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.hero-stats dt {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
}

.hero-stats dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.system-window {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(163, 203, 225, 0.12);
}

.window-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(232, 241, 247, 0.28);
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
}

.grid-card,
.signal-graph {
  min-height: 150px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(163, 203, 225, 0.12);
  background:
    radial-gradient(circle at top right, rgba(103, 185, 255, 0.14), transparent 40%),
    rgba(14, 31, 47, 0.9);
  padding: 1rem;
}

.grid-card.focus {
  background:
    radial-gradient(circle at top right, rgba(105, 226, 208, 0.2), transparent 45%),
    rgba(17, 39, 55, 0.96);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.65rem;
}

.grid-card strong {
  display: block;
  max-width: 14ch;
  font-size: 1.2rem;
  line-height: 1.35;
}

.signal-graph {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
}

.signal-graph svg {
  width: 100%;
  height: 100%;
}

.signal-graph path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.signal-graph path:first-child {
  stroke: var(--teal);
}

.signal-graph path:last-child {
  stroke: rgba(103, 185, 255, 0.7);
}

.section {
  padding: 2rem 0 0;
}

.studio-grid,
.signal-layout,
.offer-grid,
.labs-list,
.service-grid {
  display: grid;
  gap: 1.2rem;
}

.studio-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 1.45rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-list li,
.hex-grid span,
.showcase-metrics span {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 203, 225, 0.12);
  color: #d7e8f0;
  background: rgba(14, 31, 47, 0.66);
}

.capability-list {
  display: grid;
  gap: 1rem;
}

.capability-item h3,
.product-title {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

.showcase-shell {
  overflow: hidden;
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
}

.showcase-image-wrap,
.product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 320px;
  background:
    radial-gradient(circle at top right, rgba(103, 185, 255, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(8, 17, 26, 0.88), rgba(14, 31, 47, 0.92));
  border: 1px solid rgba(163, 203, 225, 0.12);
}

.showcase-image,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-placeholder,
.product-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(105, 226, 208, 0.08), rgba(103, 185, 255, 0.04)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 12px,
      transparent 12px,
      transparent 24px
    );
}

.showcase-placeholder[hidden],
.product-image-placeholder[hidden],
.showcase-image[hidden],
.product-image[hidden] {
  display: none !important;
}

.showcase-image-dots {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.showcase-copy h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.25rem 0 1rem;
}

.showcase-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.showcase-bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.showcase-dots {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(163, 203, 225, 0.18);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.showcase-dot.is-active {
  background: var(--teal);
}

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

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

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.store-feedback {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(163, 203, 225, 0.12);
  background: rgba(8, 17, 26, 0.55);
  color: var(--text);
}

.store-feedback[data-tone="success"] {
  border-color: rgba(105, 226, 208, 0.28);
  background: rgba(32, 94, 88, 0.24);
}

.store-feedback[data-tone="warning"] {
  border-color: rgba(241, 197, 122, 0.24);
  background: rgba(108, 74, 18, 0.22);
}

.store-feedback[data-tone="error"] {
  border-color: rgba(255, 138, 138, 0.3);
  background: rgba(109, 36, 36, 0.28);
}

.product-card,
.offer-card,
.labs-item {
  position: relative;
  overflow: hidden;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: center;
}

.product-card:nth-child(even) .product-card-media {
  order: 2;
}

.product-card:nth-child(even) .product-card-copy {
  order: 1;
}

.product-card::before,
.offer-card::before,
.labs-item::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 62%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 226, 208, 0.12), transparent 68%);
}

.product-image-wrap {
  min-height: 320px;
  height: 100%;
  margin-bottom: 0;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-meta {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.product-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.product-meta dd {
  margin: 0;
}

.product-highlight {
  min-height: 4.6rem;
}

.product-link {
  width: fit-content;
}

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

.signal-stack,
.code-lines {
  display: grid;
  gap: 0.8rem;
}

.signal-stack span,
.code-lines span {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(8, 17, 26, 0.65);
  border: 1px solid rgba(163, 203, 225, 0.1);
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.code-lines {
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  color: #d8ecff;
}

.offer-card h3,
.labs-item h3,
.service-card h3 {
  margin-top: 0;
}

.service-card {
  display: grid;
  gap: 1.1rem;
}

.service-card-top,
.service-footer,
.service-addon,
.service-addon-copy {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.service-card-top {
  align-items: flex-start;
}

.service-deposit span,
.service-total span,
.service-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.service-deposit strong,
.service-total strong {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.service-lead {
  margin: 0;
}

.service-detail {
  margin: -0.4rem 0 0;
}

.service-columns {
  display: grid;
  gap: 1rem;
}

.service-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-addons {
  display: grid;
  gap: 0.7rem;
}

.service-addon {
  border: 1px solid rgba(163, 203, 225, 0.12);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: rgba(8, 17, 26, 0.52);
}

.service-addon input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.service-addon-copy {
  justify-content: flex-start;
  min-width: 0;
}

.service-addon-copy span:last-child {
  color: var(--text);
}

.service-cta {
  min-width: 220px;
}

.service-cta:disabled {
  opacity: 0.7;
  cursor: wait;
}

.labs-item {
  min-height: 180px;
}

.contact-panel-wrap {
  padding-bottom: 4rem;
}

@media (max-width: 1080px) {
  .hero,
  .studio-grid,
  .section-heading,
  .signal-layout,
  .service-grid,
  .offer-grid,
  .labs-list,
  .showcase-stage {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(even) .product-card-media,
  .product-card:nth-child(even) .product-card-copy {
    order: initial;
  }

  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.75rem 1rem;
  }

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

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

  .signal-graph {
    grid-column: auto;
  }

  .showcase-controls {
    flex-direction: column;
  }

  .service-footer,
  .service-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-cta {
    width: 100%;
  }
}
