@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-dark: #101820;
  --text: #1a1a1a;
  --text-soft: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --input-border: #d1d5db;
  --accent: #0f766e;
  --accent-strong: #0a5e58;
  --accent-soft: #e0f5f1;
  --accent-glow: rgba(15, 118, 110, 0.12);
  --hero-bg: #101820;
  --hero-text: #f0f2f4;
  --hero-sub: #b0b8c1;
  --max-width: 68.75rem;
  --nav-height: 4rem;
  --section-gap: 6rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  transition: color 160ms ease;
}

a:hover {
  color: var(--accent-strong);
}

/* ── NAV ─────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
main {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── BRAND / LOGO ────────────────────── */

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--accent-strong);
}

.logo-svg {
  height: 1.6rem;
  width: auto;
  display: block;
}

#primary-nav {
  margin-left: auto;
}

.site-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav .nav-cta {
  margin-left: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── HERO ────────────────────────────── */

#hero {
  border-top: 0;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--hero-bg);
  color: var(--hero-text);
  margin-inline: calc(-50vw + 50%);
  padding-inline: calc(50vw - 50%);
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind hero content */
#hero::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

#hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--hero-text);
}

#hero .hero-desc {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--hero-sub);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

#hero .cta-link {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

#hero .cta-link:hover,
#hero .cta-link:focus-visible {
  background: #14b8a6;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

#hero .cta-link--ghost {
  background: transparent;
  color: var(--hero-sub);
  border: 1px solid rgba(176, 184, 193, 0.3);
}

#hero .cta-link--ghost:hover,
#hero .cta-link--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--hero-text);
  border-color: rgba(176, 184, 193, 0.5);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ── SECTIONS ────────────────────────── */

main {
  padding-bottom: 4rem;
}

section {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  padding-block: var(--section-gap);
}

section + section {
  border-top: 1px solid var(--border);
}

/* alternate bg for visual rhythm — stronger contrast */
#how-we-work {
  background: var(--bg-alt);
  margin-inline: calc(-50vw + 50%);
  padding-inline: calc(50vw - 50%);
  border-top: none;
}

/* remove border from section after full-bleed */
#how-we-work + section {
  border-top: none;
}

/* ── FOOTER ─────────────────────────── */

footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  border-top: none;
}

.site-footer-inner {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 1.6rem;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 28ch;
  line-height: 1.6;
  margin: 0;
}

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── TYPOGRAPHY ──────────────────────── */

h1, h2, h3 {
  line-height: 1.15;
}

h2 {
  position: relative;
  margin-bottom: 1.2rem;
  padding-left: 1.1rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

p {
  margin: 0.7rem 0 0;
  max-width: 65ch;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
}

ul, ol {
  list-style: none;
}

li + li {
  margin-top: 0;
}

/* ── GRID ITEMS (What we build) ── */

#what-we-build ul {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#what-we-build ul li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

#what-we-build ul li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#what-we-build ul li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

#what-we-build h3 + ul {
  margin-bottom: 1.2rem;
}

/* ── HOW WE WORK — STEP GRID ────────── */

.step-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.step-grid li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.step-grid li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.step-grid li strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.step-grid li span:last-child {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ── COMING SOON BADGE ───────────────── */

.coming-soon-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── STUDIO & PRODUCTS ───────────────── */

.studio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.studio-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.studio-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.studio-card-icon {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.studio-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
}

.studio-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ── ABOUT ───────────────────────────── */

#about-mindustries {
  background: var(--bg-alt);
  margin-inline: calc(-50vw + 50%);
  padding-inline: calc(50vw - 50%);
}

/* restore the teal bar */
#about-mindustries h2::before {
  display: block;
}

.values-block {
  margin-top: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
}

.values-block h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
}

.values-block ul {
  display: grid;
  gap: 0.7rem;
}

.values-block ul li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.values-block ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── CONTACT ─────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  padding-left: 1.1rem;
}

.contact-info p {
  max-width: 38ch;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.contact-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail span:last-child {
  font-size: 0.95rem;
  color: var(--text-soft);
}

form {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

input,
textarea {
  font: inherit;
  color: var(--text);
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

form button[type="submit"] {
  justify-self: start;
  font: inherit;
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

form button[type="submit"]:hover,
form button[type="submit"]:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── CTA (non-hero) ──────────────────── */

.cta-link {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--accent);
  transition: background 180ms ease, transform 180ms ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* ── FORM: SPAM / CONSENT / FEEDBACK ── */

.form-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.consent-group {
  margin-top: 0.25rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-feedback:empty {
  display: none;
}

.form-feedback--success,
.form-feedback--error {
  max-width: 28rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-feedback--success {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  background: var(--accent);
  transform: none;
}

.field-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fef2f2;
}

/* ── RESPONSIVE ──────────────────────── */

@media (max-width: 48rem) {
  .site-header-inner,
  main,
  .site-footer-inner {
    width: min(100% - 2rem, var(--max-width));
  }

  .site-header-inner {
    height: auto;
    min-height: var(--nav-height);
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  /* slightly smaller logo on mobile */
  .logo-svg {
    height: 1.3rem;
  }

  #primary-nav {
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    display: none;
  }

  #primary-nav.is-open {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  #primary-nav.is-open .site-nav {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    border-radius: 0;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    width: auto;
    display: inline-block;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #hero {
    min-height: auto;
    padding-block: 4rem;
  }

  #hero::before {
    width: 400px;
    height: 400px;
  }

  #what-we-build ul {
    grid-template-columns: 1fr;
  }

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

  .studio-cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding-block: 4rem;
  }

  /* reset full-bleed on mobile to avoid horizontal overflow */
  #how-we-work,
  #about-mindustries,
  #hero {
    margin-inline: calc(-50vw + 50%);
    padding-inline: max(1rem, calc(50vw - 50%));
  }

  .values-block {
    padding: 1.5rem;
  }

  form {
    padding: 1.5rem;
  }
}
