/* NeverOverfit — neveroverfit.com
   Same light palette as the Fishdexia site and the app's V3 design system. */

:root {
  --bg-top: #f4f7f9;
  --bg-bottom: #e9f0f4;
  --card: #ffffff;
  --ink: #16242e;
  --text: #101d25;
  --text-2: #5b7382;
  --text-3: #93a7b3;
  --teal: #14b8a6;
  --aqua: #0e86a8;
  --deep-teal: #0e7490;
  --seafoam: #99f6e4;
  --orange: #f4520d;
  --cream: #faedd1;
  --line: rgba(16, 36, 46, 0.09);
  --shadow: 0 16px 34px -14px rgba(16, 36, 46, 0.24);
  --shadow-lg: 0 26px 50px -18px rgba(16, 36, 46, 0.3);
  --gutter: 24px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 15px 0; border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(16, 36, 46, .5);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 25px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn-primary { background: linear-gradient(135deg, var(--deep-teal), var(--aqua)); color: #fff; box-shadow: 0 12px 26px -10px rgba(14, 116, 144, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(14, 116, 144, .62); }
.btn-ghost { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 94svh; display: flex; align-items: center; overflow: hidden; }
#curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 247, 249, 0) 72%, var(--bg-top) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 140px 0 100px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--deep-teal); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,184,166,.7); animation: pulse 2.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(20,184,166,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); } }

.hero h1 { font-size: clamp(36px, 7.6vw, 84px); margin-top: 24px; max-width: 15ch; }
.grad { background: linear-gradient(104deg, var(--deep-teal) 6%, var(--teal) 34%, var(--aqua) 64%, var(--deep-teal) 92%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -240% 0; } }
.hero p.lede { margin-top: 24px; max-width: 54ch; color: var(--text-2); font-size: clamp(16px, 2.1vw, 19px); }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- sections ---------- */
section { position: relative; padding: clamp(76px, 11vw, 132px) 0; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua); font-weight: 600; margin-bottom: 13px; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); }
.section-head p { margin-top: 15px; color: var(--text-2); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; padding: 30px 26px 32px; border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); background: radial-gradient(340px circle at var(--mx,50%) var(--my,0%), rgba(20,184,166,.14), transparent 46%); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile:hover::before { opacity: 1; }
.tile .ic { color: var(--teal); display: block; margin-bottom: 16px; }
.tile h3 { font-size: 19px; margin-bottom: 9px; }
.tile p { color: var(--text-2); font-size: 15.5px; }

/* ---------- product ---------- */
.product {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 60px);
  align-items: center; overflow: hidden;
  padding: clamp(34px, 5vw, 56px); border-radius: 34px;
  background: linear-gradient(140deg, #dff2f7 0%, #ffffff 52%, #e6f8f4 100%);
  box-shadow: var(--shadow);
}
.product-copy { position: relative; z-index: 2; }
.product .kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--deep-teal); margin-bottom: 18px; }
.product .kicker img { width: 24px; height: 24px; border-radius: 6px; }
.product h3 { font-size: clamp(26px, 3.8vw, 40px); }
.product p { color: var(--text-2); margin-top: 16px; max-width: 46ch; }
.product .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.product .meta span { font-size: 12.5px; padding: 6px 13px; border-radius: 999px; color: var(--deep-teal); background: rgba(255,255,255,.8); box-shadow: 0 6px 14px -8px rgba(16,36,46,.35); }
.product .btn { margin-top: 30px; }
.product-art { position: relative; height: 260px; display: grid; place-items: center; }
.product-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-art .app-icon {
  position: relative; z-index: 2;
  width: clamp(112px, 14vw, 156px); height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 80, 180, 0.32));
  animation: bob 6.5s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.why-note { padding: 30px 32px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.why-note p + p { margin-top: 15px; }
.why-note .big { font-size: 21px; color: var(--text); font-weight: 600; letter-spacing: -0.015em; }
.why-note .m { color: var(--text-2); font-size: 16px; }

/* ---------- contact ---------- */
.band { position: relative; text-align: center; padding: clamp(52px, 8vw, 88px) var(--gutter); border-radius: 34px; overflow: hidden; background: linear-gradient(140deg, #e4f7f3 0%, #ffffff 50%, #dff0f6 100%); box-shadow: var(--shadow); }
.band h2 { font-size: clamp(27px, 4.3vw, 44px); max-width: 17ch; margin: 0 auto; }
.band p { color: var(--text-2); margin: 16px auto 0; max-width: 46ch; }
.band .btn { margin-top: 30px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 42px 0 54px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
footer a:hover { color: var(--aqua); }
.copy { font-size: 14px; color: var(--text-3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }

@media (max-width: 900px) {
  .trio { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-art { height: 190px; order: -1; }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .band, .product { border-radius: 24px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
