/* Onda Blu — palette: deep sky + cyan */
:root {
  --bg-deep: #0c4a6e;
  --bg-card: #ffffff;
  --bg-soft: #e0f2fe;
  --bg-mist: #f0f9ff;
  --accent: #06b6d4;
  --accent-strong: #0891b2;
  --accent-soft: #67e8f9;
  --accent-warn: #facc15;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #bae6fd;
  --shadow: 0 25px 50px -12px rgba(8, 145, 178, 0.25);
  --radius: 1rem;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-mist) 0%, #fff 18%, var(--bg-soft) 100%);
  line-height: 1.6;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 249, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--bg-deep);
  text-decoration: none;
}

.logo span {
  color: var(--accent-strong);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--bg-deep);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bg-deep);
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.2), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg-deep);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 0 1.75rem;
}

@media (max-width: 900px) {
  .hero-lead {
    margin-inline: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 74, 110, 0.35));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--bg-deep);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

/* Products */
.products {
  background: linear-gradient(180deg, #fff, var(--bg-mist));
}

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

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.product-cta {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-strong);
  transition: gap 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-cta {
  gap: 0.7rem;
  color: var(--bg-deep);
}

.product-cta::after {
  content: "↗";
  font-size: 1rem;
}

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

.product-card figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--bg-deep);
}

.product-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-price {
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.product-price small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features strip */
.features {
  background: var(--bg-deep);
  color: #e0f2fe;
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.feature-item span {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-img img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.story-text h2 {
  font-family: var(--font-display);
  color: var(--bg-deep);
  margin-top: 0;
}

.story-text p {
  color: var(--text-muted);
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #0e7490, var(--bg-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.newsletter p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.newsletter input {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  min-width: 220px;
  font-family: var(--font);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.newsletter .btn-primary {
  background: #fff;
  color: var(--bg-deep);
  box-shadow: none;
}

/* Footer */
.site-footer {
  background: #082f49;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-desktop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-mist);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}

/* ===========================================
   ANNOUNCEMENT TICKER (running bar)
   =========================================== */
.announcement-bar {
  background: linear-gradient(90deg, #0c4a6e, #0891b2, #0c4a6e);
  color: #fff;
  overflow: hidden;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 60;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
  gap: 3rem;
  padding-left: 3rem;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.ticker-track span::before {
  content: "✦";
  color: var(--accent-soft);
  font-size: 1rem;
}

.ticker-track strong {
  color: #fde68a;
  font-weight: 700;
}

.announcement-bar:hover .ticker-track {
  animation-play-state: paused;
}

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

/* ===========================================
   SCROLL REVEAL ANIMATIONS
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-left {
  transform: translateX(-40px);
}
.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(40px);
}
.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-zoom {
  transform: scale(0.92);
}
.reveal-zoom.is-visible {
  transform: scale(1);
}

/* Stagger delays */
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ===========================================
   HERO UPGRADES — floating badges
   =========================================== */
.hero-visual {
  animation: heroFloat 6s ease-in-out infinite alternate;
}

.hero-floater {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg-deep);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-floater.top {
  top: 1.5rem;
  left: -1rem;
  animation: floatA 5s ease-in-out infinite;
}

.hero-floater.bottom {
  bottom: 5rem;
  right: -1.5rem;
  animation: floatB 5.5s ease-in-out infinite;
}

.hero-floater .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes heroFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

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

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ===========================================
   COUNTER STATS
   =========================================== */
.stats {
  padding: 2rem 0 3rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: block;
}

/* ===========================================
   PRODUCT CARD — dynamic hover
   =========================================== */
.product-card {
  position: relative;
}

.product-card figure {
  position: relative;
}

.product-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover figure::after {
  opacity: 1;
}

.product-card img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg-deep);
  color: #fff;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 1;
}

.product-badge.hot {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.product-badge.new {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

/* ===========================================
   MATERIALS / ARTICLES SECTION
   =========================================== */
.materials {
  background:
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.1), transparent 50%),
    var(--bg-mist);
  padding: 5rem 0;
}

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

@media (max-width: 900px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

.material-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.material-card .material-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
}

.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.material-card:hover img {
  transform: scale(1.05);
}

.material-card .material-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.material-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.material-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bg-deep);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.material-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  flex: 1;
}

.material-card .read-more {
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 0.9rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
  text-decoration: none;
}

.material-card .read-more:hover {
  gap: 0.7rem;
  text-decoration: none;
}

/* ===========================================
   REVIEWS / TESTIMONIALS
   =========================================== */
.reviews {
  background: linear-gradient(180deg, #fff, var(--bg-mist));
  padding: 5rem 0;
  overflow: hidden;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.reviews-header .section-title {
  text-align: left;
  margin: 0;
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.reviews-rating .score {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg-deep);
}

.reviews-rating .stars {
  color: #facc15;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.reviews-rating .sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.reviews-track::-webkit-scrollbar {
  height: 6px;
}
.reviews-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.review-card {
  flex: 0 0 clamp(280px, 85vw, 360px);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.review-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.5;
}

.review-text {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-name {
  font-weight: 700;
  color: var(--bg-deep);
  font-size: 0.95rem;
  margin: 0;
}

.review-city {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.review-stars {
  color: #facc15;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Dynamic background accents */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.blob.cyan {
  background: var(--accent);
}

.blob.deep {
  background: var(--bg-deep);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .hero-visual,
  .hero-floater.top,
  .hero-floater.bottom,
  .hero-floater .dot {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
