/* ── TOKENS ── */
:root {
  --accent:   #FF563F;
  --primary:  #0C0C0C;
  --bg:       #FFFFFF;
  --white:    #FFFFFF;
  --border:   rgba(12,12,12,0.10);
  --muted:    rgba(12,12,12,0.45);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background-color: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-logo-fallback {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  display: none;
}

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

.header-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.header-nav a:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
  transition: 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 5% 20px;
}

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

.mobile-nav a {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ── MAIN LAYOUT ── */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── HERO ── */
.hero {
  padding: 88px 0 72px;
  position: relative;
}

.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin-bottom: 22px;
  color: var(--primary);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
}

/* ── SECTIONS ── */
section {
  padding: 96px 0;
  position: relative;
}

/* Full-width horizontal divider below hero (Zapier-style) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--border);
}

.section-header { margin-bottom: 44px; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
}

/* ── LOGO CARDS ── */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.logo-preview {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-preview.light { background: #FFFFFF; border-bottom: 1px solid var(--border); }
.logo-preview.dark  { background: #0C0C0C; }

.logo-preview img {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
}

/* Placeholder state */
.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.placeholder-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px dashed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light .placeholder-box { border-color: rgba(12,12,12,0.18); color: rgba(12,12,12,0.25); }
.dark  .placeholder-box { border-color: rgba(245,245,245,0.2); color: rgba(245,245,245,0.3); }

.placeholder-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.light .placeholder-label { color: rgba(12,12,12,0.22); }
.dark  .placeholder-label { color: rgba(245,245,245,0.28); }

.logo-meta {
  padding: 18px 20px 22px;
}

.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.logo-bg {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.dl-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.dl-btn svg { flex-shrink: 0; }

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

.dl-btn.filled:hover { opacity: 0.75; }

.dl-btn.outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(12,12,12,0.22);
}

.dl-btn.outline:hover {
  border-color: var(--primary);
}

/* ── COLOR CARDS ── */
.colors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.color-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.color-swatch {
  height: 256px;
}

.color-swatch.bg-color {
  border-bottom: 1px solid var(--border);
}

.color-body { padding: 20px 22px 24px; }

.color-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.color-usage {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.value-rows { display: flex; flex-direction: column; }

.value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.value-row:last-child { border-bottom: none; }

.val-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 32px;
}

.val-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  flex: 1;
}

.copy-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgba(12,12,12,0.18);
  transition: color 0.15s, opacity 0.15s;
  opacity: 0;
}

.value-row:hover .copy-icon { opacity: 1; color: var(--accent); }
.value-row.ok .copy-icon { opacity: 1; color: #22c55e; }

/* ── FONT CARDS ── */
.fonts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

.font-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 36px 0 32px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.font-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  align-self: flex-start;
}

.font-display-large {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--primary);
}

.font-name-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 6px;
}

.font-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.weight-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.weight-chip {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  color: rgba(12,12,12,0.55);
}

.gf-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-top: auto;
  transition: gap 0.2s;
}

.gf-link:hover { gap: 12px; }

.gf-link svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gf-link:hover svg { transform: translate(2px, -2px); }

/* ── FOOTER ── */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 55;
}

.footer-inner {
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-logo-fallback {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  padding: 0 16px;
}

.footer-links a + a {
  border-left: 1px solid var(--border);
}

.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child  { padding-right: 0; }

.footer-links a:hover { color: var(--primary); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--primary); }

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ── LAYOUT RAIL (Zapier-style vertical lines) ── */
.layout-rail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.layout-rail::before,
.layout-rail::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

/* Lines sit 24px outside the content column — ensures minimum padding */
.layout-rail::before {
  left: max(calc(5% - 24px), calc(50% - 654px));
}

.layout-rail::after {
  right: max(calc(5% - 24px), calc(50% - 654px));
}

/* ── RESPONSIVE ── */
@media (min-width: 1024px) {
  section { padding: calc(96px + 2em) 0; }
}

@media (max-width: 900px) {
  .logos-grid  { grid-template-columns: repeat(2, 1fr); }
  .colors-grid { grid-template-columns: repeat(2, 1fr); }
  .fonts-grid  { grid-template-columns: 1fr; }
  .layout-rail { display: none; }
}

@media (max-width: 640px) {
  .header-inner  { padding: 0 24px; }
  .mobile-nav    { padding: 8px 24px 20px; }
  .header-nav    { display: none; }
  .hamburger     { display: flex; }
  main           { padding: 0 24px; }
  .hero          { padding: 56px 0 48px; }
  section        { padding: 56px 0; }
  .logos-grid    { grid-template-columns: 1fr; }
  .colors-grid   { grid-template-columns: 1fr; }
  .footer-inner  { padding: 36px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-links a { padding: 0 12px; }
  .footer-links a:first-child { padding-left: 0; }
  .font-display-large { font-size: 56px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.hero p  { animation: fadeUp 0.55s 0.08s cubic-bezier(0.22,1,0.36,1) both; }
.hero .label { animation: fadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both; }
