:root {
  --blue: #2B5FF6;
  --blue-dark: #1E46C4;
  --navy: #0B1233;
  --navy-soft: #131B45;
  --off-white: #F8FAFF;
  --white: #FFFFFF;
  --gray: #5B6280;
  --border: #E4E9FA;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(11, 18, 51, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(43, 95, 246, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { color: var(--navy); opacity: 0.75; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: inline-flex; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(43, 95, 246, 0.35), transparent 60%), var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(43, 95, 246, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 22px 0 34px;
}
.text-accent { color: #6C93FF; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-banner-img {
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* About */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-copy p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 520px;
}
.about-copy h2 { margin-top: 4px; }

@media (max-width: 880px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-copy p { margin-left: auto; margin-right: auto; }
}

/* Section head */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }

/* Modules */
.modules { padding: 40px 0 100px; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.module-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue);
  background: rgba(43, 95, 246, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.module-card p { color: var(--gray); margin-top: 8px; font-size: 0.95rem; }

@media (max-width: 880px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* Potential banner */
.potential { padding: 0 0 100px; }
.potential img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
}

/* Pricing */
.pricing { padding: 0 0 110px; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card-featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 24px 60px rgba(11, 18, 51, 0.28);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 14px; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price-term { font-size: 0.95rem; color: var(--gray); }
.price-card-featured .price-term { color: rgba(255, 255, 255, 0.65); }
.price-desc { color: var(--gray); font-size: 0.95rem; margin-bottom: 28px; min-height: 44px; }
.price-card-featured .price-desc { color: rgba(255, 255, 255, 0.75); }
.price-card-featured .btn-primary { background: var(--blue); }

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

/* Contact */
.contact { padding: 0 0 110px; }
.contact-inner { max-width: 560px; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 95, 246, 0.14);
}

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo { height: 26px; width: auto; }
.footer-social { display: flex; gap: 28px; font-weight: 600; font-size: 0.92rem; }
.footer-social a { opacity: 0.8; transition: opacity 0.15s ease; }
.footer-social a:hover { opacity: 1; color: #6C93FF; }
.footer-copy { font-size: 0.82rem; opacity: 0.55; }

/* Scroll reveal — hidden only once JS confirms it can reveal them, so content
   never gets stuck invisible if JS is slow, blocked, or errors. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance — a quick one-time animation on page load, not scroll-triggered,
   so the first thing a visitor sees never sits blank while JS boots up. Pure CSS,
   so it plays immediately regardless of script load time. Staggered per element
   for a more premium feel without ever delaying legibility. */
.hero-copy > * {
  opacity: 0;
  animation: hero-fade-in 0.7s ease both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

.hero-enter {
  opacity: 0;
  animation: hero-fade-in-scale 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in-scale {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .hero-enter, .hero-copy > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mid-page repeated CTA */
.mid-cta {
  margin-top: 56px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.mid-cta p {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 560px) {
  .mid-cta { flex-direction: column; text-align: center; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
