/* =========================================================
   LegalCrypto — landing page
   ========================================================= */

:root {
  --bg: #0a0d12;
  --bg-alt: #0f1319;
  --surface: #141a23;
  --surface-2: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --text-muted: #8a95a7;
  --text-dim: #5a6478;
  --accent: #00e87a;
  --accent-dim: rgba(0, 232, 122, 0.15);
  --accent-glow: rgba(0, 232, 122, 0.35);
  --danger: #ff5470;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.accent.strong { font-weight: 600; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #03150c;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: #1aff8e;
  box-shadow: 0 12px 32px -10px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-block { width: 100%; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  color: var(--accent);
  font-size: 1.5rem;
  text-shadow: 0 0 20px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 18px; font-size: 0.9rem; }

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

@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .nav-actions .btn-ghost { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero h1 {
  margin-bottom: 24px;
}
.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.hero-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.hero-form input::placeholder { color: var(--text-dim); }
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.audience-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 0;
}
.audience-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.audience-pills .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 540px) {
  .hero-form { flex-direction: column; padding: 10px; }
  .hero-form .btn { width: 100%; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { max-width: 700px; margin: 0 auto 12px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* =========================================================
   Steps
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; margin: 0; }
.step-arrow {
  align-self: center;
  color: var(--text-dim);
  font-size: 1.6rem;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
}

/* =========================================================
   Features
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-dim);
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 0.95rem; margin: 0; }

@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-toggle {
  display: flex;
  width: max-content;
  margin: 0 auto 48px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 4px;
}
.toggle-btn {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle-btn:hover { color: var(--text); }
.toggle-btn.active {
  background: var(--accent);
  color: #03150c;
  font-weight: 600;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing[hidden] { display: none; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 232, 122, 0.06) 0%, var(--surface) 80%);
  box-shadow: 0 12px 40px -20px var(--accent-glow);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #03150c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}
.plan-price .period {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.plan-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.plan-features {
  flex: 1;
  margin-bottom: 28px;
}
.plan-features li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 0.93rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.plan-cta { width: 100%; }

@media (max-width: 880px) {
  .pricing { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 1rem; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; gap: 22px; font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   Modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 38px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6),
              0 0 80px -30px var(--accent-glow);
  text-align: center;
  animation: slideUp 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  color: var(--text-dim);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.modal-message {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 26px;
  line-height: 1.6;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.modal-form input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  outline: none;
  color: var(--text);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-form input::placeholder { color: var(--text-dim); }
.modal-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.modal-success {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 0 14px;
}
.modal-fineprint {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
