:root {
  --bg: #faf9f6;
  --ink: #14141a;
  --ink-soft: #55545f;
  --accent: #ed1c24;
  --accent-ink: #ffffff;
  --line: #e7e5df;
  --card-bg: #ffffff;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Archivo", var(--sans);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101013;
    --ink: #f2f1ee;
    --ink-soft: #a6a4ae;
    --accent: #ed1c24;
    --accent-ink: #ffffff;
    --line: #2b2a30;
    --card-bg: #1a1a1f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #101013;
  --ink: #f2f1ee;
  --ink-soft: #a6a4ae;
  --accent: #ed1c24;
  --accent-ink: #ffffff;
  --line: #2b2a30;
  --card-bg: #1a1a1f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
}

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.theme-toggle:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

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

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
}

.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-leaf {
  display: inline-block;
  color: var(--accent);
  vertical-align: 0;
  margin-left: 0.05em;
}

.hero-leaf svg {
  width: 0.34em;
  height: 0.38em;
  display: block;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

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

.hero-photo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: clamp(160px, 26vw, 280px);
  height: clamp(160px, 26vw, 280px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 88px);
  color: var(--accent-ink);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--bg);
}

.btn-large {
  font-size: 18px;
  padding: 18px 36px;
}

.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn.disabled:hover {
  transform: none;
  background: transparent;
  color: var(--ink-soft);
}

/* Worked with */
.worked-with {
  padding: clamp(28px, 5vw, 44px) 0;
}

.section-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.logo-tile {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-tile img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition:
    filter 0.15s ease,
    opacity 0.15s ease;
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Company logos are supplied in whatever colors each brand uses — many
   are dark artwork meant for a light page and vanish against a dark
   background. brightness(0) flattens any opaque pixel to black regardless
   of source color (transparency is untouched), then invert(1) flips that
   to white — giving every logo a legible, uniform mark without new assets. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-tile img {
    filter: brightness(0) invert(1);
    opacity: 0.75;
  }
  :root:not([data-theme="light"]) .logo-tile:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
  }
}

:root[data-theme="dark"] .logo-tile img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
:root[data-theme="dark"] .logo-tile:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.logo-fallback {
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-soft);
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 6vw, 56px) 0;
  border-top: 3px solid var(--ink);
}

.about-stat {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.big-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 110px);
  line-height: 1;
  color: var(--accent);
}

.big-number-label {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-text {
  flex: 1 1 420px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-text p {
  margin: 0 0 16px;
}
.about-text p:last-child {
  margin-bottom: 0;
}

/* Tools */
.tools,
.contact {
  padding: clamp(40px, 7vw, 72px) 0;
  border-top: 3px solid var(--ink);
}

.tools h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 8px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 36px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tool-card.status-live {
  box-shadow: 8px 8px 0 var(--accent);
}
.tool-card.status-live:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--accent);
}

.tool-card.status-planned {
  border-style: dashed;
  opacity: 0.6;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line);
  color: var(--ink-soft);
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
}

.tool-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  min-width: 0;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-live {
  background: var(--accent);
  color: #fff;
}
.badge-soon {
  background: var(--line);
  color: var(--ink-soft);
}

.tool-tagline {
  font-weight: 600;
  margin: 0;
}

.tool-description {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.tool-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* Contact */
.contact {
  text-align: left;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px) 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-bottom: 24px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .worked-with {
    padding-top: 4px;
  }
  .section-label {
    text-align: center;
  }
  .logo-row {
    justify-content: center;
  }
  .about {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Geo-block overlay */
.geo-block-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(4px);
  text-align: center;
}

.geo-block-message h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 10vw, 96px);
  color: #fff;
  margin: 0 0 16px;
  line-height: 1;
}

.geo-block-message p {
  font-family: var(--sans);
  font-size: clamp(14px, 2.5vw, 18px);
  color: #b8b6c0;
  margin: 0;
}
