:root {
  --bg: #fafaf9;
  --bg-elev: #ffffff;
  --bg-soft: #f1f1ef;
  --text: #0a0a0a;
  --text-muted: #595959;
  --text-faint: #8a8a8a;
  --border: #e5e5e3;
  --border-strong: #d4d4d1;
  --accent: #0a0a0a;
  --accent-contrast: #ffffff;

  --maxw: 64rem;
  --maxw-prose: 38rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 1px 2px rgba(10, 10, 10, 0.06), 0 16px 40px rgba(10, 10, 10, 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --bg-elev: #131316;
    --bg-soft: #17171a;
    --text: #fafaf9;
    --text-muted: #a3a3a3;
    --text-faint: #6b6b6b;
    --border: #26262a;
    --border-strong: #34343a;
    --accent: #fafaf9;
    --accent-contrast: #0a0a0a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

a {
  color: inherit;
}

/* ---------- Main / Hero ---------- */

.main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.eyebrow-muted {
  color: var(--text-muted);
}

.hero {
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 auto;
  max-width: var(--maxw-prose);
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.brands,
.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  margin: 0 auto 2rem;
  max-width: var(--maxw-prose);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- Brand grid ---------- */

.brand-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.brand-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.brand-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-card-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.brand-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-card-copy {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.brand-card-copy strong {
  color: var(--text);
  font-weight: 600;
}

.brand-card-link {
  margin-top: 0.75rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.brand-card-arrow {
  transition: transform 200ms var(--ease);
}

.brand-card:hover .brand-card-arrow {
  transform: translateX(3px);
}

/* ---------- Contact ---------- */

.contact {
  max-width: 38rem;
}

.contact-title {
  margin-bottom: 0.75rem;
}

.contact-copy {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

.site-footer-copy {
  margin: 0;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 200ms var(--ease);
}

.site-footer-nav a:hover {
  color: var(--text);
}

/* ---------- Focus ---------- */

a:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Motion ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .brands,
  .contact {
    animation: held-fade-in 480ms var(--ease) both;
  }

  .brands {
    animation-delay: 80ms;
  }

  .contact {
    animation-delay: 160ms;
  }
}

@keyframes held-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .main {
    padding-top: 3.5rem;
    gap: 3.5rem;
  }

  .lede {
    font-size: 1rem;
  }
}
