/* Homepage only. Shared tokens, header, buttons, icons and footer live in style.css. */

.home { --hero-glow: rgba(9, 177, 186, .16); }
@media (prefers-color-scheme: dark) { .home { --hero-glow: rgba(44, 198, 207, .14); } }

/* Section headings */
.sec-head { margin-bottom: 28px; }
.sec-head.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.sec-title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; letter-spacing: -.03em; max-width: 26ch; text-wrap: balance; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

.home .btn-primary .i { transition: transform .2s; }
.home .btn-primary:hover .i { transform: translateX(3px); }

/* Hero */
.h-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.h-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 75%);
}
.h-hero::after {
  content: ""; position: absolute; z-index: -2; width: 720px; height: 720px; right: -160px; top: -260px;
  background: radial-gradient(circle, var(--hero-glow), transparent 65%);
}
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.h-hero .eyebrow { margin-bottom: 22px; }

.h-hero h1 {
  margin: 0 0 20px; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.045em;
}
.hl { position: relative; color: var(--accent-ink); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.14em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c38-6 96-9 194-4' fill='none' stroke='%2309b1ba' stroke-opacity='.45' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.h-lede { margin: 0; max-width: 34em; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.h-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.h-trust li { display: inline-flex; align-items: center; gap: 7px; }
.h-trust .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--accent); stroke-width: 3; }

/* Hero illustration */
.h-art { position: relative; padding: 28px 30px 48px 34px; }
.mock {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--float-shadow); transform: rotate(-1.5deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar > i:nth-child(1) { background: #ff6159; }
.mock-bar > i:nth-child(2) { background: #ffbd2e; }
.mock-bar > i:nth-child(3) { background: #28c941; }
.mock-url {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; flex: 1; max-width: 260px;
  padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden;
}
.mock-url .i { width: 12px; height: 12px; color: #22a35a; stroke-width: 2.2; }
.mock-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; padding: 18px; }
.mock-page {
  display: grid; gap: 9px; align-content: start; padding: 18px 16px; min-height: 220px;
  background: #fff; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.ln { display: block; height: 7px; border-radius: 4px; background: #e6ebee; }
.ln.red { height: 10px; border-radius: 2px; background: #15191c; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mock-side { display: grid; gap: 8px; align-content: start; }
.mock-label { height: 6px; width: 50%; border-radius: 3px; background: var(--line); }
.mock-label.short { width: 34%; margin-top: 4px; }
.mock-field { height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); }
.mock-toggle { display: block; width: 34px; height: 20px; margin-top: 6px; border-radius: 99px; background: var(--accent); position: relative; }
.mock-toggle b { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mock-btn {
  margin-top: 10px; padding: 8px 0; border-radius: 8px; text-align: center; font-size: .72rem; font-weight: 700;
  color: #fff; background: var(--accent);
}

.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--float-shadow);
  font-size: .85rem; line-height: 1.3; animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-weight: 650; }
.float small { display: block; color: var(--muted); font-size: .76rem; }
.float-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.float-ic.teal { background: var(--accent-soft); color: var(--accent-ink); }
.float-device { left: 0; bottom: 18px; animation-delay: -2s; }
.float-label { right: 0; top: -4px; animation-delay: -4s; }
.float-stat { right: 10px; bottom: -6px; display: block; padding: 12px 16px; min-width: 150px; }
.float-stat b { font-size: 1.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: end; gap: 4px; height: 26px; margin-top: 6px; }
.spark i { flex: 1; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.spark i:last-child, .spark i:nth-last-child(2) { background: var(--accent); }

.mini-label {
  display: grid; gap: 4px; width: 34px; height: 48px; padding: 5px; border-radius: 4px;
  background: #fff; border: 1px solid var(--line);
}
.ml-row { display: flex; gap: 3px; }
.ml-row b { height: 3px; flex: 1; border-radius: 2px; background: #c9d1d6; }
.ml-row b.s { flex: .5; }
.ml-bars { height: 14px; background: repeating-linear-gradient(90deg, #15191c 0 1.5px, transparent 1.5px 3px, #15191c 3px 3.5px, transparent 3.5px 5px); }

@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-shadow);
}
.stats li { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 22px 12px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.stats span { color: var(--muted); font-size: .92rem; }

/* Tools */
.tools { padding-top: 96px; }
.chips {
  position: sticky; top: var(--header-h); z-index: 10; display: flex; gap: 8px; margin: 0 -16px 8px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 761px) {
  .chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .tools .chips a { padding: 7px 12px 7px 10px; font-size: .85rem; gap: 6px; }
}
.chips a {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 14px 8px 11px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-size: .9rem; font-weight: 550; transition: border-color .15s, background .15s, color .15s;
}
.chips a .i { width: 17px; height: 17px; color: var(--c); }
.chips a:hover { border-color: var(--c-line); background: var(--c-soft); }

.cat { padding: 36px 0 8px; }
.cat + .cat { border-top: 1px dashed var(--line); margin-top: 28px; }
.cat-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.cat-head h2 { margin: 2px 0 4px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.cat-head p { margin: 0; max-width: 62ch; color: var(--muted); }
.cat-ic {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  color: var(--c); background: var(--c-soft); border: 1px solid var(--c-line);
}
.cat-ic .i { width: 24px; height: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px;
  color: var(--text); text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: var(--c-line); }
.card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.card-ic {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px;
  color: var(--c); background: var(--c-soft);
}
.card-ic .i { width: 22px; height: 22px; }
.card strong { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; padding-right: 24px; }
.card > span:not(.card-ic) { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card .go {
  position: absolute; top: 22px; right: 20px; width: 18px; height: 18px; color: var(--c);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }

/* How it works */
.how {
  position: relative; margin: 104px 0 0; padding: 88px 0; overflow: hidden; color: #e7f4f5;
  background: radial-gradient(900px 500px at 85% 10%, rgba(44, 198, 207, .22), transparent 60%), var(--ink);
}
.how::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.how-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.how .kicker { color: #5fd8df; }
.how h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; letter-spacing: -.03em; color: #fff; }
.how-copy p { color: #a9c3c6; margin: 0 0 16px; max-width: 56ch; }

.how-art { display: grid; gap: 14px; }
.flow { padding: 18px 18px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.flow-tag { display: inline-block; margin-bottom: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8aa7aa; }
.flow-good { background: rgba(44, 198, 207, .09); border-color: rgba(44, 198, 207, .35); }
.flow-good .flow-tag { color: #5fd8df; }
.flow-row { display: flex; align-items: center; gap: 8px; }
.node {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .82rem; font-weight: 550; white-space: nowrap;
}
.node .i { width: 18px; height: 18px; color: #8aa7aa; }
.node.big { flex: 1; background: rgba(44,198,207,.14); border-color: rgba(44,198,207,.4); color: #fff; }
.node.big .i { color: #5fd8df; }
.pipe { position: relative; flex: 1; min-width: 14px; height: 2px; background: repeating-linear-gradient(90deg, #5d7a7d 0 5px, transparent 5px 9px); }
.flow-bad .pipe i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #ff8f70; animation: travel 2.6s linear infinite; }
.flow-bad .pipe + .node + .pipe i { animation-delay: 1.3s; }
.pipe.off { flex: none; height: auto; background: none; color: #5fd8df; }
.pipe.off .i { width: 22px; height: 22px; }
.flow-note { display: block; margin-top: 12px; font-size: .8rem; color: #8aa7aa; }
.flow-bad .flow-note::before { content: "! "; color: #ff8f70; font-weight: 700; }
.flow-good .flow-note { color: #bfe9ec; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
@media (prefers-reduced-motion: reduce) { .flow-bad .pipe i { animation: none; left: 40%; } }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.perks li {
  display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.perks .i { width: 18px; height: 18px; color: #5fd8df; }

/* Guides */
.guides { padding-top: 104px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g-card {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 22px; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.g-card > strong, .g-card > span:last-child, .g-tag { margin: 0 10px; }
.g-card > strong { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.g-card > span:last-child { color: var(--muted); font-size: .92rem; }
.g-thumb {
  position: relative; display: grid; place-items: center; height: 150px; margin-bottom: 8px; border-radius: 12px; overflow: hidden; color: #fff;
}
.g-thumb::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.2px, transparent 1.2px); background-size: 16px 16px;
}
.g-thumb .i { position: relative; width: 52px; height: 52px; stroke-width: 1.4; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.g1 { background: linear-gradient(135deg, #0fb9c2, #067e85); }
.g2 { background: linear-gradient(135deg, #f59e0b, #e5484d); }
.g3 { background: linear-gradient(135deg, #6366f1, #9333ea); }
.g-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.g-tag .i { width: 14px; height: 14px; }

/* Who it's for */
.who { padding-top: 104px; }
.who-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.who-card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.who-card h3 { margin: 18px 0 8px; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.who-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.who-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.who-ic .i { width: 22px; height: 22px; }

/* CTA band */
.cta-band {
  position: relative; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  margin-top: 104px; padding: 44px 48px; border-radius: 24px; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0aa5ae 0%, #078c94 55%, #0b6f86 100%);
  box-shadow: 0 24px 48px -24px rgba(6, 126, 133, .55);
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  border: 48px solid rgba(255,255,255,.08); pointer-events: none;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.03em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); }
.cta-band .btn { position: relative; z-index: 1; }

/* Responsive */
@media (max-width: 960px) {
  .h-hero { padding: 36px 0 48px; }
  .h-hero-grid, .how-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .h-art { max-width: 560px; }
  .guide-cards, .who-cards { grid-template-columns: minmax(0, 1fr); }
  .g-card { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {

  .tools, .guides, .who { padding-top: 72px; }
  .how { margin-top: 72px; padding: 64px 0; }
  .cta-band { margin-top: 72px; padding: 32px 24px; }
  .h-art { padding: 20px 8px 56px 8px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-page { min-height: 160px; }
  .float-label { right: -4px; top: -8px; }
  .float-device { left: -4px; bottom: 6px; }
  .float-stat { display: none; }
  .stats li { flex-direction: column; align-items: center; gap: 0; padding: 16px 8px; }
  .flow-row { flex-wrap: wrap; }
  .flow-bad .pipe { min-width: 10px; }
  .perks { grid-template-columns: 1fr; }
  .g-thumb { height: 120px; }
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .card-ic { grid-row: span 2; margin: 0; }
  .card .go { display: none; }
  .card strong { padding-right: 0; }
  .cat-head { gap: 12px; }
  .cat-ic { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 420px) {
  .node { padding: 8px; font-size: .76rem; }
  .node .i { display: none; }
}
