/* ================================================================
   T3LAOWU — Tesla Accessories Taiwan
   ================================================================ */

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

:root {
  --orange:        #E31937;
  --orange-hover:  #CC1630;
  --orange-glow:   rgba(227, 25, 55, 0.18);
  --navy:          #0C0C0C;
  --navy-mid:      #141414;
  --navy-deep:     #1C1C1E;
  --text-main:     #2D2D2D;
  --text-muted:    #6B7280;
  --bg-light:      #F9FAFB;
  --border:        #E5E7EB;
  --white:         #FFFFFF;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 44px rgba(0,0,0,0.15);

  --r-sm:   6px;
  --r-md:   12px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.24s;

  --max-w: 1160px;
  --pad-v: 100px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section    { padding: var(--pad-v) 0; }
.text-center { text-align: center; }

.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background var(--dur) var(--ease),
              transform  var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(227,25,55,0.35);
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(227,25,55,0.45);
}


/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--dur) var(--ease);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.35); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
}
.nav-logo-sub {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}
.nav-cta { background: var(--orange) !important; color: var(--white) !important; margin-left: 6px; }
.nav-cta:hover { background: var(--orange-hover) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}


/* ================================================================
   SECTION 1 — HERO / BRAND OVERVIEW
   ================================================================ */
.section-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-deep) 100%);
  padding-top: calc(var(--pad-v) + 68px);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Main headline block */
.hero-headline-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
  position: relative;
}
.hero-headline {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-headline .highlight { color: var(--orange); }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  font-weight: 300;
}

/* Two-column: overview + founder */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 72px;
  position: relative;
}

/* Brand Overview column */
.overview-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.overview-body {
  font-size: 15px;
  color: rgba(255,255,255,0.70);
  line-height: 1.8;
  margin-bottom: 24px;
}
.overview-tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Founder column */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--orange);
  box-shadow: 0 0 0 10px var(--orange-glow), var(--shadow-lg);
  background: linear-gradient(135deg, #2a0a0a, #1a0505);
  flex-shrink: 0;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.duke-quote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--orange);
  border-radius: var(--r-md);
  padding: 22px 24px;
  width: 100%;
}
.duke-quote p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
}
.duke-quote footer { display: flex; flex-direction: column; gap: 3px; }
.duke-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  font-style: normal;
}
.duke-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Values label */
.core-value-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow  var(--dur) var(--ease);
}
.value-card:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.value-icon { color: var(--orange); margin-bottom: 14px; }
.value-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 9px;
}
.value-card p { font-size: 13.5px; color: rgba(255,255,255,0.57); line-height: 1.65; }


/* ================================================================
   SECTION 2 — BRAND
   ================================================================ */
.section-brand { background: var(--bg-light); }

.brand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.08));
}
.brand-content .section-title { margin-bottom: 18px; }
.brand-lead {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 20px;
}
.brand-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ================================================================
   SECTION 3 — TESLA ACCESSORIES / PRODUCT MATRIX
   ================================================================ */
.section-products { background: var(--white); }

/* ── Branch Diagram ── */
.branch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}
.branch-tree {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 960px;
  margin-top: 8px;
  position: relative;
}
.branch-tree--three {
  grid-template-columns: repeat(3, 1fr);
}
.branch-tree::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(100% / 6 - 8px);
  right: calc(100% / 6 - 8px);
  height: 2px;
  background: var(--orange);
}

.branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.branch-col::before {
  content: '';
  width: 2px;
  height: 36px;
  background: var(--orange);
  display: block;
  flex-shrink: 0;
}

.branch-node {
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  width: 100%;
  transition: border-color var(--dur) var(--ease),
              box-shadow   var(--dur) var(--ease),
              transform    var(--dur) var(--ease);
}
.branch-node:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.branch-node h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.branch-cat-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}
.branch-node--solid    .branch-cat-name { color: #B45309; }
.branch-node--colloidal .branch-cat-name { color: #1D4ED8; }
.branch-node--ups       .branch-cat-name { color: #065F46; }

.branch-series-list { display: flex; flex-wrap: wrap; gap: 7px; }
.branch-series-list li {
  background: var(--navy);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* ── Product Table ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.table-wrapper:focus-visible { box-shadow: 0 0 0 3px var(--orange); }

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
}
.product-table caption {
  caption-side: top;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.product-table thead tr { background: var(--navy); color: var(--white); }
.product-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.product-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-main);
}
.product-table tbody tr:nth-child(even) { background: var(--bg-light); }
.product-table tbody tr:hover           { background: #FFF0F2; }
.product-table tbody tr:last-child td   { border-bottom: none; }
.series-name { font-weight: 700; color: var(--navy); white-space: nowrap; }

.table-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  text-align: center;
}


/* ================================================================
   SECTION 4 — WHY T3LAOWU
   ================================================================ */
.section-lapping { background: var(--bg-light); }

.lapping-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.wca-body {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
}

.lapping-apps h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}
.apps-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.app-badge {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--r-full);
  cursor: default;
  transition: background  var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color        var(--dur) var(--ease),
              transform    var(--dur) var(--ease);
}
.app-badge:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227,25,55,0.28);
}
.distributor-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}


/* ================================================================
   SECTION 5 — CONTACT / FOOTER
   ================================================================ */
.section-contact {
  background: var(--navy);
  color: var(--white);
  padding-bottom: 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 80px;
}

.contact-company-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.contact-company-name span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.22em;
  margin-top: 3px;
}
.contact-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.contact-details h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon { color: var(--orange); margin-top: 1px; flex-shrink: 0; }
.contact-label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 4px;
}
.contact-link {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.contact-link:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,0.3); line-height: 1.9; }
.footer-seo-keywords { margin-top: 4px; }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  :root { --pad-v: 80px; }

  .brand-inner { grid-template-columns: 1fr; gap: 48px; }
  .brand-logo-wrap { order: -1; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .lapping-inner { grid-template-columns: 1fr; gap: 52px; }

  .contact-inner { grid-template-columns: 1fr 1fr; }

  .branch-tree--three {
    grid-template-columns: 1fr 1fr;
  }
  .branch-tree--three .branch-col:last-child {
    grid-column: 1 / -1;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root { --pad-v: 64px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 2px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { text-align: center; margin: 6px 0 0 0 !important; }

  .hero-headline-block { margin-bottom: 48px; }
  .hero-headline { font-size: 28px; }

  .values-grid { grid-template-columns: 1fr; gap: 14px; }

  .branch-tree--three {
    grid-template-columns: 1fr;
  }
  .branch-tree--three .branch-col:last-child {
    max-width: 100%;
  }
  .branch-tree::before { display: none; }
  .branch-col::before  { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 13px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
