/* ==========================================================================
   AGK MOTORWERKS — Homepage stylesheet
   Dark theme · steel-blue accent (#5B7C99 family) · pale blue-grey (#E2E8F0)
   ========================================================================== */

:root {
  --bg: #101317;
  --bg-soft: #161b21;
  --bg-raised: #1b2129;
  --bg-header: #0c0f13;
  --line: #262e38;
  --line-strong: #34404d;
  --text: #e9edf2;
  --text-muted: #a7b3c2;
  --accent: #5b7c99;
  --accent-bright: #7396b5;
  --accent-dark: #435e77;
  --accent-deep: #334a5e;
  --pale: #e2e8f0;
  --pale-dim: #c3cdd9;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION — left-clustered links bar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.nav-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pale);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--pale);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-block;
  background-color: var(--accent);
  color: #0c1117;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--pale);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO — split hero with engine visual
   ========================================================================== */

.hero {
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pale);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 7px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #0c1117;
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--pale);
  border: 1px solid var(--line-strong);
}

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

/* Engine visual */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.engine-hero {
  position: relative;
  width: 440px;
  height: 340px;
  max-width: 100%;
}

.engine-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 124, 153, 0.28) 0%, rgba(16, 19, 23, 0) 68%);
  border-radius: 50%;
}

.engine-block {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #1f2a36 0%, #161d26 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.engine-head {
  position: absolute;
  top: -54px;
  width: 74px;
  height: 62px;
  background: linear-gradient(180deg, #26313d 0%, #1b232d 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
}

.engine-head-1 {
  left: 40px;
}

.engine-head-2 {
  right: 40px;
}

.engine-gasket {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  background-color: var(--pale-dim);
}

.engine-gasket-1 {
  top: 44px;
}

.engine-gasket-2 {
  top: 106px;
}

.engine-exhaust {
  position: absolute;
  top: 64px;
  right: -58px;
  width: 62px;
  height: 16px;
  background-color: var(--accent-dark);
  border-radius: 8px;
}

.engine-pipe {
  position: absolute;
  top: 78px;
  right: -40px;
  width: 18px;
  height: 46px;
  background-color: var(--accent-dark);
  border-radius: 0 0 9px 9px;
}

.engine-spark {
  position: absolute;
  top: -84px;
  width: 12px;
  height: 12px;
  background-color: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 18px 4px rgba(115, 150, 181, 0.55);
}

.engine-spark-1 {
  left: 82px;
}

.engine-spark-2 {
  right: 82px;
}

/* ==========================================================================
   STATEMENT — full-width statement row
   ========================================================================== */

.statement-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}

.statement-label,
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.statement-heading {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--pale);
  max-width: 900px;
  margin-bottom: 24px;
}

.statement-body {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 820px;
}

/* ==========================================================================
   STATS — big-numeral stats band
   ========================================================================== */

.stats-section {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--pale);
  font-variant-numeric: tabular-nums;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--accent);
  width: 100%;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   FEE TABLE
   ========================================================================== */

.fee-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--pale);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  color: var(--text-muted);
}

.fee-table-wrap {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 16px;
}

.fee-table thead {
  background-color: var(--accent-dark);
}

.fee-table th {
  text-align: left;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pale);
  border-bottom: 2px solid var(--accent);
}

.fee-table td {
  padding: 18px 22px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fee-table tbody tr:nth-child(even) {
  background-color: var(--bg-soft);
}

.fee-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-table td:first-child {
  font-weight: 700;
  color: var(--pale);
  white-space: nowrap;
}

.fee-table td:last-child {
  font-weight: 600;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* ==========================================================================
   FAQ — accordion
   ========================================================================== */

.faq-section {
  padding: 96px 0;
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 14px;
  background-color: var(--bg-raised);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background-color: transparent;
  border: none;
  color: var(--pale);
  font-size: 17px;
  font-weight: 700;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-bright);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-bright);
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 16px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ==========================================================================
   CTA — split CTA band
   ========================================================================== */

.cta-section {
  background: linear-gradient(180deg, var(--accent-deep) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--line-strong);
  padding: 88px 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--pale);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ==========================================================================
   FOOTER — brand + two link columns
   ========================================================================== */

.site-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--line-strong);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand {
  padding-right: 24px;
  border-right: 1px solid var(--accent-dark);
}

.footer-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pale);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 460px;
}

.footer-contact {
  font-size: 15px;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--accent-bright);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--pale);
}

.footer-col {
  padding-left: 8px;
  border-right: 1px solid var(--accent-dark);
}

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

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--pale);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 24px 72px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .engine-hero {
    transform: scale(0.82);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .cta-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    border-right: none;
    padding-right: 0;
  }

  .footer-col {
    border-right: none;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .statement-heading {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .fee-table thead {
    display: none;
  }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table tbody tr {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--bg-raised);
  }

  .fee-table tbody tr:nth-child(even) {
    background-color: var(--bg-soft);
  }

  .fee-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
  }

  .fee-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 4px;
  }

  .fee-table td:last-child {
    border-bottom: none;
  }
}
