/* site/css/landing.css — Papercut AI Landing Page */

/* ── CUSTOM PROPERTIES ── */
:root {
  --bg: #000000;
  --surf: #0a0a0a;
  --card-bg: #111111;
  --border: #222222;
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.08);
  --gold-border: rgba(212, 175, 55, 0.18);
  --gold-glow: rgba(212, 175, 55, 0.08);
  --text: #f0f0f0;
  --text-secondary: #888888;
  --text-dim: #555555;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Barlow', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); overflow-x: hidden; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 30% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY ── */
.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-heading {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
}

.t-subheading {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.t-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg { width: 22px; height: 22px; }

.brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--gold); }

.btn-login {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-border);
  padding: 7px 18px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-login:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 32px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 32px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ── SCROLL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* clear fixed nav */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { z-index: 1; }

.hero-title { margin-bottom: 16px; }

.hero-subtitle { margin-bottom: 40px; }

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── FLOATING 3D CARDS (Botanix style) ── */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  z-index: 1;
}

.float-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  padding: 24px 32px;
  min-width: 220px;
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(212, 175, 55, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.float-card-1 { transform: translateX(-20px); }
.float-card-2 { transform: translateX(20px); }
.float-card-3 { transform: translateX(-10px); }

.float-card-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.float-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── PRODUCT VISUAL ── */
.product-visual {
  padding: 0 0 60px;
}

.product-frame {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.product-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(212, 175, 55, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.product-screenshot {
  position: relative;
  z-index: 1;
}

.demo-panel {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-mode-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 10px;
}

.demo-prompt-area {
  padding: 28px 24px;
  min-height: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.demo-blink {
  animation: blink 1s step-end infinite;
  color: var(--gold);
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── PLATFORMS ── */
.platforms {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-logos {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 32px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.platform-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.platform-name {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

/* ── FEATURE RIVER ── */
.features {
  padding: 80px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }

.feature-text h2 { margin: 12px 0 16px; }

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.04);
}

/* ── USE CASE CARDS ── */
.use-cases {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.use-case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
}

.use-case-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 8px;
}

.use-case-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── METRICS ── */
.metrics {
  padding: 60px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  text-align: center;
  min-width: unset;
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  padding: 80px 0;
  position: relative;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(212, 175, 55, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ── MOBILE (768px) ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }

  /* Nav */
  .nav-inner { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 8px; }

  /* Hero */
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }
  .float-card {
    min-width: 140px;
    padding: 16px 20px;
  }
  .float-card-1, .float-card-2, .float-card-3 {
    transform: none;
  }
  .float-card-value { font-size: 24px; }

  /* Feature river */
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }
  .feature-row { margin-bottom: 60px; }

  /* Metrics */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Use cases */
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Platform logos */
  .platform-logos { gap: 40px; }

  /* CTA */
  .hero-ctas { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn-login) { display: none; }
  .use-case-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .platform-logos { flex-direction: column; gap: 24px; }
}
