/* ============================================================
   CALOTYPE — Marketing Site
   Colors: #000 bg · #CC5C19 accent · #F4EFE9 text
   ============================================================ */

:root {
  --bg:          #000000;
  --bg-alt:      #0a0a0a;
  --accent:      #CC5C19;
  --accent-glow: rgba(204, 92, 25, 0.18);
  --text:        #F4EFE9;
  --text-dim:    rgba(244, 239, 233, 0.55);
  --text-dimmer: rgba(244, 239, 233, 0.28);
  --border:      rgba(244, 239, 233, 0.07);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --hero-size:   clamp(3.75rem, 11.5vw, 10rem);
  --h2-size:     clamp(2.25rem, 6vw, 5.25rem);
  --body-size:   1.0625rem;

  --pad-section: clamp(5rem, 10vw, 9rem);
  --pad-x:       clamp(1.25rem, 5vw, 3.5rem);
  --max-w:       1180px;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.00, 0.00, 0.20, 1.00);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1.00);
}

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

/* ── Scroll progress bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 300;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-logo .accent { color: var(--accent); }

.nav-app-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-app-name .accent { color: var(--accent); }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dimmer);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.nav-back:hover { color: var(--text); }
.nav-back svg { flex-shrink: 0; transition: transform 0.2s var(--ease); }
.nav-back:hover svg { transform: translateX(-3px); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.nav-pill:hover { opacity: 0.82; transform: translateY(-1px); }

/* ── Download CTA (text-stroke fill animation) ── */
.dl-button {
  --border-right: 5px;
  --text-stroke-color: rgba(255, 255, 255, 0.55);
  --animation-color: #CC5C19;
  --fs-size: 1.125rem;
  display: inline-block;
  letter-spacing: 0.15em;
  text-decoration: none !important;
  font-size: var(--fs-size);
  font-family: var(--font-display);
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  line-height: 1.4;
}
.dl-button .hover-text {
  position: absolute;
  box-sizing: border-box;
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
  white-space: nowrap;
}
.dl-button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 18px var(--animation-color));
}

/* ── Reveal system ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.10s; }
[data-reveal][data-delay="2"] { transition-delay: 0.20s; }
[data-reveal][data-delay="3"] { transition-delay: 0.32s; }
[data-reveal][data-delay="4"] { transition-delay: 0.46s; }
[data-reveal][data-delay="5"] { transition-delay: 0.62s; }

/* ── Shared layout ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--pad-x) 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 105%, rgba(204,92,25,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* CSS film grain — no external image */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 2rem;
  position: relative;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  position: relative;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 2.75rem;
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 44px rgba(204, 92, 25, 0.45);
}

/* Parallax wrapper */
.hero-device-parallax { position: relative; }

.hero-device {
  width: min(268px, 62vw);
  margin: 0 auto;
  animation: phone-float 7s ease-in-out infinite;
  position: relative;
}
.hero-device img {
  width: 100%;
  border-radius: 40px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.75),
    0  0    0  1px rgba(255, 255, 255, 0.065),
    0 24px  60px rgba(204, 92, 25, 0.18);
}
.hero-device-glow {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 56px;
  background: radial-gradient(ellipse, rgba(204,92,25,0.45) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-13px); }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  white-space: nowrap;
  user-select: none;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
}

/* ============================================================
   FEATURE SPLIT SECTIONS
   ============================================================ */
.section-feature {
  padding: var(--pad-section) var(--pad-x);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.split.flip          { direction: rtl; }
.split.flip > *      { direction: ltr; }

.split-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.125rem;
}
.split-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.split-h2 em {
  color: var(--accent);
  font-style: normal;
}
.split-body {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 420px;
  margin-bottom: 2rem;
}
.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}
.split-list li::before {
  content: '~';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.split-device img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 36px;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.65),
    0  0    0  1px rgba(255, 255, 255, 0.065);
}

/* ============================================================
   PHILOSOPHY — full‑bleed dark
   ============================================================ */
#philosophy {
  padding: var(--pad-section) var(--pad-x);
  background: var(--bg-alt);
  text-align: center;
}
.philosophy-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 1.5rem;
}
.philosophy-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.philosophy-sub {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.philosophy-body {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.82;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 3rem;
}
.philosophy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid rgba(204, 92, 25, 0.32);
  color: var(--text);
  border-radius: 100px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.tag:hover {
  border-color: var(--accent);
  background: rgba(204, 92, 25, 0.08);
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   FLASH SECTION — centered
   ============================================================ */
#flash {
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}
.flash-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.flash-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.flash-sub {
  font-size: clamp(1.25rem, 2.75vw, 1.875rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3.5rem;
}
.flash-device {
  width: min(256px, 58vw);
  margin: 0 auto;
  animation: phone-float 8s ease-in-out infinite;
  animation-delay: 1.2s;
}
.flash-device img {
  width: 100%;
  border-radius: 36px;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.65),
    0  0    0  1px rgba(255, 255, 255, 0.065);
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
#download {
  padding: calc(var(--pad-section) * 1.6) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(ellipse, rgba(204,92,25,0.12) 0%, transparent 68%);
  pointer-events: none;
}
.download-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
}
.download-h2 span { color: var(--accent); }

.download-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  position: relative;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text);
  color: #000;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 1.1rem 2.6rem;
  border-radius: 100px;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.btn-store:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 55px rgba(244, 239, 233, 0.22);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem var(--pad-x) 1.75rem;
  text-align: center;
}

.studio-footer-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 239, 233, 0.28);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.4s var(--ease);
}
.studio-footer-link:hover { color: rgba(244, 239, 233, 0.75); }

.studio-underline {
  width: 108%;
  height: 18px;
  overflow: visible;
}
.studio-underline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-small {
  font-size: 0.75rem;
  color: var(--text-dimmer);
}
.footer-small a {
  color: var(--text-dimmer);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-small a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.75rem;
  }
  .split.flip { direction: ltr; }
  .split-body { max-width: 100%; }
  .split-list  { text-align: left; display: inline-flex; }
  .split-device img { max-width: 230px; }
}

@media (max-width: 480px) {
  nav { padding: 1.1rem var(--pad-x); }
}
