:root {
  --orange: #F28401;
  --orange-light: #F5A13E;
  --orange-tint: #FFF1DF;
  --blue: #C2D9EC;
  --blue-deep: #6E9BC4;
  --blue-dark: #3E6690;
  --blue-tint: #ECF3F8;
  --terrain-1: #272e33;
  --terrain-2: #3f4c53;
  --terrain-3: #647881;
  --ink: #101014;
  --ink-soft: #3A3D45;
  --muted: #666b76;
  --paper: #ffffff;
  --border: #e6e8ec;
  --shadow: 0 10px 40px -12px rgba(16,16,20,0.18);
  --ease: cubic-bezier(.16,1,.3,1);
}

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; color: var(--muted); line-height: 1.6; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* film-grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 22px 0;
}
.nav.scrolled {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand img { height: 34px; display: block; transition: height .35s var(--ease); }
.brand-large img { height: 72px; }
.nav.scrolled .brand-large img { height: 52px; }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a { position: relative; color: var(--ink-soft); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  padding: 24px 32px 28px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn-small { padding: 10px 20px; font-size: 14px; margin-left: 8px; }
.btn-large { padding: 18px 38px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(242,132,1,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(242,132,1,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  margin-left: 14px;
}
.btn-ghost:hover { border-color: var(--blue-deep); background: var(--blue-tint); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.3); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 130px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-terrain {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 40%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, black 45%, transparent 97%);
  mask-image: linear-gradient(to top, black 45%, transparent 97%);
}
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(1px);
}
.wave-1 { fill: var(--terrain-1); }
.wave-2 { fill: var(--terrain-2); opacity: 0.85; }
.wave-3 { fill: var(--terrain-3); opacity: 0.55; }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 28% 92%, rgba(242,132,1,0.55), transparent 70%),
    radial-gradient(ellipse 40% 35% at 75% 88%, rgba(245,161,62,0.3), transparent 70%);
  mix-blend-mode: screen;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.06;
  color: var(--ink);
}
.rotator-wrap { display: inline-block; vertical-align: top; }
.rotator {
  display: inline-block;
  color: var(--blue-dark);
  font-style: italic;
  position: relative;
}
.hero-sub {
  font-size: 18px;
  margin: 26px auto 0;
  max-width: 560px;
}
.hero-cta { margin-top: 38px; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-cue span {
  width: 1px; height: 36px;
  background: linear-gradient(var(--border), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--orange);
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline { 0% { top: -100%; } 60%,100% { top: 100%; } }
.scroll-cue p { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- MARQUEE ---------- */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--blue-tint);
  padding: 20px 0;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: scroll-left 26s linear infinite;
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--blue-dark);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--orange); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 120px 0; }
.section-tint { background: var(--blue-tint); }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 620px;
  margin-top: 10px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  max-width: 540px;
  margin-top: 18px;
}

/* ---------- FEATURE CARDS ---------- */
.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-orange { background: var(--orange-tint); color: var(--orange); }
.icon-blue { background: var(--blue-tint); color: var(--blue-dark); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; }

/* ---------- SPLIT / WHY ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 26px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.check { color: var(--orange); font-weight: 800; }

.split-visual { position: relative; height: 420px; }
.visual-ring {
  position: absolute; inset: 0;
  border: 1.5px dashed var(--blue-deep);
  border-radius: 50%;
  opacity: 0.35;
  margin: auto;
  width: 320px; height: 320px;
  animation: spin 40s linear infinite;
}
.ring-2 { width: 220px; height: 220px; animation-duration: 30s; animation-direction: reverse; border-color: var(--orange-light); }
.visual-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  animation: bob 6s ease-in-out infinite;
}
.card-float-1 { top: 10%; left: 4%; animation-delay: 0s; }
.card-float-2 { top: 44%; right: 2%; animation-delay: -2s; }
.card-float-3 { bottom: 8%; left: 18%; animation-delay: -4s; }
.dotpulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242,132,1,0.6);
  animation: pulse 2s infinite;
}
.dotpulse.blue { background: var(--blue-deep); box-shadow: 0 0 0 0 rgba(110,155,196,0.6); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,132,1,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(242,132,1,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,132,1,0); }
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.timeline-line {
  position: absolute;
  top: -34px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--blue-deep));
  transition: width 1.4s var(--ease);
}
.timeline-step { position: relative; }
.step-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--blue);
  -webkit-text-stroke: 1.5px var(--blue-deep);
  margin-bottom: 14px;
}
.timeline-step h3 { font-size: 19px; margin-bottom: 10px; }
.timeline-step p { font-size: 14.5px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, #23242b 55%, var(--blue-dark) 150%);
  padding: 100px 0;
  text-align: center;
}
.cta-shine {
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(242,132,1,0.25), transparent 30%);
  animation: spin 14s linear infinite;
}
.cta-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(28px,4vw,42px); }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 16px auto 32px; max-width: 480px; font-size: 16px; }

/* ---------- CONTACT ---------- */
.contact-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-wrap .section-sub { margin-left: auto; margin-right: auto; }
.contact-wrap .btn { margin-top: 34px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-brand img { height: 58px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 220px; }
.footer-links { display: flex; gap: 26px; font-weight: 600; font-size: 14px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; }
.footer-bottom p { font-size: 13px; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .split-visual { height: 320px; order: -1; }
  .timeline { grid-template-columns: repeat(2,1fr); row-gap: 40px; }
  .timeline-line { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .btn-small { display: none; }
  .nav-burger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
