/* ===========================
   Hydrate App — Landing Page
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
  --bg: #F0FBFD;
  --surf: #E2F5F9;
  --surf2: #D0EDF4;
  --border: #AAD8E6;
  --blue: #1BBAD8;
  --teal: #3DCFCF;
  --amber: #FF7A00;
  --amber2: #FFB84D;
  --text: #082030;
  --text2: #2A6878;
  --text3: #4A8898;
  --muted: #8ABCC8;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(8, 32, 48, 0.08);
  --shadow-lg: 0 12px 48px rgba(8, 32, 48, 0.14);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 251, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #E2F5F9 0%, #F0FBFD 40%, #D0EDF4 100%);
  z-index: 0;
}

/* Animated wave shapes */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%233DCFCF' fill-opacity='0.15' d='M0,40 C360,100 720,0 1080,60 C1260,90 1380,20 1440,40 L1440,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 50% 100%;
  animation: wave-move 8s linear infinite;
}

.wave2 {
  animation: wave-move 12s linear infinite reverse;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%231BBAD8' fill-opacity='0.1' d='M0,60 C400,20 800,100 1200,40 C1320,20 1400,60 1440,50 L1440,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 50% 100%;
}

@keyframes wave-move {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* Floating circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}

.hero-circle-1 {
  width: 300px; height: 300px;
  background: var(--teal);
  top: -80px; right: -60px;
  animation-delay: 0s;
}

.hero-circle-2 {
  width: 180px; height: 180px;
  background: var(--blue);
  top: 40%; left: -40px;
  animation-delay: 2s;
}

.hero-circle-3 {
  width: 100px; height: 100px;
  background: var(--amber);
  bottom: 120px; right: 15%;
  animation-delay: 4s;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61, 207, 207, 0.15);
  border: 1px solid rgba(61, 207, 207, 0.4);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge span { color: var(--teal); }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  max-width: 700px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(61, 207, 207, 0.35);
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 186, 216, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 0;
}

.hero-trust {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.trust-label {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ===== PROBLEM ===== */
.problem { background: var(--white); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.problem-text p {
  color: var(--text2);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.problem-text p:last-child { margin-bottom: 0; }

.problem-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.stat-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-item:first-child { padding-top: 0; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text2);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ===== SOLUTION ===== */
.solution { background: var(--bg); }

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-text p {
  color: var(--text2);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.solution-visual {
  background: linear-gradient(135deg, var(--surf) 0%, var(--surf2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.solution-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(8, 32, 48, 0.05);
}

.step-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.step-body span {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.5;
}

/* ===== FEATURES ===== */
.features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
}

.feature-card.highlight {
  background: linear-gradient(135deg, rgba(61, 207, 207, 0.08) 0%, rgba(27, 186, 216, 0.08) 100%);
  border-color: rgba(61, 207, 207, 0.5);
}

.feature-badge {
  display: inline-block;
  background: rgba(255, 122, 0, 0.12);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ===== HOW IT WORKS ===== */
.how { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  opacity: 0.3;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(61, 207, 207, 0.35);
}

.step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ===== WHY IT WORKS ===== */
.why { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-text p {
  color: var(--text2);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.why-text p:last-child { margin-bottom: 0; }

.why-callout {
  background: linear-gradient(135deg, var(--surf) 0%, var(--surf2) 100%);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.why-callout p {
  font-size: 1.05rem !important;
  font-style: italic;
  color: var(--text) !important;
  margin: 0 !important;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.why-point-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why-point-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.why-point-body p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 !important;
}

/* ===== FAQ ===== */
.faq { background: var(--bg); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 780px;
}

details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

details[open] { border-color: var(--teal); }

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--teal);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.75;
}

/* ===== DOWNLOAD CTA ===== */
.download {
  background: linear-gradient(135deg, var(--text) 0%, #0F3348 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='%233DCFCF' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E") repeat;
  z-index: 0;
}

.download-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.download h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.download p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.download .btn-primary {
  background: var(--teal);
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

.download .btn-primary:hover { background: var(--blue); }

.download-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

.footer-logo span { color: var(--teal); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

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

.footer-copy { font-size: 0.8rem; }

/* ===== PRIVACY POLICY ===== */
.policy-hero {
  background: linear-gradient(135deg, var(--surf) 0%, var(--bg) 100%);
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.policy-hero .nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

.policy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.policy-body h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.policy-body h2:first-child { border-top: none; margin-top: 0; }

.policy-body p, .policy-body li {
  font-size: 0.97rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.policy-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.policy-body li { margin-bottom: 0.5rem; }

.policy-body a { color: var(--blue); }

.policy-updated {
  display: inline-block;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .problem-grid,
  .solution-grid,
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
