@import 'style.css';

/* ── Animations (landing-page only) ─────────────────── */
@keyframes marqueeTick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeFwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes orbPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-50%) scale(1.08); opacity: 1; }
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(240, 235, 226, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo { width: 28px; height: 28px; object-fit: contain; }
.nav__name { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.02em; }
.nav__cta {
  background: var(--text);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-full);
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav__cta:hover { opacity: 0.78; transform: scale(1.02); }

/* ══ HERO ════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 75% 45%, rgba(107, 123, 94, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 25% 75%, rgba(168, 102, 60, 0.05) 0%, transparent 60%),
    var(--bg);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.hero__orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 40% 35%,
    rgba(107, 123, 94, 0.12),
    rgba(168, 102, 60, 0.06) 50%,
    transparent 70%
  );
  filter: blur(40px);
  animation: orbPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.hero__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin-bottom: 44px;
}
.hero__headline {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__subcopy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero__screenshot {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border-radius: var(--r-xl);
  filter:
    drop-shadow(0 40px 80px rgba(44, 40, 32, 0.15))
    drop-shadow(0 10px 24px rgba(44, 40, 32, 0.08));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero__screenshot:hover { transform: translateY(-6px) rotate(1deg); }

/* ══ MARQUEE ═════════════════════════════════════════ */
.marquee { background: var(--dark); padding: 0; overflow: hidden; }
.marquee__row {
  padding: 12px 0;
  border-top: 1px solid rgba(245, 240, 232, 0.05);
}
.marquee__row:first-child { border-top: none; }
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track--fwd { animation: marqueeFwd 40s linear infinite; }
.marquee__track--rev { animation: marqueeRev 40s linear infinite; }
.marquee__track:not(.marquee__track--fwd):not(.marquee__track--rev) {
  animation: marqueeTick 32s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.28);
  flex-shrink: 0;
}
.marquee__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ══ PREVIEW ═════════════════════════════════════════ */
.preview { background: var(--dark); padding: 120px 0 128px; }
.preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
}
.preview__headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.preview__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.preview__subcopy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream-55);
  max-width: 280px;
  text-align: right;
  flex-shrink: 0;
}
.preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.preview-item { display: flex; flex-direction: column; gap: 16px; }
.preview-item--center { transform: translateY(-40px); }
.preview-img {
  width: 100%;
  display: block;
  border-radius: var(--r-lg);
  filter:
    drop-shadow(0 32px 64px rgba(0, 0, 0, 0.4))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.preview-img:hover {
  transform: translateY(-4px);
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}
.preview-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--cream-30);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ══ MOMENT ══════════════════════════════════════════ */
.moment {
  padding: 120px 0;
  background: var(--bg-3);
  text-align: center;
}
.moment__inner { max-width: 720px; margin: 0 auto; }
.moment__line {
  display: block;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.moment__line--em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 32px;
}
.moment__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ══ PILLARS ══════════════════════════════════════════ */
.pillars {
  background: var(--bg);
  padding-block: var(--section);
}
.pillars__hd { margin-bottom: clamp(48px, 7vw, 88px); }
.pillars__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 80px;
}
.pillars__hl {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 2px;
}
.pillars__hl em { font-style: italic; font-weight: 300; color: var(--sage); }

.pillar {
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 96px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid rgba(44, 40, 32, 0.09);
  align-items: start;
}
.pillar:last-of-type { border-bottom: 1px solid rgba(44, 40, 32, 0.09); }
.pillar__num {
  display: block;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  color: rgba(44, 40, 32, 0.07);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 4px;
  transition: color 0.5s ease;
  user-select: none;
}
.pillar.in .pillar__num { color: rgba(44, 40, 32, 0.13); }
.pillar__content { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.pillar__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pillar__body {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 560px;
}

/* ══ FORM SECTION ════════════════════════════════════ */
.form-section {
  background: var(--dark);
  padding: 128px 0 140px;
  position: relative;
  overflow: hidden;
}
.form-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  right: -200px;
  top: -100px;
  background: radial-gradient(circle, rgba(107, 123, 94, 0.08), transparent 65%);
  pointer-events: none;
}
.form-block { max-width: 640px; position: relative; z-index: 1; }
.form-headline {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.form-headline em { font-style: italic; font-weight: 300; color: var(--accent); }
.form-subcopy {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cream-55);
  margin-bottom: 48px;
  max-width: 480px;
}
.form-row { display: flex; gap: 10px; margin-bottom: 12px; }
.form-input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  background: var(--cream-07);
  border: 1.5px solid var(--cream-14);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: var(--cream-30); }
.form-input:focus { border-color: var(--sage); background: rgba(245, 240, 232, 0.08); }
.form-input.has-error { border-color: var(--color-error); }
.form-error {
  font-size: 13px;
  color: #E08080;
  padding-left: 20px;
  min-height: 18px;
  margin-bottom: 4px;
}
.form-privacy { font-size: 12px; color: var(--cream-30); margin-top: 14px; }
.form-success { display: flex; flex-direction: column; gap: 18px; }
.success-check {
  width: 52px;
  height: 52px;
  background: rgba(107, 123, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-headline {
  font-size: 44px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}
.success-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream-55);
  max-width: 400px;
}

/* ══ SOCIAL ══════════════════════════════════════════ */
.social {
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(44, 40, 32, 0.08);
}
.social__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.social__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  flex-shrink: 0;
}
.social__links { display: flex; gap: 12px; }
.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(44, 40, 32, 0.12);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social__link svg { width: 16px; height: 16px; }
.social__link:hover {
  color: var(--dark);
  border-color: rgba(44, 40, 32, 0.28);
  background: rgba(44, 40, 32, 0.04);
}

/* ══ FOOTER ══════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  padding-block: 32px;
  border-top: 1px solid rgba(44, 40, 32, 0.08);
}
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.footer__logo { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.footer__name { font-size: 14px; font-weight: 700; color: var(--dark); letter-spacing: -0.01em; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__link { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer__link:hover { color: var(--dark); }
.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(44, 40, 32, 0.07);
  margin-top: 4px;
}

/* ══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__subcopy { max-width: 100%; }
  .hero__screenshot { max-width: 260px; }
  .hero__orb { display: none; }
  .preview__header,
  .pillars__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .preview__subcopy,
  .pillars__note { text-align: left; max-width: 100%; }
  .pillar-row { grid-template-columns: 64px 1fr; gap: 0 28px; }
  .pillar-body { grid-column: 2; }
  .moment__line { font-size: clamp(28px, 4vw, 44px); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 100px 0 72px; min-height: auto; }
  .hero__screenshot { max-width: 220px; border-radius: var(--r-lg); }
  .preview { padding: 80px 0 88px; }
  .preview__grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 8px;
  }
  .preview__grid::-webkit-scrollbar { display: none; }
  .preview-item { scroll-snap-align: center; flex-shrink: 0; width: 68vw; }
  .preview-item--center { transform: none; }
  .pillar-row { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .pillar-body { grid-column: 1; }
  .moment { padding: 80px 0; }
  .moment__line { font-size: clamp(26px, 7vw, 40px); }
  .form-section { padding: 88px 0 100px; }
  .form-row { flex-direction: column; }
  .form-row .btn-fill { width: 100%; justify-content: center; }
  .social__inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer__copy { text-align: left; }
  .pillars__head { margin-bottom: 48px; }
  .pillars { padding: 80px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { gap: 14px; }
}
