@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --navy-deep: #001220;
  --navy-medium: #001F3F;
  --silver-bright: #E8E8E8;
  --silver-chrome: #C0C0C0;
  --accent-gold: #D4AF37;
  --text-white: #FFFFFF;
  --text-dim: #A0B0C0;
  --glass-card: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--navy-deep);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Layout ────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.title-center {
  text-align: center;
  margin-bottom: 4rem;
}

.title-center h1,
.title-center h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.title-center p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--silver-bright);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 10px 20px rgba(192, 192, 192, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-card);
  border-color: var(--silver-chrome);
}

/* ─── Glass Cards ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2.5rem;
}

/* ─── Inputs ────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--silver-chrome);
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Ticker ────────────────────────────────────────────────── */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  padding: 0 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.ticker-item span {
  color: var(--accent-gold);
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ─── Mobile-First Hamburger Menu ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver-bright);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet & Small Desktop (≤ 1024px) ──────────────────────── */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .title-center h1,
  .title-center h2 {
    font-size: 2rem;
  }
}

/* ── Tablet (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 18, 32, 0.98);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem;
    z-index: 200;
  }

  header nav.open {
    display: block;
  }

  header nav ul {
    flex-direction: column !important;
    gap: 0 !important;
  }

  header nav ul li a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  /* Layout */
  .section {
    padding: 60px 0;
  }

  .title-center {
    margin-bottom: 2.5rem;
  }

  .title-center h1,
  .title-center h2 {
    font-size: 1.75rem;
  }

  /* Glass cards */
  .glass-card {
    padding: 1.75rem;
    border-radius: 18px;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  /* Grids: make all 2-col grids into single column */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(450px"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Footer */
  footer .container[style*="display: flex"] {
    flex-direction: column !important;
    gap: 2.5rem !important;
  }

  footer div[style*="display: flex; gap: 4rem"] {
    flex-wrap: wrap !important;
    gap: 2rem !important;
  }

  /* Tables */
  table {
    font-size: 0.82rem;
  }

  td,
  th {
    padding: 0.5rem 0.4rem !important;
  }
}

/* ── Mobile (≤ 480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .title-center h1,
  .title-center h2 {
    font-size: 1.5rem;
  }

  .title-center p {
    font-size: 0.9rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.88rem;
  }

  /* Hero full-width buttons */
  .hero div[style*="display: flex"]>a {
    width: 100%;
    text-align: center;
  }

  /* Numbers / prices */
  div[style*="font-size: 2.5rem"],
  div[style*="font-size: 2.8rem"] {
    font-size: 2rem !important;
  }

  div[style*="font-size: 4rem"] {
    font-size: 2.5rem !important;
  }

  div[style*="font-size: 3rem"] {
    font-size: 1.8rem !important;
  }

  /* Grids */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(350px"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Calculator result value */
  #loanAmount,
  #scrapValue {
    font-size: 2.2rem !important;
  }

  /* 404 page number */
  div[style*="font-size: 8rem"] {
    font-size: 5rem !important;
  }
}