/* ── Plattup Landing CSS ──────────────────────────────────────
   Design: Dark warm base, amber accent, strong typographic hierarchy
   Avoids: Inter/Roboto, purple gradients, generic SaaS cards
   ─────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:        #0e0c0a;
  --surface:   #17140f;
  --surface2:  #1f1a14;
  --border:    rgba(255,255,255,0.07);
  --text:     #f0e8da;
  --text-dim: #7a6e60;
  --accent:   #e8a035;
  --accent-lo: rgba(232,160,53,0.12);
  --green:    #7ec97e;
  --red:      #e87070;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ── 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-display);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { color: var(--text-dim); font-weight: 400; }
a  { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

/* ── Layout utils ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Noise texture overlay ───────────────────────────────── */
body::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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #0e0c0a;
}
.btn-primary:hover {
  background: #f5b347;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,160,53,0.3);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  opacity: 1;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(14,12,10,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-cta {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 5rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,53,0.25);
  color: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
  margin-bottom: 2.5rem;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-social-proof {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-avatars {
  display: flex;
}
.hero-avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--surface2);
  overflow: hidden;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
}
.hero-avatars span:first-child { margin-left: 0; }
.hero-social-text {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-social-text strong { color: var(--text); }

/* ── Pain strip ───────────────────────────────────────────── */
.pain-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.pain-strip-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pain-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pain-strip-items {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pain-tag {
  font-size: 0.78rem;
  color: var(--red);
  background: rgba(232,112,112,0.1);
  border: 1px solid rgba(232,112,112,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ── Features section ─────────────────────────────────────── */
.features-header {
  text-align: center;
  margin-bottom: 4rem;
}
.features-header h2 { margin-bottom: 0.75rem; }
.features-header p { max-width: 500px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(232,160,53,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,53,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; line-height: 1.55; }
.feature-tag {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,53,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Comparison section ──────────────────────────────────── */
.compare { background: var(--surface); }
.compare-header { text-align: center; margin-bottom: 3.5rem; }
.compare-header h2 { margin-bottom: 0.75rem; }
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.compare-table th:nth-child(1) { border-radius: 12px 0 0 0; }
.compare-table th:nth-child(3) { border-radius: 0 12px 0 0; }
.compare-table th.center { text-align: center; }
.compare-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--text-dim); font-size: 0.95rem; }
.highlight-col { background: rgba(232,160,53,0.05); }
.compare-table th.highlight-col { background: var(--accent-lo); color: var(--accent); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -0.2rem;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-display);
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.testimonial-meta strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-meta span { font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,160,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section > p { max-width: 480px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cta-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1rem; font-weight: 700; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Divider ─────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Modal Styles ────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,12,10,0.85);
  backdrop-filter: blur(6px);
}
.modal {
  position: fixed; inset: 0; z-index: 201;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.2rem; cursor: pointer; padding: 0.25rem;
}
.modal-close:hover { color: var(--text); }
.modal-inner h2 { margin-bottom: 0.5rem; }
.modal-sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group select {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: rgba(232,160,53,0.5);
}
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6e60' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error { background: rgba(232,112,112,0.12); border: 1px solid rgba(232,112,112,0.25); border-radius: 6px; padding: 0.75rem 1rem; color: #e87070; font-size: 0.85rem; margin-bottom: 1rem; }
.modal-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal-footer { margin-top: 1.25rem; text-align: center; font-size: 0.88rem; color: var(--text-dim); }
.modal-footer a { color: var(--accent); }

/* ── Toast ───────────────────────────────────────────────── */
.success-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 300;
  background: #1a2e1a;
  border: 1px solid rgba(126,201,126,0.3);
  color: #7ec97e;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 6rem 0 4rem; }
  .section { padding: 4rem 0; }
  .cta-section { padding: 3rem 1.5rem; }
  .compare-table th, .compare-table td { padding: 0.75rem 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal-inner { padding: 1.75rem; }
}