/* ═══════════════════════════════════════════════════════════
   Inkspire — Landing Page Styles
   Brand color: #6c68cb  (purple / indigo)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Brand */
  --brand: #6c68cb;
  --brand-light: #8b88e0;
  --brand-dark: #534fb3;
  --brand-glow: rgba(108, 104, 203, 0.5);

  /* Surfaces */
  --bg: #0e0e12;
  --bg-card: #16161d;
  --bg-elevated: #1c1c26;
  --bg-section-alt: #111117;

  /* Text */
  --text: #e8e8ed;
  --text-muted: #9b9bac;
  --text-dim: #6a6a7e;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Sizing */
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }

.btn--primary {
  background: var(--brand-light);
  color: #fff;
  box-shadow: 0 0 28px var(--brand-glow), 0 0 56px rgba(108, 104, 203, 0.2);
}
.btn--primary:hover {
  background: var(--brand-light);
  box-shadow: 0 0 36px var(--brand-glow), 0 0 72px rgba(108, 104, 203, 0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand);
  color: #fff;
}

/* ── Pill badges ───────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.pill--soon {
  background: rgba(108, 104, 203, 0.15);
  color: var(--brand-light);
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav--scrolled {
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.nav__logo-img {
  display: block;
  height: auto;
}
.nav__logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--brand);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a.btn--primary { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.hero__platforms-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero__video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.preview-video.is-loaded {
  opacity: 1;
}
.preview-video.is-playing {
  opacity: 1;
}

.hero__video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
  font-size: 14px;
  transition: opacity 0.4s ease;
}
.hero__video-placeholder.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  padding: 120px 0;
}
.section--dark {
  background: var(--bg-section-alt);
}
.section--cta {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(108, 104, 203, 0.08) 50%, var(--bg) 100%);
  padding: 140px 0;
}

.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.section__title--xl {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.section__lead {
  text-align: center;
  font-size: 20px;
  margin-top: 48px;
  color: var(--text-muted);
}
.section__lead strong { color: #fff; }

/* ── Pain-Point Grid ───────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.3s var(--ease);
}
.pain-card:hover { border-color: var(--border-hover); }
.pain-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(108, 104, 203, 0.1);
  color: var(--brand-light);
}
.pain-card__icon svg { width: 20px; height: 20px; }
.pain-card p { color: var(--text-muted); font-size: 15px; }

/* ── Feature Grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(108, 104, 203, 0.1);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Split Layout ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__visual { order: -1; }

.mockup-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}
.mockup-placeholder--ai {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 104, 203, 0.06) 100%);
}

/* Theme toggle — pill segmented control */
.preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.theme-toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 2px);
  height: calc(100% - 6px);
  background: var(--brand);
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.theme-toggle.is-light .theme-toggle__slider {
  transform: translateX(100%);
}
.theme-toggle__btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.25s var(--ease);
  padding: 0;
  outline: none;
}
.theme-toggle__btn:focus { outline: none; }
.theme-toggle__btn:focus-visible { outline: none; }
.theme-toggle__btn.is-active {
  color: #fff;
}
.theme-toggle__btn svg {
  pointer-events: none;
}

/* Check list */
.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 700;
}
.check-list li strong { color: #fff; }

/* ── Methods Grid ──────────────────────────────────────── */
.methods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.method-pill {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.method-pill:hover {
  border-color: var(--brand);
  background: rgba(108, 104, 203, 0.08);
  transform: translateY(-2px);
}

/* ── Format pills ──────────────────────────────────────── */
.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}
.pill--format {
  background: rgba(108, 104, 203, 0.12);
  color: var(--brand-light);
  font-weight: 600;
  font-size: 13px;
}

/* ── Platforms Rows ─────────────────────────────────────── */
.platforms-rows {
  max-width: 880px;
  margin: 0 auto;
}

.platforms-row__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
  margin-top: 32px;
}
.platforms-row__label:first-child { margin-top: 0; }

.platforms-row {
  display: grid;
  gap: 20px;
}
.platforms-row--3 {
  grid-template-columns: repeat(3, 1fr);
}
.platforms-row--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 580px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.platform-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.platform-card__icon {
  margin: 0 auto 16px;
  color: var(--brand-light);
}
.platform-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.platform-card p { color: var(--text-muted); font-size: 14px; }

.platform-card--soon { opacity: 0.6; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-note {
  color: var(--text-dim);
  font-size: 14px;
}

.cta-alt-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.cta-alt-platforms__label {
  color: var(--text-dim);
}

.cta-alt-platforms__sep {
  color: var(--text-dim);
  opacity: 0.4;
}

.cta-alt-platforms__link {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.cta-alt-platforms__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}

.footer__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ── Scroll-reveal animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero__media { max-width: 100%; margin: 0 auto; padding: 0; }

  /* Break video out of container padding — near-viewport width */
  .hero__media .preview-box {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin-left: calc(-50vw + 50% + 24px);
    margin-right: auto;
    align-items: stretch;
  }
  .hero__video-wrap { max-width: none; width: 100%; }
  .hero__media .theme-toggle { align-self: center; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__visual { order: 0; }
  .split__visual { max-width: 560px; margin: 0 auto; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 100px 0 48px; }
  .hero__inner { gap: 32px; }

  /* Full-bleed video on phone — near edge with small inset */
  .hero__media .preview-box {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-left: calc(-50vw + 50% + 16px);
    margin-right: auto;
    align-items: stretch;
  }
  .hero__video-wrap {
    max-width: none;
    width: 100%;
    border-radius: 8px;
  }
  .hero__media .theme-toggle { align-self: center; }

  .section { padding: 80px 0; }
  .section--cta { padding: 100px 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(14, 14, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .platforms-row--3 { grid-template-columns: repeat(2, 1fr); }
  .platforms-row--2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
  .platforms-row--3,
  .platforms-row--2 { grid-template-columns: 1fr; }
}

/* ── Language Picker ─────────────────────────────────────── */
.lang-picker {
  position: relative;
  list-style: none;
}

.lang-picker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm, 6px);
  transition: opacity .2s;
  opacity: .8;
}
.lang-picker__toggle:hover {
  opacity: 1;
}

.lang-picker__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card, #16161d);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 200;
  overflow: hidden;
  padding: 4px;
}

.lang-picker__dropdown--open {
  display: flex;
  flex-direction: column;
}

.lang-picker__option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
  border-radius: 4px;
}
.lang-picker__option:hover {
  background: var(--bg-elevated, #1c1c26);
}
.lang-picker__option--active {
  background: rgba(139,136,224,.15);
}

.lang-picker__flag {
  width: 24px;
  height: 16px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Mobile: show language picker as inline row of flags (no dropdown) */
@media (max-width: 640px) {
  .lang-picker {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .lang-picker__toggle {
    display: none;
  }
  .lang-picker__dropdown {
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }
  .lang-picker__option {
    padding: 4px 6px;
  }
}
