/* === TOKENS === */
:root {
  --lp-accent: #FF4801;
  --lp-accent-hover: #FF7038;
  --lp-accent-light: rgba(255, 72, 1, 0.1);
  --lp-text: #521000;
  --lp-text-muted: rgba(82, 16, 0, 0.65);
  --lp-text-subtle: rgba(82, 16, 0, 0.38);
  --lp-bg-page: #F5F1EB;
  --lp-bg-100: #FFFBF5;
  --lp-bg-200: #FFFDFB;
  --lp-bg-300: #FEF7ED;
  --lp-border: #EBD5C1;
  --lp-border-light: rgba(235, 213, 193, 0.5);
  --lp-success: #16A34A;
  --lp-error: #DC2626;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --shadow-card: 0 1px 3px rgba(82, 16, 0, 0.04), 0 4px 12px rgba(82, 16, 0, 0.02);
  --ease-button: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

:root.dark {
  --lp-accent: #F14602;
  --lp-accent-hover: #FF6D33;
  --lp-accent-light: rgba(241, 70, 2, 0.12);
  --lp-text: #F0E3DE;
  --lp-text-muted: rgba(255, 253, 251, 0.56);
  --lp-text-subtle: rgba(255, 253, 251, 0.3);
  --lp-bg-page: #0D0D0D;
  --lp-bg-100: #121212;
  --lp-bg-200: #191817;
  --lp-bg-300: #2A2927;
  --lp-border: rgba(240, 227, 222, 0.13);
  --lp-border-light: rgba(240, 227, 222, 0.07);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--lp-bg-page);
  color: var(--lp-text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--lp-accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--lp-accent-hover); }

::selection { background: var(--lp-accent-light); color: var(--lp-text); }
:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

/* === CONTAINER === */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
.header {
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.logo-sub { font-size: 9px; font-weight: 500; color: var(--lp-text-muted); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1; }
.logo-main { font-size: 22px; font-weight: 500; color: var(--lp-text); letter-spacing: -0.46px; line-height: 1.1; }

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s var(--ease-button);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { scale: 0.98; transform: translateY(1px); }

.btn-primary {
  background: var(--lp-accent);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.92; color: #fff; }

.btn-secondary {
  background: var(--lp-bg-100);
  color: var(--lp-accent);
  border-color: var(--lp-bg-100);
}
.btn-secondary:hover { background: transparent; border-color: var(--lp-accent); color: var(--lp-accent); }

.btn-ghost {
  background: transparent;
  color: var(--lp-accent);
  border-color: var(--lp-border);
}
.btn-ghost:hover { border-style: dashed; border-color: var(--lp-accent); color: var(--lp-text); }

/* === HERO === */
.hero {
  padding: 64px 0 48px;
}

.hero-content { max-width: 820px; }

.hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 500;
  color: var(--lp-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--lp-text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* === SECTIONS === */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--lp-border-light);
}

.section-dark {
  background: var(--lp-bg-200);
  border-top: 1px solid var(--lp-border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--lp-text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

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

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  background: var(--lp-bg-200);
  border: 1px solid var(--lp-border);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { background: var(--lp-bg-300); }

.card-emphasis {
  border-color: var(--lp-accent);
  border-style: dashed;
}
.card-emphasis .card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lp-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-accent);
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--lp-text);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

/* === CORNER BRACKETS === */
.corner-brackets { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--lp-border);
  border-radius: 1.5px;
  background: var(--lp-bg-100);
}
.bracket.tl { top: -4px; left: -4px; }
.bracket.tr { top: -4px; right: -4px; }
.bracket.bl { bottom: -4px; left: -4px; }
.bracket.br { bottom: -4px; right: -4px; }

/* === COST SECTION === */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .cost-grid { grid-template-columns: repeat(3, 1fr); }
}

.cost-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-100);
}

.cost-number {
  font-size: 38px;
  font-weight: 500;
  color: var(--lp-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.cost-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

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

.calc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--lp-text-subtle);
  padding: 12px 16px;
  border: 1px dashed var(--lp-border);
}
.calc-note svg { flex-shrink: 0; margin-top: 2px; color: var(--lp-text-muted); }

/* === COMPARISON === */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; }
}

.comparison-card {
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-200);
  padding: 24px;
}

.comparison-header { margin-bottom: 20px; }

.comparison-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-danger { background: rgba(220, 38, 38, 0.1); color: var(--lp-error); }
.badge-success { background: rgba(22, 163, 74, 0.1); color: var(--lp-success); }

.comparison-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.comparison-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-text);
}
.comparison-item svg { flex-shrink: 0; }

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card { padding: 28px 24px; }

.quote-icon { margin-bottom: 12px; color: var(--lp-text); }

.testimonial-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--lp-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lp-accent-light);
  color: var(--lp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--lp-text); }
.author-role { font-size: 12px; color: var(--lp-text-muted); }

/* === GLOSSARY === */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--lp-border);
}

.glossary-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--lp-border-light);
}
.glossary-item:last-child { border-bottom: none; }

.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--lp-text);
}

.glossary-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.glossary-definition {
  font-size: 14px;
  color: var(--lp-text-muted);
  line-height: 1.6;
}
.glossary-definition strong { color: var(--lp-text); font-weight: 500; }

/* === CTA === */
.section-cta {
  background: var(--lp-bg-100);
  border-top: 1px solid var(--lp-border);
}

.cta-content { text-align: center; max-width: 640px; margin: 0 auto; }

.cta-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 16px;
  color: var(--lp-text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--lp-border);
  background: var(--lp-bg-100);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--lp-text-muted); font-size: 12px; }
.footer-links a:hover { color: var(--lp-text); }

/* === RESPONSIVE TWEAKS === */
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}