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

html { scroll-behavior: smooth; }

body.landing {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* NAV */
body.landing nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #1a1a18;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  margin-bottom: 40px;
  background: var(--surface);
}
.hero-badge span { color: var(--accent-text); }

body.landing h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 900px;
}
body.landing h1 em {
  font-style: italic;
  color: var(--accent-text);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.7;
  font-weight: 300;
}

/* DROP ZONE */
.drop-zone {
  width: 100%;
  max-width: 560px;
  border: 1.5px dashed var(--border-light);
  border-radius: 16px;
  padding: 52px 40px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  position: relative;
  background: var(--surface);
  z-index: 1;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.01);
}
.drop-zone.drag-over {
  box-shadow: 0 0 40px var(--accent-glow);
}

.drop-icon {
  width: 52px; height: 52px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--bg);
  transition: border-color 0.25s;
  font-size: 22px;
}
.drop-zone:hover .drop-icon { border-color: var(--accent); }

.drop-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text);
}
.drop-sub {
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.hero-formats {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.fmt-tag {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
}

.hero-social-proof {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatars {
  display: flex;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  overflow: hidden;
}
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* HOW IT WORKS */
.section {
  padding: 120px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  max-width: 600px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.step {
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
  background: var(--surface);
  transition: background 0.2s;
}
.step:first-child { border-radius: 12px 0 0 12px; }
.step:last-child { border-radius: 0 12px 12px 0; }
.step:hover { background: var(--surface2); }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.step h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* DEMO MOCKUP */
.demo-section {
  padding: 0 48px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.mockup-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.mockup-topbar {
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
}

.dot-row { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }

.mockup-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 440px;
}

.mockup-canvas {
  background: var(--surface2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  overflow: hidden;
  padding: 40px;
}

/* Fake design file */
.fake-design {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a2744 0%, #0f1829 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 24px 48px var(--shadow-heavy);
}

.fake-design-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fake-bar { background: rgba(255,255,255,0.08); border-radius: 4px; }
.fake-logo { width: 60px; height: 24px; background: var(--accent); border-radius: 4px; opacity: 0.9; }
.fake-hero-text { width: 75%; height: 18px; border-radius: 3px; margin-top: 12px; }
.fake-sub { width: 55%; height: 10px; border-radius: 3px; margin-top: 4px; }
.fake-btn { width: 80px; height: 28px; background: var(--accent); border-radius: 4px; margin-top: 12px; opacity: 0.9; }
.fake-img { flex: 1; border-radius: 6px; margin-top: 8px; background: rgba(255,255,255,0.05); }

/* Comment pins */
.pin {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a18;
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-glow);
  transition: transform 0.2s;
  z-index: 10;
  animation: pin-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
.pin:hover { transform: scale(1.2); }

@keyframes pin-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

.pin-1 { top: 28%; left: 22%; --delay: 0.8s; }
.pin-2 { top: 55%; left: 62%; --delay: 1.2s; }
.pin-orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,166,35,0.3); }

/* Sidebar */
.mockup-sidebar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-header {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg);
  animation: slide-in 0.4s ease forwards;
  opacity: 0;
}
.comment-card:nth-child(2) { animation-delay: 1s; }
.comment-card:nth-child(3) { animation-delay: 1.4s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a18;
  font-size: 9px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-pin-dot.orange { background: var(--orange); }

.comment-author {
  font-size: 12px;
  color: var(--text);
  font-weight: 400;
}

.comment-time {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  margin-left: auto;
}

.comment-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.approval-bar {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-approve {
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-approve:hover { opacity: 0.85; }

.btn-changes {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-changes:hover { border-color: var(--orange); color: var(--orange); }

/* STATUS STRIP */
.status-section {
  padding: 0 48px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.status-card.approved::before { background: var(--green); }
.status-card.pending::before { background: var(--muted); }
.status-card.changes::before { background: var(--orange); }

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  margin-bottom: 16px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.gray { background: var(--muted); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

.status-card h4 { font-size: 15px; font-weight: 400; margin-bottom: 6px; }
.status-card p { font-size: 13px; color: var(--muted); }

/* EARLY ACCESS */
.early-access-wrap {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 48px;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ea-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.ea-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.ea-title em { font-style: italic; color: var(--accent-text); }
.ea-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.ea-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 48px;
}
.ea-feat {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ea-feat span { color: var(--accent-text); font-weight: 700; }
.btn-ea {
  display: inline-block;
  background: var(--accent);
  color: #1a1a18;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 20px;
}
.btn-ea:hover { opacity: 0.88; transform: translateY(-2px); }
.ea-footnote { font-size: 13px; color: var(--muted); }
.ea-footnote strong { color: var(--text); font-weight: 400; }

/* FOOTER */
body.landing footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

body.landing footer p {
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(212,245,122,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.modal-file-icon { font-size: 20px; }

.modal-file-name {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: var(--accent-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-file-size {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-card .field { margin-bottom: 12px; }

.modal-input {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  font-family: 'Geist', sans-serif !important;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--accent) !important; }
.modal-input::placeholder { color: var(--placeholder) !important; }

.modal-card .btn-primary {
  background: var(--accent);
  color: #1a1a18;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.modal-card .btn-primary:hover { opacity: 0.85; }
.modal-card .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-login {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.modal-login a { color: var(--accent-text); text-decoration: none; }
.modal-login a:hover { text-decoration: underline; }

.modal-card .form-errors {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--red);
}

.modal-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.modal-card .auth-divider::before,
.modal-card .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-card .btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 15px;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-card .btn-google:hover {
  border-color: var(--border-light);
  background: var(--surface);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 80px 20px; }
  .steps { grid-template-columns: 1fr; }
  .step:first-child { border-radius: 12px 12px 0 0; }
  .step:last-child { border-radius: 0 0 12px 12px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .pricing-grid, .status-cards { grid-template-columns: 1fr; }
  .demo-section, .status-section, .pricing-section { padding-left: 20px; padding-right: 20px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
