/* Glacier Water Company — Landing Page
   Palette: Glacier Blue #3BAFD9 · White #F8FBFD · Silver #B8C5CE
            Green #7FD4A8 · Navy #1A3A4A · Deep Blue #0D2535 · Ice #E8F4FA */

:root {
  --blue: #3bafd9;
  --blue-deep: #2a8fb8;
  --white: #f8fbfd;
  --silver: #b8c5ce;
  --green: #7fd4a8;
  --navy: #1a3a4a;
  --deep: #0d2535;
  --ice: #e8f4fa;
  --glass: rgba(26, 58, 74, 0.72);
  --glass-border: rgba(184, 197, 206, 0.22);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 24px 64px rgba(13, 37, 53, 0.45);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  background: var(--deep);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--blue); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animated background ── */
.ice-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ice-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 175, 217, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(127, 212, 168, 0.12), transparent 50%),
    linear-gradient(165deg, var(--deep) 0%, var(--navy) 45%, #0f3044 100%);
}

.ice-bg__orbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 70%, rgba(59, 175, 217, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(127, 212, 168, 0.06) 0%, transparent 35%);
  animation: drift 18s ease-in-out infinite alternate;
}

.ice-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--silver) 1px, transparent 1px),
    linear-gradient(90deg, var(--silver) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2%, 1.5%) scale(1.02); }
}

/* ── Header / Nav ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 37, 53, 0.82);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.nav__logo {
  filter: drop-shadow(0 4px 12px rgba(59, 175, 217, 0.35));
}

.nav__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__title em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav__links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav__links a:hover {
  background: rgba(59, 175, 217, 0.15);
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(59, 175, 217, 0.35);
}

.btn--ghost {
  background: rgba(232, 244, 250, 0.08);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

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

.hero__stats strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.hero__stats span {
  font-size: 0.78rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 280px;
}

.hero__card--main {
  animation: float 5s ease-in-out infinite;
}

.hero__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.hero__card p {
  font-size: 0.9rem;
  color: var(--silver);
}

.flow-line {
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
  border-radius: 99px;
  opacity: 0.6;
}

.hero__chain {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(26, 58, 74, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.hero__chain img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  transition: transform 0.3s;
}

.hero__chain img:hover {
  transform: scale(1.12) translateY(-4px);
}

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

/* ── Sections ── */
.section {
  padding: 4.5rem 0;
}

.section--glass {
  background: rgba(26, 58, 74, 0.35);
  border-block: 1px solid var(--glass-border);
}

.section__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--silver);
  font-size: 1rem;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 175, 217, 0.45);
  box-shadow: 0 16px 48px rgba(13, 37, 53, 0.4);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.feature-card__icon img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.55;
}

.brands-strip,
.regions-strip {
  text-align: center;
  padding: 2rem;
  background: rgba(59, 175, 217, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.brands-strip.is-visible,
.regions-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brands-strip h3,
.regions-strip h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1rem;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
}

.brands-list li {
  padding: 0.45rem 1.1rem;
  background: rgba(127, 212, 168, 0.12);
  border: 1px solid rgba(127, 212, 168, 0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.regions-list {
  font-size: 1rem;
  color: var(--silver);
}

/* ── Legal / Privacy ── */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--ice);
}

/* ── Support ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.support-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.support-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-card--wide {
  grid-column: 1 / -1;
}

.support-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(59, 175, 217, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.support-card__badge--green {
  color: var(--green);
  background: rgba(127, 212, 168, 0.15);
}

.support-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.faq dt {
  font-weight: 600;
  color: var(--white);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.faq dt:first-child { margin-top: 0; }

.faq dd {
  font-size: 0.88rem;
  color: var(--silver);
  margin-top: 0.35rem;
  margin-left: 0;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list span {
  font-size: 0.78rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list a {
  font-size: 1rem;
  font-weight: 600;
}

.support-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--silver);
  opacity: 0.85;
}

.app-info {
  width: 100%;
  border-collapse: collapse;
}

.app-info td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.app-info td:first-child {
  color: var(--silver);
  width: 40%;
}

.app-info td:last-child {
  color: var(--white);
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  opacity: 0.85;
}

.footer p {
  font-size: 0.82rem;
  color: var(--silver);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--silver);
}

.footer__links a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2.5rem;
  }

  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 37, 53, 0.96);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s, opacity 0.35s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .nav__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__stats { gap: 1.25rem; }
  .hero__chain img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
