:root {
  color-scheme: dark;
  --ink: #0a0a0b;
  --panel: #141517;
  --silver: #c8cad1;
  --mint: #64f4c4;
  --azure: #6fb7ff;
  --ember: #ffb15f;
  --line: rgba(255,255,255,.08);
  --surface: rgba(255,255,255,.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 6rem; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: white;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  padding: .7rem 1rem;
  transition: transform .15s;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ========== NAV ========== */
header nav {
  border-color: var(--line) !important;
}

/* Liquid Glass Nav — iOS-style frosted glass with light pooling */
.nav-glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    rgba(10,10,11,.44) 0%,
    rgba(20,21,23,.36) 50%,
    rgba(10,10,11,.4) 100%
  );
  backdrop-filter: blur(36px) saturate(1.6);
  -webkit-backdrop-filter: blur(36px) saturate(1.6);
}

/* Light pooling — simulates liquid surface tension & refraction */
.nav-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 45% at 12% 20%, rgba(255,255,255,.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 65% at 88% 30%, rgba(111,183,255,.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 5%, rgba(100,244,196,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Glass edge highlight — specular rim */
.nav-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  pointer-events: none;
  z-index: 1;
}

/* Lift content above glass layers */
.nav-glass > * { position: relative; z-index: 2; }

.nav-link {
  position: relative;
  border-radius: 8px;
  color: rgba(200,202,209,.7);
  font-size: .875rem;
  font-weight: 600;
  padding: .55rem .85rem;
  white-space: nowrap;
  transition: color .3s, background .35s, box-shadow .35s;
}

/* Liquid glass droplet forms on hover */
.nav-link:hover {
  color: white;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.15) 40%, rgba(255,255,255,.08) 60%, rgba(255,255,255,.03));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 1.5px 0 rgba(255,255,255,.16);
}

/* Specular highlight — light pooling on hover */
.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 50% at 18% 10%, rgba(255,255,255,.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 82% 85%, rgba(100,244,196,.09) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}

.nav-link:hover::after { opacity: 1; }

.nav-menu { display: flex; align-items: center; gap: .15rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: background .2s;
}

.nav-toggle:hover { background: var(--surface); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.icon-action {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: white;
  transition: background .2s, color .2s;
}

.icon-action:hover { background: white; color: var(--ink); }

/* ========== HERO ========== */
.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--ink));
}

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.6);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 2rem;
  max-width: 36rem;
}

.trust-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: .85rem;
  transition: border-color .2s;
}

.trust-chip:hover { border-color: rgba(255,255,255,.16); }

.trust-chip strong {
  display: block;
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.trust-chip span {
  display: block;
  margin-top: .35rem;
  color: rgba(200,202,209,.6);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ========== BUTTONS ========== */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  border-radius: 6px;
  padding: .85rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  will-change: transform;
}

.magnetic-primary {
  background: white;
  color: var(--ink);
}

.magnetic-primary:hover { background: rgba(255,255,255,.9); }

.magnetic-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: white;
}

.magnetic-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

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

/* ========== SECTIONS ========== */
.section-band {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  color: var(--mint);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.section-title {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 1rem;
  transition: border-color .2s;
}

.metric:hover { border-color: rgba(255,255,255,.16); }

.metric strong {
  display: block;
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: .5rem;
  color: rgba(200,202,209,.6);
  font-size: .85rem;
  line-height: 1.3;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: white;
  font-weight: 600;
  opacity: .7;
  transition: opacity .2s;
}

.quiet-link:hover { opacity: 1; }

/* ========== SERVICE CARDS ========== */
.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color .2s, background .2s;
  min-height: 18rem;
}

.service-card:hover {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.icon-shell {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--accent);
}

.accent-mint { --accent: var(--mint); }
.accent-azure { --accent: var(--azure); }
.accent-ember { --accent: var(--ember); }

.pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(200,202,209,.6);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .6rem;
  text-transform: uppercase;
}

.service-card h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 1.5rem;
}

.service-card p {
  margin-top: .6rem;
  color: rgba(200,202,209,.65);
  line-height: 1.7;
  font-size: .92rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}

.service-card > .mb-8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

/* ========== PROJECTS ========== */
.projects-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.project-spotlight {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.project-copy {
  background: var(--ink);
  padding: 1.5rem;
}

.project-copy h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
}

.project-copy > p:not(.eyebrow) {
  margin-top: 1rem;
  color: rgba(200,202,209,.65);
  line-height: 1.7;
}

.project-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}

.project-feature-row span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: rgba(200,202,209,.7);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .6rem;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.5rem;
}

.project-visual {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s;
}

.project-visual:hover img { opacity: 1; }

.project-metrics {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.project-metrics div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10,10,11,.7);
  padding: .65rem;
  backdrop-filter: blur(12px);
}

.project-metrics strong {
  display: block;
  color: var(--mint);
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.project-metrics span {
  display: block;
  margin-top: .3rem;
  color: rgba(200,202,209,.6);
  font-size: .72rem;
  font-weight: 600;
}

/* ========== HOSTING ========== */
.hosting-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.hosting-hero { margin-bottom: 3rem; }

.hosting-feature-grid {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
}

.hosting-feature {
  background: var(--ink);
  padding: 1.5rem;
}

.hosting-feature h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
}

.hosting-feature p {
  margin-top: .5rem;
  color: rgba(200,202,209,.6);
  line-height: 1.6;
  font-size: .9rem;
}

.plans-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 4rem;
  align-items: flex-start;
}

.billing-toggle {
  display: inline-flex;
  gap: .15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: .2rem;
}

.billing-toggle button {
  min-height: 2.4rem;
  border-radius: 6px;
  color: rgba(200,202,209,.7);
  font-weight: 600;
  padding: .45rem .8rem;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.billing-toggle button.is-active,
.billing-toggle button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
}

.hosting-plans {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.hosting-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color .2s;
}

.hosting-plan:hover { border-color: rgba(255,255,255,.16); }

.hosting-plan.is-featured {
  border-color: rgba(100,244,196,.3);
  background: rgba(100,244,196,.04);
}

.plan-ribbon {
  display: inline-flex;
  border-radius: 6px;
  background: var(--mint);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: .3rem .6rem;
  text-transform: uppercase;
}

.hosting-plan h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.hosting-plan > div:first-child p {
  margin-top: .4rem;
  color: rgba(200,202,209,.6);
  line-height: 1.5;
  font-size: .9rem;
}

.plan-icon {
  display: grid;
  flex: 0 0 auto;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--mint);
}

.plan-price {
  margin: 1.5rem 0 1rem;
}

.plan-price strong {
  display: block;
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: .9;
}

.plan-price span {
  color: rgba(200,202,209,.55);
  font-weight: 600;
  font-size: .9rem;
}

.plan-savings {
  margin: -.4rem 0 1rem;
  color: var(--mint);
  font-size: .8rem;
  font-weight: 600;
}

.hosting-plan ul {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hosting-plan li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(200,202,209,.75);
  font-size: .9rem;
}

.hosting-plan li svg { color: var(--mint); flex: 0 0 auto; }

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.plan-cta:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }

.hosting-proof {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  margin-top: 3rem;
  padding: 1.5rem;
}

.hosting-proof h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
}

/* ========== CAPABILITY MATRIX ========== */
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(200,202,209,.7);
  font-weight: 600;
  padding: .55rem .85rem;
  transition: background .2s, color .2s;
}

.filter-btn:hover { background: rgba(255,255,255,.08); }

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: white;
  color: var(--ink);
}

.matrix-grid {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
}

.matrix-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: white;
  padding: .7rem .8rem;
  text-align: left;
  transition: border-color .2s, background .2s;
  font-size: .92rem;
}

.matrix-item:hover {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.matrix-item svg { color: var(--mint); flex: 0 0 auto; }

/* ========== STACK MARQUEE ========== */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  margin-right: 2rem;
  color: rgba(200,202,209,.6);
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
}

/* ========== PROCESS ========== */
.timeline {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
}

.timeline-step {
  background: var(--ink);
  padding: 1.5rem;
}

.timeline-step span {
  color: var(--ember);
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.timeline-step h3 {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
}

.timeline-step p {
  margin-top: .5rem;
  color: rgba(200,202,209,.6);
  line-height: 1.6;
  font-size: .92rem;
}

/* ========== CONTACT ========== */
.contact-glow {
  position: absolute;
  inset: 12% 4% auto auto;
  height: 22rem;
  width: 42rem;
  max-width: 90vw;
  background: linear-gradient(90deg, rgba(100,244,196,.15), rgba(111,183,255,.12));
  filter: blur(70px);
  opacity: .6;
}

.map-panel {
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem;
  text-align: center;
  color: rgba(200,202,209,.55);
  font-size: .85rem;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .hosting-hero,
  .plans-head,
  .hosting-proof {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .plans-head { flex-direction: row; align-items: flex-end; }

  .hosting-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hosting-plans {
    grid-template-columns: 1fr 1.08fr 1fr;
    align-items: stretch;
  }

  .project-spotlight {
    grid-template-columns: .8fr 1.2fr;
  }

  .project-copy { padding: 2rem; }

  .project-actions { flex-direction: row; }

  .project-visual { border-left: 1px solid var(--line); }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    background: rgba(10,10,11,.98);
    border-bottom: 1px solid var(--line);
    padding: .75rem;
    gap: .25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s, opacity .3s;
    backdrop-filter: blur(20px);
  }

  .nav-menu.is-open {
    max-height: 100vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-link {
    display: block;
    text-align: center;
    padding: .75rem;
    border-radius: 8px;
  }

  .icon-action { position: relative; z-index: 50; }

  header nav { padding: .6rem .8rem !important; }

  .hero-visual::after {
    background: linear-gradient(180deg, transparent 25%, var(--ink));
  }

  .section-band,
  .projects-section,
  .hosting-section {
    padding: 3.5rem 0;
  }

  .project-metrics {
    position: static;
    grid-template-columns: 1fr;
    margin-top: .75rem;
  }

  .project-visual img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--panel);
  }

  .hosting-feature-grid { grid-template-columns: 1fr; }

  .hosting-plan { min-height: auto; }

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

  .service-card { min-height: auto; }
}

/* ========== ANIMATIONS ========== */
@keyframes marquee {
  to { transform: translateX(-33.333%); }
}

@keyframes liquid-shimmer {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes specular-drift {
  0%   { background-position: 0% 0%; }
  33%  { background-position: 100% 60%; }
  66%  { background-position: 50% 100%; }
  100% { background-position: 0% 0%; }
}

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