:root {
  --primary: #007aff;
  --text: #111111;
  --text-muted: #555555;
  --bg: #ffffff;
  --border: #e8e8e8;
  --panel: #f7f7f7;

  --container-width: 960px;

  /* layout helpers */
  --pad: clamp(16px, 4vw, 28px);
  --radius: 14px;

  /* header "tesla-ish" width */
  --header-width: 1320px;
  --header-pad: clamp(14px, 2.5vw, 40px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* normal page container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Tesla-like header shell (wider than page container) */
.header-shell {
  max-width: var(--header-width);
  margin: 0 auto;
  padding: 0 var(--header-pad);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* anchor mobile dropdown */
  min-height: 64px;
}

/* Left logo */
.logo {
  display: inline-flex;
  align-items: center;
  max-height: 56px;
}

.logo img {
  height: 56px;
  width: auto;
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

/* Center – true center */
.brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* Right nav (desktop) */
.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  align-items: center;
}

.nav a {
  position: relative;
  padding: 8px 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.15s ease-out;
}

.nav a:hover::after { width: 100%; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1;
  cursor: pointer;
}

/* MAIN */

main { padding: 72px 0; }

.hero {
  text-align: center;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px);
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 300;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text-muted);
  margin: 0 auto 24px;
  max-width: 62ch;
}

.hero-microcopy {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* BUTTONS */

.btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  min-height: 44px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }

/* SECTIONS */

.section { padding: clamp(48px, 7vw, 80px) 0; }

.section h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  margin-bottom: 18px;
  font-weight: 500;
  text-align: left;
}

.section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-center { text-align: center; }

.section-small {
  max-width: 640px;
  margin: 0 auto;
}

/* GRIDS */

.what-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.card { padding: 16px 0; }

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

.card p { font-size: 14px; }

/* SPLIT */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.split h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* LIST */

.list {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.plan-list p { margin-bottom: 12px; }

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 22px;
}

.pricing-card.highlight {
  background: var(--panel);
  border-color: transparent;
}

.pricing-card h3 { margin: 0 0 8px; font-size: 18px; }
.pricing-price { font-size: 28px; margin-bottom: 8px; }

.pricing-card ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card ul li::before { content: "• "; }

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer-links { display: flex; gap: 16px; }

/* RESPONSIVE + MOBILE NAV */
@media (max-width: 900px) {
  .header-inner { min-height: 60px; }

  .logo { max-height: 44px; }
  .logo img { height: 44px; max-height: 44px; max-width: 140px; }

  .brand-center {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* hide desktop links, turn into dropdown */
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav a:hover {
    text-decoration: none;
    background: var(--panel);
  }

  .nav a::after { display: none; }

  /* layout grids */
  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  main { padding: 56px 0; }
  .section { padding: 56px 0; }
  .hero-subtitle { margin-bottom: 18px; }
}
