/* Ported from the Lovable project (src/styles.css + routes/index.tsx).
   Same colors, fonts, hero treatment and animations. */

:root {
  --radius: 0.25rem;
  --background: oklch(0.23 0.05 258);
  --foreground: oklch(0.96 0.02 90);
  --card: oklch(0.28 0.06 258);
  --primary: oklch(0.88 0.17 90);
  --primary-foreground: oklch(0.23 0.05 258);
  --secondary: oklch(0.32 0.07 258);
  --muted-foreground: oklch(0.75 0.03 258);
  --border: oklch(0.38 0.07 258);

  --container: 80rem;
  --display: "Bebas Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  /* scale up on large screens so the layout fills the page */
  font-size: clamp(16px, .45vw + 10px, 30px);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Barlow", sans-serif;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--primary); color: var(--primary-foreground); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: .75rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }

/* brand gold gradient (from the logo colours) */
.btn-gold { background: linear-gradient(120deg, #ffd700 0%, #ffad43 55%, #ff9500 100%); color: var(--primary-foreground); }

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, border-color .15s, color .15s;
}
.btn-sm { padding: .5rem 1.25rem; }
.btn-gold:hover { opacity: .9; }
.btn-outline { border: 1px solid color-mix(in oklab, var(--foreground) 40%, transparent); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; transition: padding .3s; }
.site-header.scrolled .header-inner { padding-block: .75rem; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--primary); border-bottom-color: var(--primary); }
.wordmark {
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark { display: block; }
.wordmark img { height: 5.5rem; width: auto; filter: url(#key-navy); transition: height .3s; }
.site-header.scrolled .wordmark img { height: 3.75rem; }
.hero-content { padding-top: 5rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 90vh; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--background) 10%, color-mix(in oklab, var(--background) 40%, transparent) 60%, transparent);
}
.hero-content { position: relative; }
.kicker {
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--primary);
}
.hero h1 { max-width: 42rem; font-size: 4.5rem; line-height: .9; }
.hero-lede { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.float-shuttle {
  position: absolute;
  right: 9%;
  top: 16%;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
}

@media (min-width: 48rem) {
  .hero h1 { font-size: 8rem; }
  .float-shuttle { width: 6rem; height: 6rem; }
}

/* ---------- sections ---------- */
.section { padding-block: 6rem; }
.band { background: var(--secondary); padding-block: 6rem; }

h2 { font-size: 3.75rem; line-height: 1; }
h3 { font-size: 1.875rem; line-height: 2.25rem; }
.section-lede { margin-top: 1rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.section-lede.tight { max-width: 32rem; }

.grid-3 { display: grid; gap: 1px; margin-top: 3rem; overflow: hidden; border-radius: .125rem; background: var(--border); }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--card); padding: 2rem; transition: transform .3s; }
.card:hover { transform: translateY(-.25rem); }
.card h3 { margin-top: 1rem; }
.card p { margin-top: .5rem; color: var(--muted-foreground); }
.icon { color: var(--primary); flex: none; }

/* steps: gold numerals instead of icons */
.steps { counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 3.75rem;
  line-height: 1;
  background: linear-gradient(120deg, #ffd700 0%, #ffad43 55%, #ff9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps .card h3 { margin-top: .5rem; }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 48rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.info-list { display: grid; gap: 1.5rem; align-content: start; }
.info-list li { display: flex; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.info-list .icon { margin-top: .25rem; }
.label { font-size: .875rem; line-height: 1.25rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.value { font-size: 1.25rem; line-height: 1.75rem; transition: color .15s; overflow-wrap: anywhere; }
a.value { text-decoration: none; }
a.value:hover { color: var(--primary); }

.sub { margin-top: .25rem; font-size: .95rem; color: var(--muted-foreground); }
.sub a { text-decoration: none; transition: color .15s; }
.sub a:hover { color: var(--primary); }

.socials { display: flex; gap: .75rem; margin-top: 2rem; }
.social { display: inline-flex; padding: .75rem; border: 1px solid var(--border); border-radius: 0; transition: border-color .15s, color .15s; }
.social:hover { border-color: var(--primary); color: var(--primary); }

.site-footer { padding: 2rem 1rem; text-align: center; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- animations (from Lovable) ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-slow { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes shuttle-drift {
  0%, 100% { transform: translate(0, 0) rotate(8deg); }
  50% { transform: translate(18px, -26px) rotate(-6deg); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 55%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--primary) 0%, transparent); }
}

.animate-hero-img { animation: zoom-slow 2.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-hero-item { animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-in { animation: fade-in 1.4s ease-out both; }
.float-shuttle { animation: shuttle-drift 6s ease-in-out infinite; }
.cta-pulse { animation: cta-pulse 2.4s ease-out 1.6s infinite; }

/* scroll reveal (only hidden once main.js has run) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-hero-img, .animate-hero-item, .animate-fade-in, .float-shuttle, .cta-pulse, .js .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* stagger delays (classes instead of inline styles, for the strict CSP) */
.animate-hero-item.d200 { animation-delay: 200ms; }
.animate-hero-item.d400 { animation-delay: 400ms; }
.animate-hero-item.d600 { animation-delay: 600ms; }
.animate-hero-item.d800 { animation-delay: 800ms; }
.js .reveal.d150 { transition-delay: 150ms; }

html { scroll-padding-top: 5rem; }

/* phone: nav drops to its own row under the logo */
@media (max-width: 48rem) {
  .header-inner { flex-wrap: wrap; row-gap: .5rem; padding-block: .9rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: .75rem; font-size: .95rem; }
  .site-nav .btn-sm { padding: .35rem .9rem; }
  .wordmark img, .site-header.scrolled .wordmark img { height: 4rem; }
  .hero-content { padding-top: 7rem; }
  html { scroll-padding-top: 7rem; }
}

@media (max-width: 48rem) {
  .float-shuttle { top: 30%; right: 4%; width: 4.5rem; height: 4.5rem; }
  .hero-img { object-position: 35% 50%; }
}

@media (max-width: 26rem) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
