:root {
  --accent: #e63946;
  --bg: #f4f4f4;
  --text: #111;
  --muted: #666;
  --border: #d4d4d4;
  --line-height: 1.6;
  --max-width: 1900px;
}

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

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
}

/* MOBILE-FIRST BASE STYLES (480px) */

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244,244,244,.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  font-family: Space Grotesk;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
}

nav {
  display: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  outline: none;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  z-index: 11;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(244,244,244,.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, border-top 0.3s ease;
}

.nav-menu.active {
  max-height: 220px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: right;
  display: block;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--accent);
  outline: none;
}

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

/* Hero */
.hero {
  padding: 100px 16px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 140px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  background: white;
  width: 100%;
}

.hero-text,
.hero-graphic {
  width: 100%;
}

.hero h1 {
  font-family: Space Grotesk;
  font-size: 3.5rem;
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.hero p {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.kicker {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Graphic */
.grid {
  height: 160px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  font-size: 0.6rem;
}

.grid div {
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.accent-bg {
  background: var(--accent);
  color: white;
}

.dark-bg {
  background: black;
  color: white;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr;
  padding: 60px 16px;
  gap: 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.split.light {
  background: white;
}

.split-left {
  position: relative;
  top: 0;
  align-self: auto;
}

.split-left h2 {
  font-family: Space Grotesk;
  font-size: 1.4rem;
  line-height: 1.1;
}

.section-kicker {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
}

.split-left p {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.split-right article {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.split-right article:last-child {
  border-bottom: 1px solid var(--border);
}

.split-right h3 {
  font-family: Space Grotesk;
  margin-bottom: 12px;
  font-size: 1rem;
}

.split-right p {
  color: var(--muted);
  line-height: 1.6;
}

.num {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* About */
.about {
  padding: 60px 16px;
  background: #111;
  color: white;
  text-align: center;
}

.badge {
  display: inline-block;
  border: 1px solid white;
  font-size: .55rem;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.about h2 {
  font-family: Space Grotesk;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.subtitle {
  color: #aaa;
  margin-top: 8px;
  font-size: 0.85rem;
}

.about-divider {
  width: 2px;
  height: 1.5cm;
  background: var(--accent);
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid > div {
  min-width: 0;
}

.about-grid h4 {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-family: Space Grotesk;
}

.about-grid p {
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

.about-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-grid li {
  margin-bottom: 8px;
}

/* CTA */
.cta {
  padding: 60px 16px;
  text-align: center;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.cta h2 {
  font-family: Space Grotesk;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid black;
  padding: 12px 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .1em;
  color: black;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  outline: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: #d62828;
  border-color: #d62828;
}

/* Footer */
.main-footer {
  background: #111;
  color: white;
  padding: 0;
}

.footer-content {
  padding: 40px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-bottom: 1px solid #333;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-main h3 {
  font-family: Space Grotesk;
  font-size: 1.8rem;
  line-height: 1.2;
  max-width: 100%;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-col h4 {
  font-family: Space Grotesk;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col p {
  color: #ccc;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.footer-legal a {
  color: #999;
  font-size: 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-signature {
  width: 100%;
}

.footer-signature p {
  color: #999;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-signature p:first-child {
  font-style: italic;
  color: #ccc;
  margin-bottom: 8px;
}

/* Legal Pages */
.legal-content {
  padding: 100px 16px 60px;
  margin-top: 140px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.legal-wrapper {
  max-width: 800px;
}

.legal-wrapper h1 {
  font-family: Space Grotesk;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.legal-wrapper h2 {
  font-family: Space Grotesk;
  font-size: 1.1rem;
  line-height: 1.1;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-wrapper h2:first-of-type {
  margin-top: 0;
}

.legal-wrapper p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.legal-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
  margin-left: 0;
}

.legal-wrapper ul li {
  padding-left: 20px;
  margin-bottom: 6px;
  position: relative;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-wrapper ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.legal-wrapper a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-wrapper a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* TABLET STYLES (768px and up) */
@media (min-width: 768px) {
  .topbar {
    padding: 16px 24px;
  }

  .brand {
    font-size: 0.8rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244,244,244,.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-top 0.3s ease;
  }

  .nav-menu.active {
    max-height: 220px;
    padding: 16px;
    border-top: 1px solid var(--border);
  }

  .nav-menu a {
    padding: 12px 0;
    font-size: 0.65rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
    display: block;
  }

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

  .hero {
    padding: 120px 24px 80px;
    margin-top: 50px;
    gap: 40px;
  }

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

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

  .grid {
    height: 240px;
  }

  .split {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 40px;
  }

  .split-left {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

  .split-left h2 {
    font-size: 2rem;
  }

  .about {
    padding: 80px 24px;
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }

  .cta {
    padding: 80px 24px;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .footer-content {
    padding: 60px 32px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-main h3 {
    font-size: 2.5rem;
  }

  .footer-bottom {
    padding: 30px 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    width: 100%;
    gap: 20px;
  }

  .footer-signature {
    width: 100%;
  }

  .legal-content {
    padding: 100px 24px 80px;
    margin-top: 50px;
  }

  .legal-wrapper h1 {
    font-size: 2rem;
  }

  .legal-wrapper h2 {
    font-size: 1.3rem;
  }
}

/* DESKTOP STYLES (1000px and up) */
@media (min-width: 1000px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* DESKTOP STYLES (full width and up) */
@media (min-width: 1200px) {
  .topbar {
    padding: 24px 48px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hamburger {
    display: none;
  }

  nav {
    display: flex;
    gap: 32px;
  }

  .nav-menu {
    position: static;
    display: flex;
    gap: 32px;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    padding: 0;
    border-top: none;
    max-height: none;
    overflow: visible;
  }

  .nav-menu a {
    padding: 0;
    font-size: 0.75rem;
    border-bottom: none;
    text-align: left;
    display: inline;
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    color: var(--accent);
    outline: none;
  }

  .hero {
    padding: 160px 80px 120px;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
  }

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

  .grid {
    height: 320px;
    font-size: 0.7rem;
  }

  .split {
    grid-template-columns: 320px 1fr;
    padding: 120px 80px;
    gap: 80px;
  }

  .split-left {
    position: sticky;
    top: 140px;
    align-self: start;
    margin-bottom: 0;
  }

  .split-left h2 {
    font-size: 3rem;
  }

  .split-right article {
    padding: 32px 0;
  }

  .split-right h3 {
    font-size: 1.1rem;
  }

  .about {
    padding: 120px 80px;
  }

  .about h2 {
    font-size: 2.5rem;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .about-grid {
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .cta {
    padding: 120px 80px;
  }

  .cta h2 {
    font-size: 2.2rem;
  }

  .actions {
    flex-direction: row;
  }

  .btn {
    width: auto;
    padding: 14px 28px;
    font-size: 0.75rem;
  }

  .footer-content {
    padding: 80px;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }

  .footer-main h3 {
    font-size: 2rem;
    max-width: 400px;
  }

  .footer-bottom {
    padding: 40px 80px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  .footer-legal {
    flex-direction: row;
    gap: 32px;
    width: auto;
  }

  .footer-legal a {
    font-size: 0.75rem;
  }

  .footer-signature {
    width: auto;
  }

  .legal-content {
    padding: 120px 80px;
    margin-top: 0;
  }

  .legal-wrapper h1 {
    font-size: 3rem;
    margin-bottom: 48px;
  }

  .legal-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 20px;
  }

  .legal-wrapper p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .legal-wrapper ul li {
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1rem;
  }
}
