/* ========================== OKLCH Design Tokens ========================== */
/* NOTE: Color values are now imported from generated_colors.css */
/* Source: lib/config/design_tokens.dart */
/* Generator: tool/generate_css_colors.dart */
/* DO NOT edit values here - modify design_tokens.dart and regenerate */

@import 'generated_colors.css';

/* Additional CSS-only gradients and animations that use OKLCH values directly */
:root {
  /* Gradient animation values - these are not in DesignTokens as they are
   * multi-step gradients used only in CSS animations */
  --gradient-1: oklch(0.7 0.32 330);
  --gradient-2: oklch(0.68 0.2 350);
  --gradient-3: oklch(0.83 0.17 85);
  --gradient-4: oklch(0.93 0.22 105);
  --gradient-5: oklch(0.9 0.22 125);
  --gradient-6: oklch(0.88 0.2 145);
  --gradient-7: oklch(0.88 0.16 160);
  --gradient-8: oklch(0.9 0.13 175);
  --gradient-9: oklch(0.91 0.12 185);
  --gradient-10: oklch(0.91 0.13 190);
  --gradient-11: oklch(0.91 0.14 192);
  --font-omnes-stack: 'Omnes', 'Omnes Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ========================== @font-face ========================== */
@font-face {
  font-family: 'Omnes Fallback';
  src: local('Avenir Next Regular'), local('Avenir Next'), local('Avenir Book'), local('Avenir'), local('Segoe UI'), local('Arial');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  size-adjust: 106%;
  ascent-override: 92%;
  descent-override: 40%;
  line-gap-override: 10%;
}

@font-face {
  font-family: 'Omnes Fallback';
  src: local('Avenir Next Demi Bold'), local('Avenir Next Bold'), local('Avenir Heavy'), local('Segoe UI Bold'), local('Arial Bold');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 40%;
  line-gap-override: 10%;
}

@font-face {
  font-family: 'Omnes';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Omnes';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Omnes';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Omnes';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Omnes';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Omnes';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Omnes-Black.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* =================== Animated Gradient Title ==================== */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.gradient-title {
  background: linear-gradient(90deg,
      oklch(0.7 0.32 330),
      oklch(0.68 0.2 350),
      oklch(0.83 0.17 85),
      oklch(0.93 0.22 105),
      oklch(0.9 0.22 125),
      oklch(0.88 0.2 145),
      oklch(0.88 0.16 160),
      oklch(0.9 0.13 175),
      oklch(0.91 0.12 185),
      oklch(0.91 0.13 190),
      oklch(0.91 0.14 192),
      oklch(0.9 0.1721 195),
      oklch(0.7 0.32 330));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s linear infinite;
}

/* =================== Animated CTA Button ======================== */
@keyframes cta-gradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.cta-button {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 16px;
  font-family: var(--font-omnes-stack);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-black);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg,
      oklch(0.7 0.32 330),
      oklch(0.68 0.2 350),
      oklch(0.83 0.17 85),
      oklch(0.93 0.22 105),
      oklch(0.9 0.22 125),
      oklch(0.88 0.2 145),
      oklch(0.88 0.16 160),
      oklch(0.9 0.13 175),
      oklch(0.91 0.12 185),
      oklch(0.91 0.13 190),
      oklch(0.91 0.14 192),
      oklch(0.9 0.1721 195),
      oklch(0.7 0.32 330));
  background-size: 200% auto;
  animation: cta-gradient 8s linear infinite;
  box-shadow: 0 4px 24px var(--c-aqua-25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.5px;
  will-change: transform, box-shadow;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-aqua-35);
}

.cta-button:active {
  transform: translateY(0);
}

/* =================== Hero Entrance Animation ==================== */
@keyframes entrance-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .landing-title {
  animation: entrance-reveal 400ms cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 150ms;
}

.hero-content .subtitle:not(.subtitle-secondary) {
  animation: entrance-reveal 400ms cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 270ms;
}

.hero-content .subtitle-secondary {
  animation: entrance-reveal 400ms cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 390ms;
}

.hero-content .waitlist-shell {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  will-change: auto;
  transform: none;
  contain: paint;
}

body.globe-ready .hero-side-guide {
  animation: entrance-reveal 400ms cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 00ms;
  visibility: visible;
}

body.globe-zoomed .hero-side-guide {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 150ms ease-in-out;
}

/* =================== Nav link transitions (Shuffles-inspired) === */
.nav-link {
  display: inline-block;
  transition: none;
}

.nav-link:active {
  transform: none;
}

/* =================== i18n fade transition ======================= */
[data-i18n],
[data-i18n-ph],
.waitlist-shell,
.hero-side-guide,
.contact-form-shell {
  transition: opacity 150ms ease-in-out;
}

html.i18n-transitioning [data-i18n],
html.i18n-transitioning [data-i18n-ph],
html.i18n-transitioning .waitlist-shell,
html.i18n-transitioning .hero-side-guide,
html.i18n-transitioning .contact-form-shell {
  opacity: 0 !important;
}

/* =================== Route-driven Pages ========================= */
.page {
  display: none !important;
  transition: opacity 75ms ease-in-out;
}

html:not([data-page]) .globe-canvas,
html[data-page="home"] .globe-canvas {
  display: block;
  opacity: 1;
  filter: none;
  transform: scale(1);
  pointer-events: auto;
}

html[data-page="our-vision"] .globe-canvas,
html[data-page="contact"] .globe-canvas,
html[data-page="support-us"] .globe-canvas,
html[data-page="privacy-policy"] .globe-canvas,
html[data-page="terms-of-service"] .globe-canvas {
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
}

html.page-transitioning .page {
  opacity: 0 !important;
}

html:not([data-page]) .page-home,
html[data-page="home"] .page-home {
  display: flex !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
}

body {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
}

html[data-page="our-vision"] .page-vision,
html[data-page="contact"] .page-contact,
html[data-page="support-us"] .page-support-us,
html[data-page="privacy-policy"] .page-privacy-policy,
html[data-page="terms-of-service"] .page-terms-of-service {
  display: block !important;
}

html:not([data-page]) .nav-home,
html[data-page="home"] .nav-home,
html[data-page="our-vision"] .nav-vision,
html[data-page="contact"] .nav-contact,
html[data-page="support-us"] .nav-support,
html[data-page="privacy-policy"] .nav-privacy {
  color: var(--c-cyan) !important;
  text-shadow: 0 0 12px var(--c-cyan-glow);
}

.brand-bar a {
  pointer-events: auto;
}

.info-page {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + clamp(8px, 2.5vw, 24px) + clamp(28px, 8vw, 84px) + 12px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 24px 24px calc(env(safe-area-inset-bottom, 0px) + 96px);
}

.page-vision.info-page,
.page-contact.info-page,
.page-support-us.info-page,
.page-privacy-policy.info-page,
.page-terms-of-service.info-page {
  min-height: auto;
}

html[data-page="our-vision"] .page-vision.info-page {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.info-page-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---- Vision Page ---- */
.vision-page {
  padding-top: 0 !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 48px) !important;
}

.vision-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.vision-hero {
  text-align: center;
  padding: 24px 24px 24px;
}

.vision-hero-title {
  font-family: var(--font-omnes-stack);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 600;
  color: var(--c-white);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.vision-hero-subtitle {
  font-family: var(--font-omnes-stack);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--c-text-hint);
  margin: 0 auto;
  max-width: 560px;
}

.vision-section {
  padding: 48px 0;
}

.vision-section-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.vision-section-reverse .vision-section-inner {
  flex-direction: row-reverse;
}

.vision-section-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-section-text {
  flex: 1;
}

.vision-section-reverse .vision-section-text {
  text-align: right;
}

.vision-section-title {
  font-family: var(--font-omnes-stack);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.vision-section-copy {
  font-family: var(--font-omnes-stack);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0;
}

.vision-section-image {
  width: 100%;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px oklch(0 0 0 / 0.5));
}

/* iPhone mockup */
.vision-iphone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: oklch(0.15 0 0);
  border: 12px solid oklch(0.15 0 0);
  border-radius: 2.2rem;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.5);
  flex-shrink: 0;
}

.vision-iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 16px;
  background: oklch(0.15 0 0);
  border-radius: 0 0 0.8rem 0.8rem;
  z-index: 20;
}

.vision-iphone-btn-left-1 {
  position: absolute;
  left: -15px;
  top: 108px;
  width: 3px;
  height: 40px;
  background: oklch(0.15 0 0);
  border-radius: 3px 0 0 3px;
}

.vision-iphone-btn-left-2 {
  position: absolute;
  left: -15px;
  top: 154px;
  width: 3px;
  height: 40px;
  background: oklch(0.15 0 0);
  border-radius: 3px 0 0 3px;
}

.vision-iphone-btn-right {
  position: absolute;
  right: -15px;
  top: 124px;
  width: 3px;
  height: 56px;
  background: oklch(0.15 0 0);
  border-radius: 0 3px 3px 0;
}

.vision-iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 1.8rem;
  overflow: hidden;
  background: oklch(0.97 0 0);
  position: relative;
  z-index: 10;
}

.vision-iphone-embed {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: oklch(0.97 0 0);
  padding: 20px;
  text-align: center;
}

.vision-iphone-label {
  font-family: var(--font-omnes-stack);
  font-size: 14px;
  font-weight: 500;
  color: oklch(0.55 0 0);
  margin: 0 0 4px;
}

.vision-iphone-id {
  font-family: monospace;
  font-size: 12px;
  color: oklch(0.65 0 0);
  margin: 0;
}

@media (max-width: 800px) {
  .vision-section-inner,
  .vision-section-reverse .vision-section-inner {
    flex-direction: column;
  }

  .vision-section {
    padding: 24px 0;
  }

  .vision-section-text {
    text-align: center;
  }

  .vision-section-reverse .vision-section-text {
    text-align: center;
  }

  .vision-hero {
    text-align: center;
  }

  .vision-iphone-mockup {
    width: 220px;
    height: 440px;
    border-width: 10px;
  }

  .vision-iphone-notch {
    width: 108px;
    height: 14px;
  }
}

.page-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-faint);
  border-radius: 32px;
  box-shadow: 0 32px 120px var(--c-shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(24px, 4vw, 40px);
}

.page-card-wide {
  max-width: 980px;
}

.page-kicker {
  margin: 0 0 12px;
  color: var(--c-aqua-88);
  font-family: var(--font-omnes-stack);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 20px;
  color: var(--c-white);
  font-family: var(--font-omnes-stack);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
}

.page-copy {
  margin: 0 0 18px;
  max-width: 760px;
  color: var(--c-text-muted);
  font-family: var(--font-omnes-stack);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.page-copy-compact {
  margin-bottom: 0;
  font-size: 16px;
}

.page-section-title {
  margin: 0 0 10px;
  color: var(--c-white);
  font-family: var(--font-omnes-stack);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.vision-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--c-border-ghost);
  background: var(--c-glass-bg);
}

.contact-page-card {
  max-width: 1120px;
}

.contact-page-copy {
  max-width: 100%;
  margin-bottom: 28px;
}

.secondary-cta {
  min-width: 188px;
  text-align: center;
}

/* =================== Responsive ================================= */
@media (max-width: 800px) {
  .hero-layout {
    justify-content: center !important;
    align-items: flex-end !important;
    padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 160px) !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 560px !important;
    text-align: center !important;
    align-items: center !important;
    margin-top: auto !important;
    justify-content: flex-end !important;
  }

  .vision-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-copy {
    font-size: 16px;
  }
}

/* ===== Mobile info-page adjustments ===== */
@media (max-width: 768px) {
  .info-page {
    top: calc(env(safe-area-inset-top, 0px) + clamp(8px, 2.5vw, 24px) + clamp(22px, 6vw, 42px) + 12px);
    padding: 20px 20px calc(env(safe-area-inset-bottom, 0px) + 80px);
  }

  .page-title {
    font-size: clamp(28px, 7vw, 48px);
  }
}
