/* ──────────────────────────────────────────
   HydraGlow Smart Bottle — style.css
   ────────────────────────────────────────── */

/* ── CSS VARIABLES ── */
:root {
  --deep:  #04111f;
  --navy:  #071e35;
  --ocean: #0a3559;
  --teal:  #0e7490;
  --aqua:  #22d3ee;
  --foam:  #a5f3fc;
  --white: #f0f9ff;
  --gold:  #c9a84c;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── ANIMATED OCEAN BACKGROUND ── */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 80% at 50% 100%,
    #0e3a5e 0%, #071e35 40%, #04111f 100%
  );
}
.ocean-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 20% 80%, rgba(14,116,144,.18) 0%, transparent 70%),
    radial-gradient(circle 400px at 80% 20%, rgba(34,211,238,.10) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite alternate;
}
@keyframes pulse {
  from { opacity: .6; }
  to   { opacity: 1; }
}

/* Ripple lines */
.ripples {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 40vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ripples span {
  position: absolute;
  bottom: 0; left: -50%;
  width: 200%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.3), transparent);
  border-radius: 50%;
  animation: ripple 6s ease-in-out infinite;
}
.ripples span:nth-child(1) { bottom: 10%; animation-delay: 0s; }
.ripples span:nth-child(2) { bottom: 20%; animation-delay: 1.5s; opacity: .7; }
.ripples span:nth-child(3) { bottom: 30%; animation-delay: 3s;   opacity: .4; }
@keyframes ripple {
  0%,100% { transform: scaleX(1) translateY(0); }
  50%     { transform: scaleX(1.05) translateY(-6px); }
}

/* ── Z-INDEX LAYER ── */
section, header, footer, nav { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 6vw;
  border-bottom: 1px solid rgba(34,211,238,.12);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,17,31,.7);
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .05em;
  background: linear-gradient(120deg, var(--aqua), var(--foam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo span { font-weight: 300; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}
nav a {
  color: rgba(240,249,255,.65);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s;
}
nav a:hover { color: var(--aqua); }
.nav-cta {
  border: 1px solid var(--aqua);
  padding: .55rem 1.4rem;
  border-radius: 100px;
  color: var(--aqua) !important;
  transition: background .3s, color .3s !important;
}
.nav-cta:hover {
  background: var(--aqua);
  color: var(--deep) !important;
}

/* ── HERO ── */
.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 6vw 6rem;
}
.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--aqua), var(--foam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: rgba(240,249,255,.65);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 44ch;
  margin-bottom: 2.4rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  padding: .85rem 2.2rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--deep);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 30px rgba(34,211,238,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(34,211,238,.5);
}
.btn-ghost {
  padding: .85rem 2.2rem;
  border-radius: 100px;
  border: 1px solid rgba(34,211,238,.4);
  color: var(--foam);
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .25s, color .25s;
}
.btn-ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

/* Hero bottle visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-bottle-wrap {
  position: relative;
  width: 280px;
  height: 480px;
}
.hero-bottle-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(34,211,238,.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-18px); }
}
.glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.12) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: .8; }
  50%     { transform: translate(-50%,-50%) scale(1.12); opacity: 1;  }
}
.badge {
  position: absolute;
  bottom: 60px; right: -20px;
  background: rgba(14,116,144,.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34,211,238,.3);
  border-radius: 12px;
  padding: .8rem 1.2rem;
  text-align: center;
}
.badge strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--aqua);
}
.badge span {
  font-size: .75rem;
  color: rgba(240,249,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(34,211,238,.1);
  border-top: 1px solid rgba(34,211,238,.1);
  border-bottom: 1px solid rgba(34,211,238,.1);
}
.stat {
  background: rgba(4,17,31,.6);
  backdrop-filter: blur(8px);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--aqua);
}
.stat span {
  font-size: .85rem;
  color: rgba(240,249,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── SECTION TITLE HELPERS ── */
.section-label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--aqua);
  margin-bottom: .8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  font-weight: 600;
}

/* ── PRODUCTS ── */
#products { padding: 7rem 6vw; }

.products-header {
  text-align: center;
  margin-bottom: 4rem;
}
.products-header p {
  color: rgba(240,249,255,.6);
  margin-top: 1rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: linear-gradient(145deg, rgba(7,30,53,.9), rgba(10,53,89,.5));
  border: 1px solid rgba(34,211,238,.15);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34,211,238,.5);
  box-shadow: 0 20px 60px rgba(34,211,238,.15);
}
.product-img {
  background: linear-gradient(145deg, rgba(14,116,144,.2), rgba(4,17,31,.4));
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.product-img img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}
.product-info { padding: 1.5rem; }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.product-sub {
  font-size: .8rem;
  color: rgba(240,249,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.color-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}
.product-info small {
  font-size: .8rem;
  color: rgba(240,249,255,.5);
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
}
.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #f0d080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price sub { font-size: .9rem; }

.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  border: none;
  cursor: pointer;
  color: var(--deep);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.add-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(34,211,238,.5);
}

/* ── FEATURES ── */
#features {
  padding: 7rem 6vw;
  background: linear-gradient(180deg, transparent, rgba(10,53,89,.15), transparent);
}
.features-header { margin-bottom: 4rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(7,30,53,.5);
  border: 1px solid rgba(34,211,238,.1);
  transition: border-color .3s;
}
.feature:hover { border-color: rgba(34,211,238,.35); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(14,116,144,.4), rgba(34,211,238,.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.feature p {
  font-size: .9rem;
  color: rgba(240,249,255,.55);
  line-height: 1.7;
}

/* ── FOUNDERS ── */
#founders { padding: 7rem 6vw; }
.founders-header {
  text-align: center;
  margin-bottom: 4rem;
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.founder-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(145deg, rgba(7,30,53,.8), rgba(10,53,89,.4));
  border: 1px solid rgba(34,211,238,.15);
  border-radius: 20px;
  transition: transform .35s, border-color .35s;
}
.founder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,.4);
}
.founder-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.3rem;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  border: 2px solid rgba(34,211,238,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--aqua);
}
.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.founder-role {
  font-size: .78rem;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .9rem;
}
.founder-bio {
  font-size: .88rem;
  color: rgba(240,249,255,.55);
  line-height: 1.7;
}

/* ── CONTACT ── */
#contact { padding: 7rem 6vw; }
.contact-inner {
  background: linear-gradient(135deg, rgba(10,53,89,.5), rgba(7,30,53,.7));
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-text p {
  color: rgba(240,249,255,.6);
  margin: 1rem 0 2rem;
  line-height: 1.8;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(4,17,31,.4);
  border: 1px solid rgba(34,211,238,.12);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: border-color .3s, background .3s;
}
.contact-item:hover {
  border-color: var(--aqua);
  background: rgba(14,116,144,.15);
}
.ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item span { font-size: .95rem; }
.contact-item small {
  display: block;
  font-size: .75rem;
  color: rgba(240,249,255,.45);
  margin-top: 2px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(4,17,31,.5);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 10px;
  padding: .9rem 1.2rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s;
  resize: none;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--aqua); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(240,249,255,.3); }
.contact-form textarea { height: 110px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--deep);
  padding: 1rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 8px 30px rgba(34,211,238,.4);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  z-index: 200;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(34,211,238,.1);
  padding: 2.5rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .logo { font-size: 1.3rem; }
footer p {
  font-size: .82rem;
  color: rgba(240,249,255,.4);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: .82rem;
  color: rgba(240,249,255,.4);
  text-decoration: none;
  transition: color .3s;
}
.footer-links a:hover { color: var(--aqua); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 5rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 2rem; }
}
