/* ============================================================
   Autoconnekt — Wireless CarPlay & Android Auto Decoder Kits
   Base stylesheet
   ============================================================ */

:root {
  --navy: #0B1B33;
  --navy-2: #102A4D;
  --blue: #2563EB;
  --blue-600: #1D4ED8;
  --blue-700: #1E40AF;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --amber: #F59E0B;
  --amber-600: #D97706;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6B82;
  --muted-2: #8492A6;
  --border: #E3E8F0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 20px 48px rgba(15, 23, 42, 0.10);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.section-title { margin-bottom: 8px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 40px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .section-sub { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); }
.btn-amber { background: var(--amber); color: #1a1206; }
.btn-amber:hover { background: #EA8C00; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EFF4FB; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.utility {
  background: var(--navy);
  color: #C7D2E3;
  font-size: 0.82rem;
  padding: 8px 0;
}
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.utility a { color: #fff; font-weight: 600; }
.utility a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--navy); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo span.accent { color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(245, 158, 11, 0.10), transparent 55%),
    var(--navy);
  color: #E7EDF7;
  padding: 80px 0 72px;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: 1.12rem; color: #C7D2E3; max-width: 540px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.86rem; font-weight: 600;
  color: #DCE6F5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; flex: none; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px;
}
.hero-card {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hero-card .hc-title { font-weight: 700; font-size: 1.02rem; }
.hero-card .hc-tag { font-size: 0.72rem; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; }
.hero-card .hc-sub { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.feature-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.feature-row .dot.warn { background: var(--amber); }

/* ---------- Brand strip ---------- */
.brand-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px 0; }
.brand-strip .container { text-align: center; }
.brand-strip .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; align-items: center; }
.brands span { font-size: 1.05rem; font-weight: 700; color: #7C8AA0; letter-spacing: 0.01em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section.navy { background: var(--navy); color: #C7D2E3; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy .section-sub { color: #9FB0C7; }

/* USP cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-media {
  height: 170px;
  background: linear-gradient(135deg, #0B1B33, #1E3A66);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-media .brand-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.product-media .p-mark { color: rgba(255,255,255,0.28); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-body .p-sys { color: var(--blue-600); font-size: 0.84rem; font-weight: 600; margin-bottom: 12px; }
.product-body ul { margin-bottom: 18px; }
.product-body ul li { font-size: 0.88rem; color: var(--muted); padding: 4px 0 4px 20px; position: relative; }
.product-body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-100); border: 1.5px solid var(--blue); }
.product-body .btn { margin-top: auto; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--blue-50); color: var(--navy); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--muted); font-weight: 600; width: 260px; }

/* ---------- Compatibility ---------- */
.compat-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center; }
.compat-controls input[type="search"] {
  flex: 1; min-width: 240px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--surface);
}
.compat-controls input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  transition: .15s ease;
}
.pill:hover { border-color: var(--blue); color: var(--blue-600); }
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.compat-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
.compat-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compat-table th, .compat-table td { padding: 13px 16px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.compat-table th { background: var(--navy); color: #fff; font-weight: 600; position: sticky; top: 0; }
.compat-table tr:last-child td { border-bottom: none; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status.yes { background: #EAF7EF; color: #15803D; }
.status.test { background: #FFF4E0; color: #B45309; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted-2); transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 20px 20px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.form-field label span { color: #E11D48; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #FBFCFE;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 12px; }

.contact-info-list { margin-top: 24px; }
.contact-info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .ci-icon { width: 42px; height: 42px; flex: none; background: var(--blue-50); color: var(--blue-600); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-info-list .ci-icon svg { width: 20px; height: 20px; }
.contact-info-list .ci-label { font-size: 0.8rem; color: var(--muted-2); }
.contact-info-list .ci-value { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-600), var(--blue)); border-radius: var(--radius); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #DBEAFE; }
.cta-band .btn { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9FB0C7; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-col .logo { color: #fff; margin-bottom: 14px; }
.footer-col p { font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.9rem; color: #9FB0C7; transition: color .15s ease; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--navy); color: #E7EDF7; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #C7D2E3; max-width: 680px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.82rem; color: #8492A6; margin-bottom: 18px; }
.breadcrumb a { color: #8492A6; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Notice ---------- */
.notice { background: #FFF7E8; border: 1px solid #F5D9A8; color: #8A5A0B; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.9rem; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-3, .grid-4, .steps, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .steps, .products-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 32px 24px; }
  .hero { padding: 56px 0 52px; }
}
