/* ========================================
   Three Dimensional Things — One Page Site
   Colour scheme from logo:
   Navy  #233678
   Green #1F7E54
======================================== */

:root {
  --navy: #233678;
  --green: #1F7E54;
  --green-hover: #279e68;
  --bg: #0B0F1A;
  --surface: #151B2D;
  --surface-2: #1C2438;
  --text: #E8ECF4;
  --muted: #9AA3B8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 15, 26, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 42px;
  width: auto;
}

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.btn-nav {
  padding: 8px 16px !important;
  font-size: 0.9rem !important;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

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

.mobile-link {
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mobile-link:last-child {
  border-bottom: none;
  color: var(--green);
  font-weight: 500;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 126, 84, 0.35);
}

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

.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-card {
  width: 100%;
  margin-top: auto;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  padding: 10px 16px;
}

.btn-card:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(35, 54, 120, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(31, 126, 84, 0.08), transparent);
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

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

/* ========== Stats ========== */
.stats {
  padding: 0 0 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ========== Models ========== */
.models {
  padding: 64px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 126, 84, 0.35);
  box-shadow: var(--shadow);
}

.model-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}

.model-visual {
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.model-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
  display: block;
}

.model-card:hover .model-visual img {
  transform: scale(1.06);
}

.model-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.model-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.model-body p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.model-meta {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
}

.models-cta {
  text-align: center;
  margin-top: 48px;
}

/* ========== About ========== */
.about {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(35, 54, 120, 0.12));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-content strong {
  color: var(--text);
}

.about-content .btn {
  margin-top: 12px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--green);
}

.about-card ul {
  list-style: none;
}

.about-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-note a {
  color: var(--green);
}

.footer-note a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ========== Responsive ========== */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

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

@media (max-width: 520px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}
