/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  --navy:       #0F172A;
  --blue:       #3B82F6;
  --blue-dark:  #2563EB;
  --light:      #E2E8F0;
  --white:      #FFFFFF;

  --slate-50:   #F8FAFC;
  --slate-100:  #F1F5F9;
  --slate-300:  #CBD5E1;
  --slate-400:  #94A3B8;
  --slate-500:  #64748B;
  --slate-600:  #475569;

  --green:      #22C55E;
  --red:        #EF4444;

  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);

  --max-w:      1100px;
  --px:         clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =============================================================
   LAYOUT
   ============================================================= */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-alt  { background: var(--slate-50); }
.section-dark { background: var(--navy); color: var(--white); }

/* =============================================================
   TYPE HELPERS
   ============================================================= */
.text-blue { color: var(--blue); }

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* =============================================================
   NAVIGATION
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* =============================================================
   LOGO
   ============================================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.logo--footer {
  color: var(--white);
}
.logo--footer .logo-icon { filter: brightness(0) invert(1); }
.logo--footer .logo-name { color: var(--white); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(5rem, 12vw, 9rem);
}

.hero-inner {
  max-width: 720px;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--slate-400);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* =============================================================
   WAITLIST FORM
   ============================================================= */
.waitlist-form { width: 100%; }

.form-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.form-row--center { justify-content: center; }

.form-input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  color: var(--white);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.form-input::placeholder { color: var(--slate-500); }

.form-input:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.1);
}

.form-footnote {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4ade80;
  padding-block: 0.75rem;
}

.form-error {
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 0.4rem;
  width: 100%;
}

/* =============================================================
   SECTION HEADER
   ============================================================= */
.section-header {
  max-width: 600px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.65;
}

.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: var(--slate-400); }

/* =============================================================
   WHY BARE METAL — COMPARE
   ============================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.compare-card {
  background: var(--white);
  border: 1.5px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.compare-card--dim { opacity: 0.7; }

.compare-card--highlight {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-md);
}

.compare-card-header { margin-bottom: 1.25rem; }

.compare-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-tag--cloud {
  background: var(--slate-100);
  color: var(--slate-600);
}

.compare-tag--metal {
  background: rgba(59,130,246,0.1);
  color: var(--blue);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.compare-item--yes { color: var(--navy); }
.compare-item--no  { color: var(--slate-500); }

.compare-item--yes::before,
.compare-item--no::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  font-style: normal;
}

.compare-item--yes::before {
  content: '✓';
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}

.compare-item--no::before {
  content: '✕';
  background: rgba(239,68,68,0.08);
  color: #dc2626;
}

/* =============================================================
   BENEFITS
   ============================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.75rem;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.65;
}

/* =============================================================
   SERVER TIERS
   ============================================================= */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tier-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.tier-card--featured {
  border-color: var(--blue);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 1px var(--blue);
}

.tier-header { margin-bottom: 1.75rem; }

.tier-server {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.tier-name {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 0.625rem;
  color: var(--white);
}

.tier-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.tier-badge--blue {
  background: rgba(59,130,246,0.2);
  color: var(--blue);
}

.tier-specs {
  flex: 1;
  margin-bottom: 1.75rem;
}

.tier-specs li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tier-specs li:last-child { border-bottom: none; }

.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  min-width: 60px;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.spec-value {
  font-size: 0.9375rem;
  color: var(--slate-300);
  line-height: 1.45;
}

.spec-value small {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

.tier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tier-price {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--light);
}

.faq-item:first-child { border-top: 1px solid var(--light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  transition: color 0.15s;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--slate-400);
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}

details[open] .faq-question { color: var(--blue); }
details[open] .faq-question::after { content: '−'; color: var(--blue); }

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.75;
}

/* =============================================================
   BOTTOM CTA
   ============================================================= */
.section-cta { text-align: center; }

.section-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-cta p {
  font-size: 1.0625rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.waitlist-form--center .form-input {
  max-width: 340px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-input {
    min-width: unset;
    width: 100%;
  }

  .tier-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tier-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 0.75rem;
  }

  .logo-sub {
    display: none;
  }
}
