:root {
  --ink: #172420;
  --muted: #59706a;
  --teal: #007a6b;
  --teal-dark: #005f54;
  --mint: #d9eee8;
  --cream: #fffaf0;
  --gold: #e8b84f;
  --paper: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 36, 32, 0.12);
  --shadow: 0 24px 70px rgba(29, 64, 55, 0.13);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(202, 232, 222, 0.9), transparent 34rem),
    radial-gradient(circle at 92% 22%, rgba(245, 218, 158, 0.72), transparent 30rem),
    linear-gradient(145deg, #f5f8f6, var(--cream));
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 251, 248, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1160px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 20px rgba(0, 76, 65, 0.2); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 650; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  font-weight: 700;
}

.container { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  min-height: 710px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 76px;
  padding: 88px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(3.4rem, 8vw, 6.4rem); font-weight: 850; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { margin: 0 0 10px; font-size: 1.25rem; }

.hero-copy { margin: 0; max-width: 620px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 14px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 122, 107, 0.2);
}

.button:hover { color: white; background: var(--teal-dark); }
.button.secondary { background: transparent; color: var(--teal-dark); box-shadow: none; }
.button.secondary:hover { background: rgba(0, 122, 107, 0.08); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 460px; height: 460px; border: 1px solid rgba(0, 122, 107, 0.2); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--gold); }
.hero-orbit::before { width: 18px; height: 18px; top: 42px; right: 70px; }
.hero-orbit::after { width: 11px; height: 11px; bottom: 65px; left: 43px; background: var(--teal); }
.hero-icon { width: min(320px, 70vw); border-radius: 25%; box-shadow: 0 40px 100px rgba(20, 70, 59, 0.25); transform: rotate(2deg); }
.float-card { position: absolute; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-weight: 750; }
.float-card.one { left: 0; top: 23%; }
.float-card.two { right: 0; bottom: 22%; }

.section { padding: 92px 0; }
.section-heading { max-width: 700px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .legal-card, .contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 15px 40px rgba(30, 69, 59, 0.08);
}
.feature-number { color: var(--teal); font-weight: 850; font-size: 0.9rem; letter-spacing: 0.08em; }
.feature-card p { color: var(--muted); margin-bottom: 0; }

.screens { background: rgba(218, 238, 232, 0.42); border-block: 1px solid rgba(0, 122, 107, 0.08); }
.phone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.phone-grid figure { min-width: 0; margin: 0; }
.phone-placeholder {
  width: 100%;
  overflow: hidden;
  border: 8px solid #17201d;
  border-radius: 44px;
  background: #17201d;
  box-shadow: 0 30px 55px rgba(29, 64, 55, 0.16);
}
.phone-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}
.phone-caption { text-align: center; margin-top: 16px; color: var(--muted); font-weight: 700; }

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 44px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: var(--shadow);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.cta .button { background: var(--cream); border-color: var(--cream); color: var(--teal-dark); box-shadow: none; }

.page-hero { padding: 92px 0 40px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; padding-bottom: 100px; }
.legal-nav { position: sticky; top: 102px; align-self: start; padding: 20px; border-left: 3px solid var(--mint); }
.legal-nav a { display: block; padding: 6px 0; color: var(--muted); font-weight: 700; text-decoration: none; }
.legal-card { padding: clamp(26px, 5vw, 56px); }
.legal-card h2 { margin-top: 46px; font-size: 1.65rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #40554f; }
.legal-card li + li { margin-top: 10px; }
.effective { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-weight: 800; font-size: 0.85rem; }

.story-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 100px; }
.story-grid .feature-card { min-height: 240px; }
.contact-card a { font-weight: 800; }
.faq { margin-top: 30px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }

.site-footer { margin-top: 80px; padding: 48px 0 30px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.42); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-grid h3 { font-size: 1rem; }
.footer-grid p { color: var(--muted); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 850px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 18px; right: 18px; padding: 18px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; }
  .hero-visual { min-height: 440px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .phone-grid { grid-template-columns: 1fr; max-width: 390px; margin-inline: auto; }
  .phone-grid { gap: 50px; }
  .cta, .story-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { display: none; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.2rem; }
  .hero-orbit { width: 330px; height: 330px; }
  .hero-icon { width: 240px; }
  .float-card { font-size: 0.82rem; }
  .section { padding: 68px 0; }
  .cta { padding: 30px 24px; }
}
