:root {
  --ink: #04171d;
  --deep: #06252f;
  --sea: #0a3a45;
  --foam: #dff5ef;
  --mist: #9ec9bf;
  --signal: #1fa89a;
  --signal-2: #c8f2e6;
  --line: rgba(223, 245, 239, 0.16);
  --text: #e7f7f2;
  --muted: #a7c7bf;
  --warn-bg: #1a1410;
  --warn-line: #c47a3a;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--signal-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.top-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.top-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .mesh {
  width: 100%;
  height: 100%;
  display: block;
}

.routes path {
  stroke-dasharray: 12 10;
  animation: dash 18s linear infinite;
}

.node {
  transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}

.n2 { animation-delay: 0.6s; }
.n3 { animation-delay: 1.2s; }
.n4 { animation-delay: 1.8s; }

@keyframes dash {
  to { stroke-dashoffset: -220; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; r: 4; }
  50% { opacity: 1; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foam);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
  background: var(--signal);
  color: #042019;
}

.btn.primary:hover {
  background: #27c4b2;
  color: #021411;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--foam);
}

.btn.ghost:hover {
  border-color: rgba(223, 245, 239, 0.45);
  color: #fff;
}

.block {
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.2rem, 4vw, 3rem);
  max-width: 52rem;
  margin: 0 auto;
}

.block.alt {
  max-width: none;
  background: linear-gradient(180deg, #072831 0%, #06252f 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block.alt > * {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.block h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.sub {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--signal);
  line-height: 1.2;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.guide-section {
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.guide-section.alt {
  background: linear-gradient(180deg, #072831 0%, #06252f 55%, #04171d 100%);
}

.guide-inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.guide-fold {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 23, 29, 0.4);
  overflow: hidden;
}

.guide-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.guide-summary::-webkit-details-marker {
  display: none;
}

.guide-summary-text h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.fold-hint {
  margin: 0 !important;
  font-size: 0.92rem;
}

.fold-chevron {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
}

.fold-chevron::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--foam);
  border-bottom: 2px solid var(--foam);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.guide-fold[open] .fold-chevron::before {
  transform: translate(-50%, -20%) rotate(225deg);
}

.guide-body {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  animation: fold-in 0.25s ease;
}

@keyframes fold-in {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.guide-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--signal);
}

.guide-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.02em;
}

.client-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.client-pick {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 23, 29, 0.35);
}

.client-pick h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.05rem;
}

.client-pick p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
}

.guide-steps > li {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 1.4rem 1.8rem;
  align-items: center;
}

.guide-steps.flip > li:nth-child(even) {
  grid-template-columns: 1fr minmax(140px, 180px);
}

.guide-steps.flip > li:nth-child(even) .phone {
  order: 2;
}

.guide-steps.flip > li:nth-child(even) .guide-copy {
  order: 1;
}

.step-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.guide-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.guide-copy p {
  margin: 0;
  color: var(--muted);
}

.guide-note {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.phone {
  display: flex;
  justify-content: center;
}

.phone-bezel {
  width: 148px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1a3d45, #0a2228);
  border: 1px solid rgba(200, 242, 230, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.phone-bezel.light {
  background: linear-gradient(160deg, #dce8e4, #b7cfc8);
  border-color: rgba(6, 37, 47, 0.2);
}

.phone-screen {
  position: relative;
  min-height: 220px;
  padding: 14px 12px 16px;
  border-radius: 14px;
  background: #071c22;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-screen.teal {
  background: linear-gradient(180deg, #0a3a45, #06252f);
}

.phone-screen.light {
  background: #f3faf7;
}

.fake-bar,
.fake-row,
.fake-input,
.fake-btn,
.fake-bubble,
.fake-link,
.fake-node,
.fake-title,
.fake-qr,
.fake-caption,
.fake-notch {
  display: block;
  border-radius: 4px;
}

.fake-bar {
  width: 36%;
  height: 4px;
  margin: 0 auto 4px;
  background: rgba(200, 242, 230, 0.25);
}

.fake-notch {
  width: 42%;
  height: 8px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #1a1a1a;
}

.fake-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--foam);
  text-align: center;
}

.fake-title.dark {
  color: #12323a;
}

.fake-row {
  height: 10px;
  background: rgba(200, 242, 230, 0.12);
}

.fake-row.short {
  width: 70%;
}

.fake-row.darkish {
  background: rgba(6, 37, 47, 0.12);
}

.fake-btn {
  margin-top: auto;
  padding: 8px 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #042019;
  background: var(--signal);
}

.fake-btn.ios-btn {
  background: #1fa89a;
  color: #fff;
  border-radius: 999px;
}

.fake-bubble {
  align-self: flex-start;
  padding: 6px 8px;
  font-size: 0.68rem;
  background: rgba(31, 168, 154, 0.25);
  color: var(--foam);
}

.fake-bubble.soft {
  background: rgba(31, 168, 154, 0.18);
  color: #0e3a42;
}

.fake-link {
  font-size: 0.58rem;
  color: var(--signal-2);
  word-break: break-all;
  line-height: 1.3;
}

.fake-qr {
  width: 64px;
  height: 64px;
  margin: 4px auto 0;
  background:
    linear-gradient(90deg, rgba(200, 242, 230, 0.35) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(rgba(200, 242, 230, 0.35) 1px, transparent 1px) 0 0 / 8px 8px,
    #0a2a30;
  border: 1px solid rgba(200, 242, 230, 0.25);
}

.fake-qr.dark-qr {
  background:
    linear-gradient(90deg, rgba(6, 37, 47, 0.35) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(rgba(6, 37, 47, 0.35) 1px, transparent 1px) 0 0 / 8px 8px,
    #fff;
  border-color: rgba(6, 37, 47, 0.2);
}

.fake-input {
  padding: 8px;
  font-size: 0.62rem;
  color: var(--mist);
  border: 1px dashed rgba(200, 242, 230, 0.3);
}

.fake-input.light-in {
  color: #4a6a72;
  border-color: rgba(6, 37, 47, 0.2);
  background: #fff;
}

.fake-node {
  font-size: 0.65rem;
  text-align: center;
  color: var(--signal-2);
}

.fake-node.soft-node {
  color: #0e6b5f;
  font-weight: 700;
}

.fake-caption {
  font-size: 0.58rem;
  text-align: center;
  color: #5a7a82;
}

.warn {
  border-left: 3px solid var(--warn-line);
  margin-left: clamp(1.2rem, 4vw, 3rem);
  margin-right: clamp(1.2rem, 4vw, 3rem);
  padding-left: clamp(1rem, 3vw, 1.5rem);
  max-width: none;
}

.warn .sub,
.warn p {
  color: #d7c4b0;
}

.foot {
  padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot p {
  margin: 0 0 0.45rem;
}

.foot .fine {
  opacity: 0.85;
}

.fab-contact {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  background: var(--signal);
  color: #042019;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(200, 242, 230, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.fab-contact:hover {
  background: #27c4b2;
  color: #021411;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .client-picks {
    grid-template-columns: 1fr;
  }

  .guide-steps > li,
  .guide-steps.flip > li:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .guide-steps.flip > li:nth-child(even) .phone,
  .guide-steps.flip > li:nth-child(even) .guide-copy {
    order: initial;
  }

  .phone-bezel {
    width: 132px;
  }
}

@media (max-width: 640px) {
  .top-nav a:nth-child(-n+3) {
    display: none;
  }

  .top-nav a:last-child {
    display: inline;
  }

  .hero {
    align-items: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .routes path,
  .node,
  .hero-copy {
    animation: none;
  }
}
