/* =============================================
   SCRAPIT — Global Stylesheet
   Dark & Modern SaaS Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #07070f;
  --bg-surface: #0d0d1a;
  --bg-card:    #111120;
  --bg-card-hover: #161628;
  --border:     rgba(120, 80, 255, 0.18);
  --border-subtle: rgba(255,255,255,0.06);

  --purple:     #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --cyan:       #06b6d4;
  --cyan-light: #67e8f9;
  --green:      #10b981;

  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);

  --nav-h: 68px;
  --max-w: 1160px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────── */
.display {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.headline {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
}

/* ─── Layout Helpers ────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }
.gap-lg { gap: 24px; }

/* ─── Gradient Text ─────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 0 var(--purple-glow);
}
.btn-primary:hover {
  background: #8b47ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--purple-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  background: rgba(124,58,237,0.08);
}
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* ─── Cards ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ─── Section Header ────────────────────────── */
.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-header .label { margin-bottom: 12px; }
.section-header .headline { margin-bottom: 16px; }

/* ─── Pill / Badge ──────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-light);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* ─── Grid ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Divider ───────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
  margin: 0;
}

/* ─── Icon Box ──────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7,7,15,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}
.nav.scrolled { border-color: var(--border); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--purple-light); }
.footer-bottom a:hover { color: var(--purple-light); text-decoration: underline; }

/* ─── Page Hero (inner pages) ───────────────── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,58,237,0.12), transparent);
}
.page-hero .label { margin-bottom: 16px; }

/* ─── Noise Overlay ─────────────────────────── */
.noise-bg {
  position: relative;
  isolation: isolate;
}
.noise-bg::before {
  content: '';
  position: absolute; 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: -1;
  opacity: 0.4;
}

/* ─── Glow Lines ────────────────────────────── */
.glow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── CTA Banner ────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, var(--purple-glow), transparent 70%);
  pointer-events: none;
}

/* ─── Form ──────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--purple); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── Prose (docs) ──────────────────────────── */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 10px; color: var(--text-muted); }
.prose p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.8; }
.prose ul { margin: 0 0 16px 20px; }
.prose ul li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; list-style: disc; }
.prose code {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.88em;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: var(--purple-light);
}
.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.9em; color: var(--cyan-light); }
.prose .step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ─── Pricing ───────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(160deg, rgba(124,58,237,0.12), var(--bg-card));
  box-shadow: 0 0 40px rgba(124,58,237,0.18);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 16px 0 4px;
}
.pricing-price span { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 24px; }
.pricing-features { margin: 24px 0; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--green); font-size: 1rem; }
.pricing-features li .cross { color: var(--text-dim); }

/* ═══════════════════════════════════════════
   GDPR CONSENT BANNER
═══════════════════════════════════════════ */
#gdpr-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  pointer-events: none;
}
#gdpr-banner.gdpr-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
#gdpr-banner.gdpr-hiding {
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  pointer-events: none;
}
.gdpr-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #16162a;
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.gdpr-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.gdpr-body {
  flex: 1;
  min-width: 0;
}
.gdpr-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.gdpr-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.gdpr-link {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gdpr-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.gdpr-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all var(--transition);
  border: none;
}
.gdpr-btn-primary {
  background: var(--purple);
  color: #fff;
}
.gdpr-btn-primary:hover {
  background: #8b47ff;
  box-shadow: 0 4px 16px var(--purple-glow);
}
.gdpr-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.gdpr-btn-outline:hover {
  color: var(--text);
  border-color: var(--purple-light);
}
.gdpr-dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color var(--transition);
}
.gdpr-dismiss:hover { color: var(--text); }

@media (max-width: 640px) {
  #gdpr-banner { bottom: 12px; width: calc(100% - 24px); }
  .gdpr-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .gdpr-icon { display: none; }
  .gdpr-actions { width: 100%; }
  .gdpr-btn { flex: 1; text-align: center; padding: 10px 12px; }
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .cta-banner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 120px 0 56px; }
}
