/* ═══════════════════════════════════════════════
   DIGITCA — styles.css v3
   ═══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --cream:    #F5F1E8;
  --solstice: #E27445;
  --ink:      #1A1610;
  --ink-80:   rgba(26, 22, 16, 0.80);
  --ink-12:   rgba(26, 22, 16, 0.12);
  --cream-20: rgba(245, 241, 232, 0.20);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans:    'Geist', 'Inter', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'Fira Code', 'Courier New', monospace;

  --container: 1200px;
  --gap:       clamp(2rem, 5vw, 4rem);

  --ss-radius: 38px;
  --ss-shadow: 0 40px 100px rgba(26,22,16,0.30), 0 8px 24px rgba(26,22,16,0.15);
  --ss-shadow-sm: 0 20px 60px rgba(26,22,16,0.24), 0 4px 12px rgba(26,22,16,0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ─── TYPOGRAPHY SCALE ─── */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--solstice);
}
.label--light { color: rgba(245,241,232,0.55); }

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  font-variation-settings: 'wght' 700, 'SOFT' 60, 'WONK' 0;
  letter-spacing: -0.02em;
}

.section-body {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-80);
  max-width: 42ch;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), opacity 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--solstice);
  color: #fff;
  box-shadow: 0 4px 20px rgba(226,116,69,0.4);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(226,116,69,0.5); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-12);
}
.btn--ghost:hover { border-color: rgba(26,22,16,0.3); background: rgba(26,22,16,0.04); }

.btn--full { width: 100%; justify-content: center; margin-top: 1.5rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }

/* ─── SCROLL REVEAL ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  background: rgba(245,241,232,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--ink-12);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'SOFT' 70, 'WONK' 0;
  letter-spacing: -0.01em;
}
.nav-logo img {
  border-radius: 7px;
  width: 28px;
  height: 28px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: 'wght' 800, 'SOFT' 70, 'WONK' 0;
}
.hero-headline em {
  font-style: italic;
  color: var(--solstice);
  font-variation-settings: 'wght' 800, 'SOFT' 70, 'WONK' 1;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-80);
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-platform {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-80);
  letter-spacing: 0.06em;
}

/* Screenshot presentation */
.hero-screens {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: min(70vh, 600px);
}

.ss-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
}
.ss-frame {
  border-radius: var(--ss-radius);
  overflow: hidden;
  box-shadow: var(--ss-shadow);
}
.ss-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ss-wrap--front {
  transform: translate(-55%, -50%) rotate(-3deg);
  z-index: 2;
  width: clamp(160px, 17vw, 230px);
}
.ss-wrap--front .ss-frame {
  aspect-ratio: 660 / 1000;
}

.ss-wrap--back {
  transform: translate(-10%, -48%) rotate(5deg);
  z-index: 1;
  width: clamp(140px, 15vw, 200px);
}
.ss-wrap--back .ss-frame {
  aspect-ratio: 660 / 1000;
}
.ss-wrap--back .ss-frame {
  box-shadow: var(--ss-shadow-sm);
}

/* Standalone tilt variants used in feature sections */
.ss-frame--tilt-l {
  transform: rotate(-3.5deg);
  box-shadow: var(--ss-shadow);
}
.ss-frame--tilt-r {
  transform: rotate(3.5deg);
  box-shadow: var(--ss-shadow);
}

/* ─── TICKER ─── */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 0.875rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(245,241,232,0.08);
  border-bottom: 1px solid rgba(245,241,232,0.08);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0 0.9rem;
}
.ticker-track .dot {
  color: var(--solstice);
  padding: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FEATURE SECTIONS ─── */
.feature { padding: clamp(4rem, 10vh, 8rem) 0; }

.feature--dark {
  background: var(--ink);
  color: var(--cream);
}
.feature--dark .section-body { color: rgba(245,241,232,0.65); }
.feature--dark .feature-list li { color: rgba(245,241,232,0.80); }
.feature--dark .feature-list li::before { color: var(--solstice); }

.feature--light { background: var(--cream); }

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.feature-list li {
  font-size: 0.9375rem;
  color: var(--ink-80);
  padding-left: 1.25rem;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--solstice);
  font-size: 0.8125rem;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.feature-visual .ss-frame {
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 660 / 1200;
  overflow: hidden;
}
.feature-visual .ss-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-visual--right { order: 1; }
.feature-visual--left  { order: -1; }

/* NLP floating badges */
.nlp-badge {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.nlp-expr {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--ink-12);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  box-shadow: 0 4px 16px rgba(26,22,16,0.10);
  white-space: nowrap;
}

/* Export format tags */
.export-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.format-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink-12);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  color: var(--ink-80);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.format-tag:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ─── THEMES ─── */
.themes {
  background: var(--ink);
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.themes-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.themes-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: 'wght' 800, 'SOFT' 60, 'WONK' 0;
}
.themes-sub {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.45);
  margin-top: 0.75rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  width: 100%;
}
.theme-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: default;
}
.theme-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out), filter 0.3s;
  filter: brightness(0.9);
}
.theme-tile::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,232,0);
  background: linear-gradient(to top, rgba(26,22,16,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
}
.theme-tile:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}
.theme-tile:hover::after {
  opacity: 1;
  color: rgba(245,241,232,0.9);
}

/* ─── PRICING ─── */
.pricing {
  padding: clamp(4rem, 10vh, 8rem) 0;
  background: var(--cream);
}
.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'wght' 700, 'SOFT' 60, 'WONK' 0;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}
.pricing-card {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--ink-12);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.pricing-card:hover {
  box-shadow: 0 16px 48px rgba(26,22,16,0.10);
}
.pricing-card--premium {
  background: var(--ink);
  border-color: transparent;
  color: var(--cream);
}
.pricing-card--premium .pricing-features li { color: rgba(245,241,232,0.75); }
.pricing-card--premium h3 { color: var(--cream); }
.pricing-card--premium .price { color: rgba(245,241,232,0.6); }
.pricing-card-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--solstice);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card-top { margin-bottom: 1.5rem; }
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'SOFT' 50, 'WONK' 0;
  margin-bottom: 0.25rem;
}
.price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-80);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-features li {
  font-size: 0.9375rem;
  color: var(--ink-80);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--solstice);
  font-size: 0.8125rem;
  font-weight: 700;
}
.pricing-card--premium .pricing-features li::before { color: var(--solstice); }

/* ─── VALUES ─── */
.values {
  background: var(--ink);
  padding: clamp(4rem, 10vh, 7rem) 0;
  color: var(--cream);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.value-item { display: flex; flex-direction: column; gap: 0.75rem; }
.value-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--solstice);
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'SOFT' 50, 'WONK' 0;
  color: var(--cream);
}
.value-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(245,241,232,0.6);
}

/* ─── CTA FINAL ─── */
.cta-final {
  background: var(--cream);
  padding: clamp(5rem, 12vh, 10rem) 0;
  text-align: center;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: 'wght' 800, 'SOFT' 70, 'WONK' 0;
}
.cta-headline em {
  font-style: italic;
  color: var(--solstice);
  font-variation-settings: 'wght' 800, 'SOFT' 70, 'WONK' 1;
}
.cta-sub {
  font-size: 1.0625rem;
  color: var(--ink-80);
  max-width: 36ch;
}
.cta-platform {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(26,22,16,0.45);
  margin-top: -0.5rem;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  padding: 2rem 0;
  border-top: 1px solid rgba(245,241,232,0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'SOFT' 70, 'WONK' 0;
  color: var(--cream);
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(245,241,232,0.5);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245,241,232,0.35);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-sub  { max-width: 100%; }
  .hero-screens {
    height: min(50vw, 340px);
    order: -1;
  }
  .ss-wrap--front { width: clamp(120px, 24vw, 180px); }
  .ss-wrap--back  { width: clamp(100px, 20vw, 150px); }

  .feature-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-text { align-items: center; }
  .section-body { max-width: 100%; }
  .feature-list { align-items: center; }
  .feature-visual--left,
  .feature-visual--right { order: -1; }
  .nlp-badge { display: none; }

  .themes-grid { grid-template-columns: repeat(4, 1fr); }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

@media (max-width: 560px) {
  .themes-grid { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-screens { height: min(60vw, 280px); }
  .ss-wrap--front { width: clamp(110px, 30vw, 160px); }
  .ss-wrap--back  { width: clamp(90px, 26vw, 130px); }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .theme-tile img { transition: none; }
}
