:root {
  --navy-950: #040d21;
  --navy-900: #081a3d;
  --navy-700: #0f3a8a;
  --blue-500: #2563eb;
  --sky-300: #7cc4ff;
  --ice: #eaf2ff;
  --text: #0b1b3a;
  --muted: #5b6b8c;
  --white: #ffffff;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(37, 99, 235, .45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(124, 196, 255, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  display: flex;
  flex-direction: column;
  padding: 90px 24px 0;
}

/* ===== NAV ===== */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 0 24px;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  transition: padding .35s;
}
.nav-wrap.scrolled {
  background: rgba(8, 26, 61, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-wrap.scrolled .nav { padding: 8px 0; }

/* LOGO (sukat base sa WIDTH) */
.logo { display: block; flex-shrink: 0; text-decoration: none; }
.logo img {
  display: block;
  width: 240px;
  height: auto;
  max-width: none;
}

.nav-cta {
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  transition: .25s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--white); color: var(--navy-900); }

/* ===== HERO CONTENT ===== */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 80px;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sky-300);
  font-weight: 600;
  margin-bottom: 22px;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.accent {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: .62em;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--sky-300), #ffffff, var(--sky-300));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 38px;
  padding: 18px 38px;
  background: linear-gradient(135deg, var(--blue-500), #1d4ed8);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(37, 99, 235, .6); }
.btn:active { transform: scale(.97); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.8s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -80% } 100% { left: 140% } }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 48px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
}
.trust li::before { content: "✓"; color: var(--sky-300); margin-right: 8px; font-weight: 700; }

/* ===== MOTION LAYER ===== */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-300));
  transform-origin: left; transform: scaleX(0);
  z-index: 100;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  will-change: transform; pointer-events: none;
}
.orb-1 {
  width: 420px; height: 420px; top: -80px; right: -120px;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  animation: float1 14s ease-in-out infinite;
}
.orb-2 {
  width: 360px; height: 360px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, var(--sky-300), transparent 70%);
  opacity: .3;
  animation: float2 18s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-40px, 50px) } }
@keyframes float2 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(50px, -40px) } }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
              transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 12px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--sky-300); border-radius: 3px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(12px) } }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .hero { padding: 80px 20px 0; }
  .hero-inner { padding-bottom: 56px; }
  .btn { width: 100%; text-align: center; }
  .logo img { width: 175px; }
  .nav-cta { padding: 9px 18px; font-size: .85rem; }
  .orb { filter: blur(50px); }
  .orb-1 { width: 280px; height: 280px; }
  .orb-2 { width: 240px; height: 240px; }
  .nav-wrap { padding: 0 20px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
/* ===== WHY ASIALINK ===== */
.why {
  position: relative;
  padding: 120px 24px;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(124, 196, 255, .18), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, #ffffff 100%);
}
.wrap { max-width: 1120px; margin: 0 auto; }

.eyebrow-dark {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.why h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--navy-900);
  max-width: 20ch;
}
.grad {
  background: linear-gradient(90deg, var(--blue-500), var(--navy-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid rgba(15, 58, 138, .10);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(8, 26, 61, .04), 0 12px 32px rgba(8, 26, 61, .06);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, .12), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 2px 4px rgba(8, 26, 61, .05), 0 24px 48px rgba(37, 99, 235, .16);
}
.card:hover::before { opacity: 1; }

.icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--blue-500);
  background: linear-gradient(145deg, var(--ice), #dbe8ff);
  margin-bottom: 24px;
}
.icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.card p { color: var(--muted); line-height: 1.7; }

/* Featured card (pinakamataas na hierarchy) */
.card.featured {
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(124, 196, 255, .35), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-color: rgba(124, 196, 255, .25);
}
.card.featured h3 { color: var(--white); }
.card.featured p { color: rgba(255, 255, 255, .75); }
.card.featured .icon {
  color: var(--sky-300);
  background: rgba(255, 255, 255, .10);
}

.why-cta { margin-top: 56px; text-align: center; }
.why-cta .btn { margin-top: 0; }

@media (max-width: 760px) {
  .why { padding: 80px 20px; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .card { padding: 30px 24px; }
}
/* ===== STICKY NAV FIX ===== */
.nav-wrap {
  transition: background .35s, box-shadow .35s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.logo img { transition: width .35s ease; }

.nav-wrap.scrolled {
  background: rgba(6, 20, 48, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 196, 255, .14);
  box-shadow: 0 8px 24px rgba(4, 13, 33, .25);
}
.nav-wrap.scrolled .nav { padding: 6px 0; }
.nav-wrap.scrolled .logo img { width: 150px; }
.nav-wrap.scrolled .nav-cta { padding: 8px 18px; font-size: .85rem; }

.nav-wrap.hide { transform: translateY(-100%); }

@media (max-width: 600px) {
  .nav-wrap.scrolled .logo img { width: 115px; }
  .nav-wrap.scrolled .nav-cta { padding: 7px 15px; font-size: .8rem; }
}
/* ===== HERO -> WHY TRANSITION ===== */
.hero-inner { will-change: transform, opacity; transform-origin: 50% 0; }
.scroll-hint { bottom: 72px; }

.why {
  z-index: 3;
  margin-top: -48px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -24px 60px rgba(4, 13, 33, .35);
}
.why::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 90px; height: 4px; margin-left: -45px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-300));
  opacity: .7;
}

/* Heading salita-por-salita */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.wi {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 70ms + .1s);
}
.split.in .wi { transform: none; }
.split .grad { background: none; color: inherit; }
.wi.g {
  background: linear-gradient(90deg, var(--blue-500), var(--navy-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 760px) {
  .why { margin-top: -36px; border-radius: 28px 28px 0 0; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wi { transform: none; }
}
/* ===== CTA / FORM ===== */
.cta {
  position: relative;
  overflow: hidden;
  z-index: 4;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding: 120px 24px 100px;
  color: var(--white);
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(37, 99, 235, .45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(124, 196, 255, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
}
.orb-3 {
  width: 380px; height: 380px; top: 20%; left: -140px;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  opacity: .35; animation: float2 16s ease-in-out infinite;
}
.cta-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.accent2 {
  display: block;
  background: linear-gradient(90deg, var(--sky-300), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-copy > p {
  margin-top: 20px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
}
.steps { list-style: none; margin-top: 36px; display: grid; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 16px; color: rgba(255, 255, 255, .85); }
.steps b {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .95rem;
  color: var(--sky-300);
  background: rgba(124, 196, 255, .12);
  border: 1px solid rgba(124, 196, 255, .3);
}

/* Form card (glass) */
.form {
  position: relative;
  overflow: hidden;
  padding: 40px 36px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(2, 8, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.form h3 {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

/* Floating label fields */
.field { position: relative; display: block; margin-bottom: 16px; }
.field input, .field select {
  width: 100%;
  height: 58px;
  padding: 22px 18px 6px;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(4, 13, 33, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field span {
  position: absolute; left: 18px; top: 19px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
  transition: all .2s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--sky-300);
  background: rgba(4, 13, 33, .65);
  box-shadow: 0 0 0 4px rgba(124, 196, 255, .15);
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field select:focus + span,
.field select:valid + span {
  top: 9px; font-size: .72rem; color: var(--sky-300); letter-spacing: .3px;
}
.field select option { color: #0b1b3a; }
.field.select::after {
  content: "";
  position: absolute; right: 20px; top: 24px;
  width: 8px; height: 8px;
  border-right: 2px solid rgba(255, 255, 255, .6);
  border-bottom: 2px solid rgba(255, 255, 255, .6);
  transform: rotate(45deg);
  pointer-events: none;
}
.field.error input, .field.error select {
  border-color: #ff6b81;
  box-shadow: 0 0 0 4px rgba(255, 107, 129, .15);
}

.form .submit {
  width: 100%;
  margin-top: 8px;
  padding: 19px;
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
}
.note { margin-top: 14px; text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* Success state */
.success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  opacity: 0; pointer-events: none;
  transform: scale(.96);
  transition: opacity .5s, transform .5s;
}
.form.done .success { opacity: 1; pointer-events: auto; transform: none; }
.check {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--sky-300), #fff);
  margin-bottom: 18px;
}
.success h4 { font-size: 1.5rem; margin-bottom: 8px; }
.success p { color: rgba(255, 255, 255, .75); }

.foot {
  position: relative; z-index: 4;
  padding: 28px 24px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  background: var(--navy-950);
}

@media (max-width: 860px) {
  .cta { padding: 80px 20px 70px; border-radius: 28px 28px 0 0; margin-top: -28px; }
  .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .form { padding: 30px 22px; }
}
/* ===== FIELD LABEL FIX ===== */
.field span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 36px);
}
/* ===== CONSENT + LEGAL ===== */
.consent {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 4px 0 18px;
  font-size: .82rem; line-height: 1.5;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}
.consent input {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--blue-500);
}
.consent span { position: static; pointer-events: auto; white-space: normal; max-width: none; font-size: .82rem; color: inherit; }
.consent a { color: var(--sky-300); text-decoration: underline; }
.consent.error { color: #ff9aa8; }

.foot div + div { margin-top: 6px; }
.foot-links a { color: rgba(255,255,255,.65); text-decoration: none; }
.foot-links a:hover { color: var(--sky-300); }

.legal-body { background: var(--white); }
.legal-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
}
.legal-top img { width: 170px; height: auto; display: block; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--navy-900); max-width: none; margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; font-size: .9rem; }
.legal h2 { font-size: 1.2rem; color: var(--navy-900); margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal p { color: #33415f; line-height: 1.8; margin-bottom: 10px; }