/* ============================================================
   Yentri — deep ocean & aqua theme
   Theme variables: edit these to retheme the whole site.
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #0c3550;          /* deep sea navy */
  --ink-soft: #4a6b80;
  --accent: #0c4a6e;       /* ocean */
  --accent-dark: #093a57;
  --aqua: #67e8f9;
  --aqua-deep: #0891b2;    /* readable aqua for text */
  --aqua-tint: #dff6fb;
  --bg: #f6fafc;
  --bg-tint: #e9f2f6;
  --bg-hero: #d9e9f0;
  --bg-footer: #07202f;
  --border: #cfe0e8;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(12, 53, 80, 0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.012em; }
h2 { font-size: 2rem; margin-bottom: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--aqua); color: var(--ink); }   /* aqua pop on dark CTA */
.btn-light:hover { background: #8df0fc; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ============ Nav ============ */
.nav {
  background: rgba(246, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  background:
    /* horizon lines — widening toward the bottom like latitude marks */
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 39px,
      rgba(12, 74, 110, 0.08) 39px,
      rgba(12, 74, 110, 0.08) 40px
    ),
    linear-gradient(to bottom, var(--bg-hero), #cfe3ec);
  padding: 74px 0 96px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--aqua-deep);
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.65rem; margin-bottom: 18px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Hero visual: failover event timeline ---- */
.linkpanel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.link-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tint);
  flex-wrap: wrap;
}
.asset-name { font-size: 0.78rem; font-weight: 700; }
.link-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #15803d;
  background: #e3f3e7;
  border: 1px solid #c2e2cb;
  border-radius: 999px;
  padding: 3px 10px;
}

.providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
}
.prov {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  background: var(--bg);
}
.prov.active { border-color: var(--aqua-deep); background: var(--aqua-tint); }
.prov-name { display: block; font-size: 0.72rem; font-weight: 800; }
.prov-state { display: block; font-size: 0.6rem; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.prov.active .prov-state { color: var(--aqua-deep); }

.bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; margin-top: 5px; }
.bars i { width: 4px; border-radius: 1.5px; background: var(--aqua-deep); }
.bars .b4 { height: 16px; }
.bars .b2 { height: 9px; opacity: 0.65; }
.bars .b0 { height: 4px; opacity: 0.3; }
.prov.standby .bars i { background: var(--ink-soft); }

.evt-timeline {
  border-top: 1px solid var(--border);
  padding: 12px 16px 14px;
  position: relative;
}
.evt {
  display: grid;
  grid-template-columns: 56px 16px 1fr;
  gap: 8px;
  align-items: start;
  padding: 5px 0;
}
.evt-time {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.evt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
}
.evt-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 2px;
  height: 16px;
  background: var(--border);
}
.evt:last-child .evt-dot::after { display: none; }
.evt-dot.ok { background: #22a35a; }
.evt-dot.warn { background: #e0a82e; }
.evt-dot.info { background: var(--aqua-deep); }
.evt p { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.5; }
.evt p b { color: var(--ink); }
.evt-cost { background: var(--aqua-tint); border-radius: 8px; padding: 6px 8px; margin-top: 4px; }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 660px; margin-bottom: 44px; }

/* ============ Cards ============ */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.93rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--aqua-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--aqua);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--aqua-deep);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat p { color: var(--ink-soft); font-size: 0.91rem; }

/* ============ Testimonial ============ */
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.quote-card blockquote p { font-size: 1.1rem; margin-bottom: 22px; }
.quote-card footer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.quote-card footer strong { display: block; font-size: 0.95rem; }
.quote-card footer span { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Trust badges ============ */
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ============ CTA (dark panel, aqua button) ============ */
.section-cta { background: var(--accent-dark); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 640px; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.76); margin: 12px 0 28px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.cta-form input:focus { outline: 3px solid rgba(103, 232, 249, 0.55); }
.cta-confirm { font-weight: 700; color: var(--aqua) !important; }

/* ============ Footer ============ */
.footer { background: var(--bg-footer); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; }
.footer .logo { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 2.15rem; }
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
  h2 { font-size: 1.6rem; }
}
