/* ============================================
   ONDE WATER — Design System (Apple-inspired)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --light-bg: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-light: #ffffff;
  --text-secondary: rgba(0, 0, 0, 0.56);
  --text-secondary-dark: rgba(255, 255, 255, 0.7);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link-light: #0066cc;
  --link-dark: #2997ff;
  --gold: #c5a055;
  --gold-light: #d4b87a;

  /* Typography */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-pad: 120px 0;
  --container: 980px;
  --nav-height: 52px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.47;
  letter-spacing: -0.374px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  max-width: var(--container);
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.3s var(--ease);
}

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

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 4px 14px;
  border-radius: 980px;
  font-size: 12px !important;
  font-weight: 400;
  transition: background 0.3s var(--ease) !important;
}

.nav-cta:hover { background: var(--accent-hover); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 3px;
  transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 7px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 17px; }

.nav-toggle.active span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* --- Section System --- */
.section { padding: var(--section-pad); }
.section--dark { background: var(--black); color: var(--text-light); }
.section--light { background: var(--light-bg); color: var(--text-dark); }
.section--white { background: var(--white); color: var(--text-dark); }
.section--gold { background: #1a1408; color: var(--text-light); }

.section__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gold);
}

.section__title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.231px;
  margin-bottom: 32px;
}

.section__text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.374px;
  max-width: 680px;
}

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}

.hero__title {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero__visual {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero__visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center bottom, transparent 30%, rgba(0,0,0,0.7) 100%);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 980px;
}

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

.btn--secondary {
  background: transparent;
  color: var(--link-light);
  padding: 12px 28px;
  border-radius: 980px;
  border: 1px solid var(--link-light);
}

.btn--secondary:hover { background: var(--link-light); color: var(--white); }

.btn--gold {
  background: var(--gold);
  color: var(--black);
  padding: 12px 28px;
  border-radius: 980px;
  font-weight: 600;
}

.btn--gold:hover { background: var(--gold-light); }

.btn--dark-secondary {
  background: transparent;
  color: var(--link-dark);
  padding: 12px 28px;
  border-radius: 980px;
  border: 1px solid var(--link-dark);
}

.btn--dark-secondary:hover { background: rgba(41, 151, 255, 0.1); }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 17px;
  font-weight: 400;
  color: var(--link-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-arrow::after { content: ' ›'; font-size: 1.2em; }
.link-arrow:hover { text-decoration: underline; }

.section--dark .link-arrow { color: var(--link-dark); }

/* --- Feature Grid --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
}

.section--dark .feature-card { background: #1c1c1e; }

.feature-card__icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--text-secondary);
}

.section--dark .feature-card__text { color: var(--text-secondary-dark); }

/* --- Product Cards --- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.product-card {
  background: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.product-card:hover { transform: translateY(-4px); }

.product-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #e8e8ed;
}

.product-card__body { padding: 28px 24px; }

.product-card__name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 14px;
  line-height: 1.43;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-card__price {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* --- Testimonial --- */
.testimonial {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.196px;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial__author {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
}

.section--dark .faq-item { border-color: rgba(255, 255, 255, 0.1); }

.faq-question {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-secondary);
}

.section--dark .faq-answer p { color: var(--text-secondary-dark); }

/* --- Footer --- */
.footer {
  background: var(--light-bg);
  padding: 48px 0 24px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer a { color: var(--link-light); }
.footer a:hover { text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { font-size: 12px; color: var(--text-secondary); }
.footer__col a:hover { color: var(--text-dark); }

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a { font-size: 14px; color: var(--text-secondary); }
.footer__social a:hover { color: var(--text-dark); }

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Video Container --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* --- Two-column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* --- Benefit list --- */
.benefit-list {
  list-style: none;
  margin-top: 24px;
}

.benefit-list li {
  font-size: 17px;
  line-height: 1.58;
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
}

.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 834px) {
  .section__title { font-size: 40px; }
  .hero__title { font-size: 44px; }
  .hero__subtitle { font-size: 19px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .products { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  var(--section-pad): 80px 0;

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open a { font-size: 17px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .section__title { font-size: 32px; }
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 17px; }
  .section__subtitle { font-size: 17px; }
  .container { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
}
