:root {
  --navy: #0E1B34;
  --navy-2: #13254A;
  --navy-3: #1A2F5C;
  --line: rgba(255, 255, 255, .08);
  --pink: #F2338F;
  --pink-2: #FF6FB5;
  --sky: #5BB8E8;
  --white: #F7F8FC;
  --muted: #A9B6D3;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  font-family: 'Kanit', system-ui, sans-serif;
  font-weight: 300;
  background: var(--navy);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.pink { color: var(--pink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }

.kicker {
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 500 1rem 'Kanit', sans-serif; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 10px 30px -10px rgba(242, 51, 143, .7); }
.btn-pink:hover { background: #ff3f9b; box-shadow: 0 14px 36px -10px rgba(242, 51, 143, .9); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .22); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 6px 16px; font-size: .88rem; }

/* Brand */
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 400; letter-spacing: .02em; }
.brand img { border-radius: 50%; }
.brand b { color: var(--pink); font-weight: 600; }

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { color: #fff; padding: 9px 20px; font-size: .95rem; }

/* Hero */
.hero { --pb: 110px; position: relative; padding: 88px 0 var(--pb); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 80% 30%, rgba(242, 51, 143, .22), transparent 70%),
    radial-gradient(600px 400px at 10% 80%, rgba(91, 184, 232, .12), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(91, 184, 232, .1); border: 1px solid rgba(91, 184, 232, .3);
  color: var(--sky); font-size: .88rem; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(242, 51, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 51, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 51, 143, 0); } }
.hero h1 { margin: 22px 0 20px; font-size: clamp(2.6rem, 4.6vw, 4.1rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.04; text-wrap: balance; }
.hero h1 .pink { white-space: nowrap; }
@media (min-width: 900px) { .hero h1 .line { display: block; white-space: nowrap; } }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Phone mockup */
.hero-phone { position: relative; justify-self: center; }
.phone {
  width: 290px; aspect-ratio: 9 / 18.5; padding: 10px;
  background: #050B18; border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 90px -20px rgba(242, 51, 143, .45), inset 0 0 0 2px #1d2a45;
  transform: rotate(4deg);
  transition: transform .5s var(--ease);
}
.hero-phone:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone-screen {
  height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(165deg, #1A2F5C 0%, #0E1B34 55%, #3a1033 100%);
}
.short-ui { height: 100%; display: flex; flex-direction: column; padding: 34px 22px 22px; }
.short-tag { align-self: flex-start; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.short-hook { margin-top: 18px; font-size: 1.55rem; font-weight: 600; line-height: 1.05; text-transform: uppercase; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 12px; padding: 24px 4px 12px; }
.bar {
  flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: var(--pink); position: relative;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 10px;
  transform-origin: bottom; animation: grow 1.1s var(--ease) both;
}
.bar.sky { background: var(--sky); animation-delay: .12s; }
.bar.white { background: var(--white); color: var(--navy); animation-delay: .24s; }
.bar span { font-weight: 600; font-size: 1.1rem; }
.bar em { font-style: normal; font-size: .72rem; font-weight: 500; opacity: .85; }
@keyframes grow { from { transform: scaleY(0); } }
.short-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; }
.short-meta img { border-radius: 50%; }
.floaty {
  position: absolute; left: -44px; bottom: 56px; border-radius: 50%;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Mascot: stands behind the bottom edge of the hero, so the cropped legs read as intentional */
.mascot {
  position: absolute; z-index: 2; bottom: calc(var(--pb) * -1); right: 26%;
  width: 260px; pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite;
}
.mascot img { width: 100%; height: auto; }
@keyframes sway { 50% { transform: rotate(1.6deg); } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-sub { color: var(--muted); max-width: 560px; font-size: 1.05rem; }
.link-arrow { color: var(--sky); font-weight: 500; }
.link-arrow:hover { color: var(--white); }

/* Shorts grid */
.shorts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.short-card {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.short-card:hover { transform: translateY(-4px); border-color: rgba(242, 51, 143, .5); }
.short-card iframe { width: 100%; height: 100%; border: 0; }
.short-card video { width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.short-placeholder {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  background: var(--g);
}
.short-placeholder .num { font-size: 4rem; font-weight: 600; line-height: 1; opacity: .18; }
.short-placeholder h3 { font-size: 1.3rem; font-weight: 600; text-transform: uppercase; line-height: 1.05; }
.short-placeholder .soon { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
}

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.res-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.res-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); border-color: rgba(91, 184, 232, .4); }
.res-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(91, 184, 232, .12); border: 1px solid rgba(91, 184, 232, .25); color: var(--sky); }
.res-card { position: relative; }
.res-soon { position: absolute; top: 20px; right: 20px; padding: 3px 11px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.res-type { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.res-type.live { color: var(--pink); }
.res-card p { color: var(--muted); font-size: .95rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-copy h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
@media (min-width: 900px) { .calc-copy h2 { white-space: nowrap; } }
.calc-controls { display: grid; gap: 26px; margin-top: 36px; }
.calc-controls label { display: grid; gap: 10px; font-weight: 400; color: var(--muted); grid-template-columns: 1fr auto; }
.calc-controls output { font-weight: 600; color: var(--white); }
.calc-controls input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--navy-3); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); border: 3px solid var(--white); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); border: 3px solid var(--white); cursor: grab; }
.calc-result {
  padding: 40px; border-radius: 28px;
  background: radial-gradient(400px 260px at 100% 0%, rgba(242, 51, 143, .25), transparent 70%), var(--navy-2);
  border: 1px solid var(--line);
}
.calc-label { color: var(--muted); font-weight: 400; }
.calc-total { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 600; line-height: 1.1; margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
.calc-label b { color: var(--white); font-weight: 600; }
.calc-sub { color: var(--muted); margin-bottom: 26px; }
.race { display: grid; gap: 18px; }
.race-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.race-top b { color: var(--white); font-weight: 600; }
.race-track { height: 14px; border-radius: 99px; background: var(--navy-3); overflow: hidden; }
.race-fill { height: 100%; border-radius: 99px; transition: width .4s var(--ease); }
.race-fill.early { background: var(--pink); }
.race-fill.late { background: var(--white); }
.catchup { margin: 24px 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(91, 184, 232, .1); border: 1px solid rgba(91, 184, 232, .3); color: var(--muted); font-size: .95rem; }
.catchup b { color: var(--sky); font-weight: 600; }
.fine { font-size: .8rem; color: #7d8bab; }

/* Newsletter */
.news {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px;
  background: linear-gradient(120deg, #F2338F 0%, #c21f73 100%);
  box-shadow: 0 40px 80px -30px rgba(242, 51, 143, .6);
}
.news .kicker { color: rgba(255, 255, 255, .8); }
.news h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.news p { margin-top: 14px; color: rgba(255, 255, 255, .88); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input {
  flex: 1 1 220px; padding: 15px 20px; border-radius: 999px; border: 0;
  font: 400 1rem 'Kanit', sans-serif; color: var(--navy); outline: none;
}
.news-form input:focus { box-shadow: 0 0 0 3px rgba(14, 27, 52, .4); }
.news-form .btn-pink { background: var(--navy); color: #fff; box-shadow: none; }
.news-form .btn-pink:hover { background: #07101f; }
.soon-pill { display: inline-block; margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; vertical-align: middle; }
.form-msg { flex-basis: 100%; font-size: .9rem; min-height: 1.4em; margin-top: 4px; }

/* About */
.about { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.about img { border-radius: 50%; box-shadow: 0 30px 70px -20px rgba(242, 51, 143, .5); }
.about p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
@media (min-width: 900px) {
  .about > div { width: fit-content; }
  .about h2 { white-space: nowrap; font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
  .about p { width: 0; min-width: 100%; }
}

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer .wrap { width: min(1400px, 100% - 32px); }
.foot { display: flex; align-items: center; justify-content: center; gap: 28px; }
.foot .brand { flex: none; }
.foot-btns { flex: none; display: flex; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .22); color: var(--white); transition: border-color .2s, color .2s, transform .1s; }
.icon-btn:hover { border-color: var(--white); }
.icon-btn:active { transform: scale(.94); }
.icon-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.icon-pink:hover { background: #ff3f9b; border-color: #ff3f9b; }
.disclaimer { flex: 0 1 auto; max-width: 900px; font-size: .82rem; line-height: 1.6; color: #7d8bab; text-wrap: balance; }
.disclaimer b { color: var(--muted); font-weight: 500; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .calc, .news { grid-template-columns: minmax(0, 1fr); }
  .mascot { width: 220px; right: 6%; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .phone { width: 260px; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { margin-top: 20px; }
}
@media (max-width: 700px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { --pb: 72px; padding: 56px 0 var(--pb); }
  .section { padding: 72px 0; }
  .news { padding: 32px 22px; }
  .calc-result { padding: 28px 22px; }
  .about { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .nav { gap: 16px; }
  .site-header .brand span { display: none; }
  .about img { width: 140px; height: 140px; }
  .res-grid { grid-template-columns: 1fr; }
  .shorts-grid { gap: 12px; }
  .short-placeholder h3 { font-size: 1rem; }
  .mascot { width: 170px; right: -2%; }
}
@media (max-width: 340px) {
  .phone { width: min(260px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
h2 + .section-sub { margin-top: 16px; }
