/* Dazlight — shared design system */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --bg: oklch(0.125 0.02 300);
  --bg-elevated: oklch(0.16 0.022 300);
  --bg-soft: oklch(0.18 0.024 300);
  --line: oklch(1 0 0 / 0.08);
  --line-strong: oklch(1 0 0 / 0.14);
  --text: oklch(0.97 0.005 300);
  --text-muted: oklch(0.64 0.015 300);
  --text-dim: oklch(0.5 0.012 300);
  --accent: oklch(0.78 0.14 290);
  --accent-soft: oklch(0.7 0.12 280);
  --shift: oklch(0.78 0.15 65);
  --vestly: oklch(0.72 0.15 155);
  --grad: linear-gradient(120deg, oklch(0.72 0.15 220), oklch(0.62 0.2 300), oklch(0.66 0.22 340));
  --font-display: 'Syne', 'Helvetica Neue', sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: oklch(0.55 0.18 290 / 0.45);
  color: white;
}

a { color: var(--accent); transition: color 0.2s ease; }
a:hover { color: oklch(0.86 0.12 290); }

img { max-width: 100%; height: auto; display: block; }

/* ——— Typography ——— */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* ——— Buttons ——— */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease, box-shadow 0.35s ease;
}

.btn-primary {
  background: var(--grad);
  color: oklch(0.1 0.01 300);
  box-shadow: 0 12px 40px -16px oklch(0.55 0.2 300 / 0.7);
}

.btn-primary:hover {
  color: oklch(0.1 0.01 300);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px -14px oklch(0.55 0.22 300 / 0.85);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: oklch(1 0 0 / 0.28);
  background: oklch(1 0 0 / 0.04);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active { transform: translateY(0); }

/* ——— Motion: page enter ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -8px) rotate(1deg); }
  66% { transform: translate(-8px, 6px) rotate(-1deg); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes shotRise {
  from { opacity: 0; transform: translateY(40px) rotate(var(--shot-rot, 0deg)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--shot-rot, 0deg)); }
}

.reveal {
  animation: fadeUp 0.9s var(--ease-out) both;
}

.reveal-scale {
  animation: scaleIn 1s var(--ease-out) both;
}

.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }
.reveal-d5 { animation-delay: 0.4s; }

/* Scroll-triggered */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="scale"] {
  transform: scale(0.94) translateY(20px);
}

[data-reveal="scale"].is-in {
  transform: scale(1) translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-28px);
}

[data-reveal="left"].is-in {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(28px);
}

[data-reveal="right"].is-in {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, [data-reveal], .float-y, .glow-pulse, .drift-slow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .media-slot--constellation:hover .media-slot__img {
    transform: none !important;
  }
}

.float-y { animation: floatY 6s ease-in-out infinite; }
.glow-pulse { animation: pulseGlow 5s ease-in-out infinite; }
.drift-slow { animation: drift 18s ease-in-out infinite; }

/* ——— Media slots (images optional until generated) ——— */
.media-slot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, oklch(0.4 0.12 290 / 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 80%, oklch(0.35 0.1 220 / 0.25), transparent 50%),
    oklch(0.14 0.02 300);
}

.media-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-slot__img[data-missing="true"] {
  display: none;
}

.media-slot--hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media-slot--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.125 0.02 300 / 0.35) 0%, oklch(0.125 0.02 300 / 0.75) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 0%, oklch(0.125 0.02 300 / 0.5) 100%);
  pointer-events: none;
}

.media-slot--maker {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  min-height: 320px;
}

.media-slot--privacy {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  min-height: 280px;
}

.media-slot--constellation {
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9;
  max-height: 340px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  overflow: hidden;
}

.media-slot--constellation .media-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-in-out;
}

.media-slot--constellation:hover .media-slot__img {
  transform: scale(1.03);
}

.media-slot--shiftwise-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media-slot--shiftwise-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.125 0.02 300 / 0.45) 0%, oklch(0.125 0.02 300 / 0.78) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 40%, oklch(0.55 0.12 65 / 0.12), transparent 60%);
  pointer-events: none;
}

.maker-name {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.ideas-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, oklch(0.17 0.024 300), oklch(0.145 0.02 300));
  border: 1px solid var(--line);
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 16px 12px;
  animation: fadeUp 0.7s var(--ease-out) both;
}

.form-success__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: oklch(0.2 0.02 150);
  background: linear-gradient(145deg, oklch(0.78 0.14 155), oklch(0.68 0.16 170));
  box-shadow: 0 12px 36px -12px oklch(0.65 0.15 155 / 0.55);
  animation: scaleIn 0.55s var(--ease-out) both;
}

.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-success p {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}


/* ——— Layout helpers ——— */
.page {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px 100px;
  box-sizing: border-box;
}

.section__head {
  margin-bottom: 40px;
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

/* Readable text stays on the same left edge — never centered narrower columns */
.section__prose {
  max-width: 40rem;
}

.section-narrow {
  /* deprecated: keep alias for safety, same as .section */
  max-width: var(--max);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  font-family: var(--font-body);
}

.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.cred-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cred-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 12px var(--accent);
}

/* Principle / trust cards */
.rule-card {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.rule-card:hover {
  border-top-color: oklch(0.7 0.14 290 / 0.45);
  transform: translateY(-4px);
}

.rule-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.rule-acro {
  color: var(--accent);
  font-size: 1.12em;
  font-weight: 700;
}

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

/* Forms */
.field-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.field-input,
.field-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: 100%;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: oklch(0.6 0.15 290 / 0.55);
  box-shadow: 0 0 0 3px oklch(0.55 0.15 290 / 0.18);
  background: oklch(0.175 0.022 300);
}

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

/* Screenshot fan */
.shot {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px -28px oklch(0 0 0 / 0.65);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
  --shot-rot: 0deg;
}

.shot:hover {
  transform: translateY(-10px) scale(1.02) rotate(0deg) !important;
  box-shadow: 0 36px 80px -24px oklch(0 0 0 / 0.75);
  z-index: 2;
}

.shots-fan .shot {
  animation: shotRise 1s var(--ease-out) both;
}

.shots-fan .shot:nth-child(1) { animation-delay: 0.1s; --shot-rot: -3deg; transform: rotate(-3deg); }
.shots-fan .shot:nth-child(2) { animation-delay: 0.2s; --shot-rot: -1deg; }
.shots-fan .shot:nth-child(3) { animation-delay: 0.3s; --shot-rot: 1deg; }
.shots-fan .shot:nth-child(4) { animation-delay: 0.4s; --shot-rot: 3deg; transform: rotate(3deg); }

/* Next card */
.next-card {
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, oklch(0.18 0.03 300 / 0.9), oklch(0.15 0.02 300)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.next-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, oklch(0.5 0.16 290 / 0.25), transparent 70%);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}

/* Nav link underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Footer link hover */
.footer-link {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--text) !important;
  transform: translateX(3px);
}

/* Grain overlay for atmosphere */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

@media (max-width: 860px) {
  .section { padding-left: 24px; padding-right: 24px; padding-bottom: 80px; }
  .hero-title { font-size: 40px !important; }
  .apps-row { flex-direction: column !important; }
  .principles-row,
  .trust-row,
  .trust-mini,
  .maker-row,
  .privacy-row { grid-template-columns: 1fr !important; }
  .shots-fan { gap: 16px !important; }
  .shots-fan .shot {
    --shot-rot: 0deg !important;
    transform: none !important;
    width: 160px !important;
  }
  .next-card { padding: 28px; }
  .ideas-card { padding: 28px; }
  .cred-strip { gap: 8px 16px; font-size: 12px; }
}
