/* ========================
   CSS VARIABLES
   ======================== */
:root {
  --bg: #1a1a2e;
  --bg-card: #22223a;
  --bg-stripe: #f59e0b;
  --fg: #f4f4f0;
  --fg-muted: #9a9ab0;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --border: rgba(255,255,255,0.08);
  --radius: 4px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ========================
   TYPOGRAPHY
   ======================== */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.wordmark-sm { font-size: 1.1rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--fg);
  margin-bottom: 2rem;
}

/* ========================
   SITE HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--accent); }

/* ========================
   HERO
   ======================== */
.hero {
  padding: 5rem 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0f0f1a;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ========================
   SPEC BLOCK (hero visual)
   ======================== */
.spec-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }

.spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: rgba(245,158,11,0.12);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
}

.hero-stripe {
  margin-top: 5rem;
  background: var(--accent);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #0f0f1a;
}

.stripe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15,15,26,0.3);
  flex-shrink: 0;
}

/* ========================
   CATEGORIES
   ======================== */
.categories {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.category-card:hover { border-color: var(--accent); }

.cat-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.category-card > p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.category-card ul li {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.category-card ul li:last-child { border-bottom: none; }

/* ========================
   VALUE SECTION
   ======================== */
.value-section {
  background: #14142a;
  padding: 6rem 2rem;
}

.value-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.value-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.value-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.value-points { display: flex; flex-direction: column; gap: 0; }

.value-point {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.value-point:first-child { padding-top: 0; }
.value-point:last-child { border-bottom: none; }

.vp-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  min-width: 2.5rem;
}

.value-point strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.value-point p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ========================
   DIFFERENCE TABLE
   ======================== */
.diff-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.diff-header { margin-bottom: 2.5rem; }

.diff-table {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.diff-col {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
}

.diff-col:last-child { border-right: none; }

.diff-label { background: transparent; }

.diff-competitor {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.diff-tarpcore .diff-competitor { color: var(--accent); }

.diff-tarpcore {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-top: none;
  border-bottom: none;
}

.diff-pro {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.diff-con {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ========================
   CLOSING SECTION
   ======================== */
.closing-section {
  background: linear-gradient(160deg, #1e1e38 0%, var(--bg) 100%);
  padding: 7rem 2rem;
  text-align: center;
}

.closing-inner { max-width: 680px; margin: 0 auto; }

.closing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.closing-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.closing-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.closing-specs .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.closing-contact {
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.closing-contact strong { color: var(--fg); }

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: #14142a;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  opacity: 0.5;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-table { grid-template-columns: 1fr 1fr; }
  .diff-label { display: none; }
  .diff-col:nth-child(odd) { border-right: 1px solid var(--border); }
  .diff-col:nth-child(even) { border-right: none; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .value-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stripe { margin-top: 3rem; }
  .site-header nav { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .diff-table { grid-template-columns: 1fr; }
  .diff-col { border-right: none; border-bottom: 1px solid var(--border); }
  .diff-col:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; }
}

/* ========================
   QUOTE FORM
   ======================== */
.quote-page {
  min-height: calc(100vh - 64px);
  padding: 4rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.quote-container {
  width: 100%;
  max-width: 760px;
}

.quote-hero {
  margin-bottom: 3rem;
}

.quote-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.quote-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-section {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type { border-bottom: none; }

.form-section-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.875rem;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  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='%239a9ab0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--fg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-muted); opacity: 0.6; }

.form-group textarea { resize: vertical; min-height: 80px; }

.form-footer {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--fg-muted);
  flex: 1;
  min-width: 200px;
}

.btn-submit {
  background: var(--accent);
  color: #0f0f1a;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: 0.875rem;
}

/* ========================
   SUCCESS PAGE
   ======================== */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Nav CTA button */
.nav-cta {
  background: var(--accent);
  color: #0f0f1a !important;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ========================
   RESPONSIVE (Quote)
   ======================== */
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .btn-submit { width: 100%; text-align: center; }
  .quote-page { padding: 2rem 1rem; }
}