:root {
  --accent: #2FD1E0;
  --accent-deep: #0F96AC;
  --bg: #F3FAFB;
  --bg-alt: #ffffff;
  --text: #0B2B2F;
  --text-muted: #4A6669;
  --border: #DCEEF0;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 150, 172, 0.12);
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2FD1E0;
    --accent-deep: #14A6BC;
    --bg: #081B1E;
    --bg-alt: #0E2529;
    --text: #EAF7F8;
    --text-muted: #9FC2C5;
    --border: #163a3e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }

img { max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 250, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  header.site-header { background: rgba(8, 27, 30, 0.85); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.brand .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  display: inline-block;
  box-shadow: 0 2px 8px rgba(15,150,172,0.35);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #04292E;
  box-shadow: 0 10px 24px rgba(15,150,172,0.35);
}

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

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 19px;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-art {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 220px;
  height: 440px;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  background: var(--bg-alt);
}

.phone-frame::after {
  content: "💧";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

/* Sections */
section { padding: 70px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

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

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(47,209,224,.18), rgba(15,150,172,.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Pro banner */
.pro-banner {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #04292E;
}

.pro-banner h2 { margin: 0 0 14px; font-size: 30px; font-weight: 800; }
.pro-banner p { margin: 0 0 26px; font-size: 17px; opacity: .9; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover { color: var(--accent-deep); }

.footer-muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* Legal pages */
.legal {
  padding: 60px 0 90px;
}

.legal h1 {
  font-size: 36px;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
}

.legal ul { padding-left: 20px; }

.legal a { font-weight: 600; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-deep);
}

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
  }
}
