/* ============================================================
   SeeGet Landing Page — Apple-style CSS
   ============================================================ */

/* ----- Variables ----- */
:root {
  --bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ======================== LOADER ======================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

#loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

#loader-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s ease;
}

#loader-percent {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ======================== HEADER ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--text-primary);
}

/* ----- Hamburger ----- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ----- Language Toggle ----- */
#lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--text-secondary);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lang-separator {
  opacity: 0.4;
}

.lang-option {
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.lang-option.lang-active {
  font-weight: 600;
  color: var(--text-primary);
}

/* ======================== HERO ======================== */
.hero-standalone {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
}

.hero-standalone h1 {
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-standalone h1 .word {
  display: inline-block;
  margin-right: 0.15em;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.5;
}

.hero-standalone .cta-button {
  margin-top: 40px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ======================== CANVAS ======================== */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ======================== DARK OVERLAY ======================== */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
}

/* ======================== MARQUEE ======================== */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.marquee-text {
  font-size: 12vw;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.04;
  color: var(--text-primary);
  will-change: transform;
}

/* ======================== SCROLL CONTAINER ======================== */
#scroll-container {
  position: relative;
  height: 800vh;
  z-index: 2;
}

/* ======================== SCROLL SECTIONS ======================== */
.scroll-section {
  position: absolute;
  width: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  top: 0;
  will-change: opacity, transform;
}

.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
  justify-content: flex-start;
}

.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
  justify-content: flex-start;
}

.section-inner {
  max-width: 40vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 16px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ======================== STATS (Section 002) ======================== */
.section-stats {
  justify-content: center;
  padding-left: 5vw;
  padding-right: 5vw;
}

.section-inner-stats {
  max-width: 80vw;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-prefix,
.stat-suffix {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-note {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ======================== JOURNEY PHASES ======================== */
.journey-phases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.journey-phase {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.journey-phase h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.journey-phase p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ======================== SECTION SPLIT (Sections 005, 008) ======================== */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-split-visual .visual-img {
  width: 100%;
  display: block;
}

/* ======================== CAPABILITY VISUAL (Section 006) ======================== */
.capability-visual {
  margin: 40px 0 16px;
}

.capability-img {
  width: 100%;
  display: block;
}


/* ======================== VISION WORDS ======================== */
.vision-words {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.vision-word {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ======================== MAGIC STEPS (Section 005) ======================== */
.magic-steps {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.magic-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.magic-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.magic-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.magic-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ======================== CAPABILITIES (Section 006) ======================== */
.section-capabilities {
  justify-content: center;
  padding-left: 5vw;
  padding-right: 5vw;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

/* Center the lone 13th item (spans full row, same width as siblings) */
.capabilities-grid .capability:last-child:nth-child(4n+1) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(25% - 9px);
}
.capability {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  cursor: default;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, color 0.4s ease;
  transform-style: preserve-3d;
}
.capability:hover {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
  transform: perspective(800px) rotateY(5deg) rotateX(-3deg) translateY(-3px);
}


/* ======================== PLATFORM LIST (Section 007) ======================== */
.platform-group-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 28px;
  margin-bottom: 4px;
}
.platform-group-title:first-of-type {
  margin-top: 24px;
}
.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.platform-tag {
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ======================== ECOSYSTEM (Section 008) ======================== */
.ecosystem-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.ecosystem-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ecosystem-category {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ecosystem-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ======================== CTA ======================== */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: #005bb5;
  transform: scale(1.02);
}

.cta-link {
  display: block;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.cta-link:hover {
  opacity: 0.7;
}

/* ======================== ZONE 2: STATIC CONTENT SECTIONS ======================== */
#content-sections {
  position: relative;
  z-index: 3;
  background: var(--bg);
}

.static-section {
  padding: 120px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.static-section + .static-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.static-inner {
  max-width: 680px;
}

.static-inner-wide {
  max-width: 1000px;
  margin: 0 auto;
}

/* Dark section (capabilities) */
.static-section-dark {
  background: #1d1d1f;
  max-width: 100%;
  padding: 120px 5vw;
}

.static-section-dark + .static-section {
  border-top: none;
}

.static-section + .static-section-dark {
  border-top: none;
}

.static-section-dark .static-inner-wide {
  max-width: 1000px;
  margin: 0 auto;
}

/* ======================== FOOTER ======================== */
.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ======================== SKIP LINK ======================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ======================== FOCUS VISIBLE ======================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ======================== COOKIE BANNER ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 5vw;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.cookie-btn-accept:hover {
  background: #005bb5;
  border-color: #005bb5;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.cookie-btn-decline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ======================== DEMO FORM (Section 009) ======================== */
.demo-intro {
  margin-top: 8px;
  margin-bottom: 40px;
}

.demo-form {
  margin-top: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #d70015;
}

.form-error {
  font-size: 0.8rem;
  color: #d70015;
  min-height: 18px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.cta-button[disabled],
.cta-button.loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Success state */
.demo-success {
  margin-top: 40px;
  text-align: center;
  padding: 56px 0 24px;
}

.demo-success-icon {
  width: 64px;
  height: 64px;
  background: #34c759;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.demo-success h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.demo-success p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ======================== MOBILE (<768px) ======================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 5vw;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .header-nav.open {
    display: flex;
  }

  .hero-standalone h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .align-left,
  .align-right {
    padding: 0 5vw;
  }

  .section-inner {
    max-width: 90vw;
    padding: 24px;
  }

  .section-inner-stats {
    max-width: 90vw;
    padding: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .marquee-text {
    font-size: 18vw;
  }

  #scroll-container {
    height: 500vh;
  }

  .vision-words {
    gap: 24px;
  }

  .vision-word {
    font-size: 1.4rem;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid .capability:last-child:nth-child(4n+1) {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-split-reverse .section-split-visual {
    order: -1;
  }

  .static-section {
    padding: 80px 5vw;
  }

  .static-section-dark {
    padding: 80px 5vw;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
