/* ================= Tidewire design system (see BRAND.md) ================= */

:root {
  --abyss: #06172A;
  --navy: #0A2440;
  --channel: #123A63;
  --current: #17C3AE;
  --current-deep: #0E9486;
  --sky: #4CC9F0;
  --reef: #FF7A66;
  --foam: #E9F6F4;
  --sand: #F7FAFA;
  --card: #FFFFFF;
  --ink: #122A40;
  --ink-soft: #4A6379;
  --line: #DCE8EC;
  --text-on-dark: #C5D6E2;

  --grad-brand: linear-gradient(92deg, var(--current), var(--sky));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(10, 36, 64, 0.05), 0 12px 32px -16px rgba(10, 36, 64, 0.18);
  --shadow-glass: 0 24px 60px -24px rgba(0, 0, 0, 0.5);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --space-section: clamp(4.5rem, 9vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--current);
  color: var(--abyss);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--current);
  outline-offset: 2px;
}

/* ================= buttons ================= */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

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

.btn-primary {
  background: var(--grad-brand);
  color: var(--abyss);
  box-shadow: 0 8px 24px -10px rgba(23, 195, 174, 0.65);
}

.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(23, 195, 174, 0.8); }

.btn-ghost {
  color: var(--foam);
  border: 1px solid rgba(233, 246, 244, 0.35);
}

.btn-ghost:hover { background: rgba(233, 246, 244, 0.1); border-color: rgba(233, 246, 244, 0.6); }

.btn-outline {
  color: var(--current-deep);
  border: 1.5px solid var(--current-deep);
}

.btn-outline:hover { background: var(--current-deep); color: #fff; }

.btn-nav { background: var(--current); color: var(--abyss); padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.btn-nav:hover { background: var(--sky); }

.btn-large { font-size: 1.12rem; padding: 1rem 2.2rem; }

/* ================= header / nav ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.45); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.brand-mark { width: 36px; height: 36px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.01em;
}

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

.nav-menu a:not(.btn) {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-menu a:not(.btn):hover { color: var(--current); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--foam);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ================= hero ================= */

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 460px at 82% -12%, rgba(76, 201, 240, 0.16), transparent 60%),
    radial-gradient(700px 420px at -8% 110%, rgba(23, 195, 174, 0.14), transparent 60%),
    linear-gradient(160deg, var(--abyss) 55%, var(--navy));
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(6rem, 11vw, 8.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--current);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--current);
  box-shadow: 0 0 0 4px rgba(23, 195, 174, 0.2);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 800;
  margin-bottom: 1.3rem;
  max-width: 15ch;
}

.grad {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-on-dark);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  max-width: 52ch;
  margin-bottom: 2.1rem;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  list-style: none;
  color: #8FA9BC;
  font-size: 0.9rem;
  font-weight: 500;
}

.proof-strip li { display: flex; align-items: center; gap: 0.45rem; }

.proof-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--current);
}

/* --- hero glass cards --- */

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: stretch;
}

.glass-card {
  background: rgba(18, 58, 99, 0.38);
  border: 1px solid rgba(233, 246, 244, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-glass);
  padding: 1.2rem 1.3rem;
}

.card-health { animation: floaty 7s ease-in-out infinite; }

.card-ticket {
  animation: floaty 7s ease-in-out 1.2s infinite;
  width: 88%;
  justify-self: end;
}

.glass-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foam);
  margin-bottom: 0.9rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--current);
  box-shadow: 0 0 0 0 rgba(23, 195, 174, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

.glass-tag {
  margin-left: auto;
  background: rgba(23, 195, 174, 0.16);
  color: var(--current);
  border: 1px solid rgba(23, 195, 174, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.health-list { list-style: none; display: grid; gap: 0.55rem; }

.health-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text-on-dark);
  font-size: 0.92rem;
}

.health-list strong { color: #fff; margin-left: auto; font-weight: 600; }

.ok { color: var(--current); font-weight: 700; }

.ticket-row { display: flex; align-items: center; gap: 0.8rem; }

.ticket-icon { font-size: 1.2rem; }

.ticket-title { color: var(--foam); font-weight: 600; font-size: 0.93rem; }

.ticket-meta { color: #8FA9BC; font-size: 0.82rem; }

.tag-done { margin-left: auto; }

.glass-chip {
  justify-self: start;
  background: rgba(255, 122, 102, 0.14);
  border: 1px solid rgba(255, 122, 102, 0.4);
  color: #FFB0A3;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  animation: floaty 7s ease-in-out 0.6s infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 195, 174, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(23, 195, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 195, 174, 0); }
}

.hero-wave {
  position: absolute;
  inset: auto 0 -1px 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: clamp(36px, 6vw, 70px); display: block; }

/* ================= sections ================= */

.section { padding: var(--space-section) 0; }

.section-foam { background: var(--foam); }

.kicker {
  color: var(--current-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.kicker-light { color: var(--current); }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 58ch;
  margin-bottom: 2.8rem;
}

/* ================= bento ================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
  grid-column: span 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(10, 36, 64, 0.05), 0 20px 44px -18px rgba(10, 36, 64, 0.26);
}

.tile-feature {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(150deg, #ffffff, #F2FBF9 70%);
  border-top: 4px solid var(--current);
}

.tile-wide { grid-column: span 3; }

.tile-stat {
  grid-column: span 3;
  background: var(--navy);
  border-color: var(--channel);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(23, 195, 174, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--current-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h3 { font-size: 1.18rem; margin-bottom: 0.6rem; color: var(--navy); }

.tile p { color: var(--ink-soft); font-size: 0.97rem; }

.tile-list {
  margin-top: 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tile-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tile-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--current-deep);
  font-weight: 700;
}

.tile .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
}

.tile .stat-label { color: var(--text-on-dark); font-size: 0.95rem; margin-top: 0.5rem; }

/* ================= industries ================= */

.industry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.industry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
}

.industry-emoji { font-size: 1.7rem; display: block; margin-bottom: 0.8rem; }

.industry h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 0.5rem; }

.industry p { color: var(--ink-soft); font-size: 0.96rem; }

/* ================= steps ================= */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--current-deep);
  background: rgba(23, 195, 174, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }

.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ================= pricing ================= */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-featured {
  border: 2px solid var(--current);
  box-shadow: 0 4px 8px rgba(10, 36, 64, 0.05), 0 26px 52px -20px rgba(23, 195, 174, 0.35);
}

.badge-pop {
  position: absolute;
  top: -0.85rem;
  right: 1.4rem;
  background: var(--reef);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.35rem; color: var(--navy); }

.price-tag {
  color: var(--current-deep);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.3rem 0 1rem;
}

.price-desc { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.2rem; }

.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--current-deep);
  font-weight: 700;
}

.price-card .btn { margin-top: auto; align-self: start; }

/* ================= why (dark) ================= */

.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(76, 201, 240, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--abyss));
  color: #fff;
}

.section-dark .section-title { color: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.why-lede { color: var(--text-on-dark); font-size: 1.05rem; margin-top: 1rem; }

.why-list { list-style: none; display: grid; gap: 1.1rem; }

.why-list li {
  background: rgba(18, 58, 99, 0.35);
  border: 1px solid rgba(233, 246, 244, 0.12);
  border-left: 3px solid var(--current);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.25rem;
}

.why-list strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }

.why-list span { color: var(--text-on-dark); font-size: 0.95rem; }

/* ================= faq ================= */

.faq-list { display: grid; gap: 0.9rem; }

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  padding: 1.1rem 1.4rem;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--current-deep);
  transition: transform 0.2s ease;
  flex: none;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ================= CTA band ================= */

.cta-band {
  background:
    radial-gradient(700px 320px at 50% -20%, rgba(23, 195, 174, 0.25), transparent 65%),
    linear-gradient(160deg, var(--abyss), var(--navy));
  color: #fff;
  text-align: center;
  padding: var(--space-section) 0;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-inner > p {
  color: var(--text-on-dark);
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.06rem;
}

.cta-alt { margin-top: 1.2rem; color: #8FA9BC; font-size: 0.95rem; }

.cta-alt a { color: var(--current); text-decoration: none; font-weight: 500; }

.cta-alt a:hover { text-decoration: underline; }

/* ================= footer ================= */

.site-footer { background: var(--abyss); color: #7F93A5; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2rem;
  padding-top: 3.2rem;
  padding-bottom: 2.4rem;
}

.footer-brand p { font-size: 0.93rem; margin-top: 0.9rem; max-width: 34ch; }

.footer-links { display: grid; gap: 0.55rem; align-content: start; }

.footer-links a, .footer-contact a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-links a:hover, .footer-contact a:hover { color: var(--current); }

.footer-contact { display: grid; gap: 0.55rem; align-content: start; font-size: 0.93rem; }

.footer-fine {
  border-top: 1px solid rgba(233, 246, 244, 0.08);
  padding-top: 1.3rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
}

/* ================= reveal animation ================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-health, .card-ticket, .glass-chip { animation: none; }
  .pulse { animation: none; }
}

/* ================= responsive ================= */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .why-grid { grid-template-columns: 1fr; }
  .tile, .tile-feature, .tile-stat { grid-column: 1 / -1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--abyss);
    border-top: 1px solid rgba(233, 246, 244, 0.1);
    padding: 0.6rem 1.5rem 1.2rem;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a:not(.btn) { padding: 0.8rem 0; font-size: 1.02rem; }

  .nav-menu .btn { margin-top: 0.6rem; text-align: center; }

  .hero-actions .btn { width: 100%; text-align: center; }

  .card-ticket { width: 100%; }
}
