/* ============================================
   POP — Clean Dark + Logo Teal
   True black, glassmorphism, whale-logo accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --bg-deep: #0a0a0a;
  --bg-surface: #111111;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --accent: #3BA99C;
  --accent-light: #5CC5B5;
  --accent-dark: #1A6B5A;
  --accent-deep: #1B5068;
  --text-primary: #ebebeb;
  --text-secondary: #999999;
  --text-muted: #555555;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --blur: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Animated Background --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-deep);
}

.bg-canvas .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-canvas .orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 169, 156, 0.1), transparent 70%);
  top: -12%; left: -8%;
  animation-duration: 28s;
}

.bg-canvas .orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27, 80, 104, 0.1), transparent 70%);
  bottom: -10%; right: -8%;
  animation-duration: 32s;
  animation-delay: -8s;
}

.bg-canvas .orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26, 107, 90, 0.08), transparent 70%);
  top: 50%; left: 45%;
  animation-duration: 24s;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.08); }
  66% { transform: translate(-25px, 40px) scale(0.95); }
  100% { transform: translate(35px, -15px) scale(1.04); }
}

/* Stars */
.bg-canvas .stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 40% 22%, rgba(59,169,156,0.25), transparent),
    radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 85% 12%, rgba(59,169,156,0.2), transparent),
    radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 48% 40%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 75% 32%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 90% 28%, rgba(59,169,156,0.15), transparent),
    radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 60% 52%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 82% 48%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 95% 65%, rgba(255,255,255,0.15), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* --- Glass Panels --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(59, 169, 156, 0.12);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); max-width: 65ch; }

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

a:hover { color: var(--accent-light); text-decoration: underline; }

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow { max-width: 840px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__logo:hover { color: var(--accent); text-decoration: none; }

.nav__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.nav__links a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav__links a:hover::after { width: 100%; }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

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

.hero__tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero__title {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

/* Whale mascot */
.whale-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.whale-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 169, 156, 0.1), transparent 60%);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 1; }
}

.whale-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  /* Soft radial mask: fades fuzzy PNG edges into the black bg */
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 55%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 55%, transparent 75%);
  /* Multi-layered swimming animation */
  animation: whaleSwim 8s ease-in-out infinite;
}

/* Emotional swimming: combines bob, tilt, and a playful nudge */
@keyframes whaleSwim {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  15%  { transform: translateY(-12px) rotate(2deg) scale(1.02); }
  30%  { transform: translateY(-6px) rotate(-1deg) scale(1.01); }
  50%  { transform: translateY(8px) rotate(-2.5deg) scale(0.98); }
  65%  { transform: translateY(4px) rotate(1deg) scale(1); }
  80%  { transform: translateY(-8px) rotate(1.5deg) scale(1.01); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* Floating bubbles around whale */
.bubble-particle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 169, 156, 0.2);
  background: rgba(59, 169, 156, 0.03);
  animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(1); opacity: 0.3; }
  40% { opacity: 0.6; }
  100% { transform: translateY(-140px) scale(0.15); opacity: 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(59, 169, 156, 0.25);
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 169, 156, 0.35);
  color: #0a0a0a;
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn--glass:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title { margin-bottom: 1rem; }
.section__desc { margin-bottom: 3rem; font-size: 1.05rem; }

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(59, 169, 156, 0.08);
  border: 1px solid rgba(59, 169, 156, 0.12);
}

.feature-card__icon--dark {
  background: rgba(27, 80, 104, 0.1);
  border-color: rgba(27, 80, 104, 0.15);
}

.feature-card__icon--deep {
  background: rgba(26, 107, 90, 0.1);
  border-color: rgba(26, 107, 90, 0.15);
}

.feature-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; }

/* Subtle corner accent */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  background: radial-gradient(circle at top right, rgba(59, 169, 156, 0.04), transparent 70%);
  border-radius: 0 var(--radius-lg) 0 0;
}

/* --- Legal Pages --- */
.legal-hero {
  padding: 10rem 0 3rem;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.legal-hero .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  padding: 2rem 0 6rem;
}

.legal-content .glass {
  padding: clamp(2rem, 5vw, 3.5rem);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  max-width: none;
}

.legal-content ul, .legal-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.legal-content a { border-bottom: 1px solid rgba(59, 169, 156, 0.3); }
.legal-content a:hover { border-bottom-color: var(--accent); }

/* --- Support Page --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.support-card {
  padding: 2rem;
  text-align: center;
}

.support-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.support-card h3 { margin-bottom: 0.5rem; }

.faq-item {
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(59, 169, 156, 0.15);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.35s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-light);
}

.faq-item[open] {
  border-color: rgba(59, 169, 156, 0.15);
}

.faq-item p {
  margin-top: 1rem;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger feature cards */
.feature-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- Divider --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), rgba(59, 169, 156, 0.3), var(--glass-border), transparent);
  margin: 0;
}

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

  .hero__desc { margin-left: auto; margin-right: auto; }

  .hero__actions { justify-content: center; }

  .hero__visual { order: -1; }

  .whale-container { width: 160px; height: 160px; }

  .nav__links { display: none; }

  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
}

@media (max-width: 600px) {
  .section { padding: 4rem 0; }

  .features-grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }

  .hero { padding: 6rem 0 3rem; }
}
