/* The Model Company (TMC)
   Super minimal, modern, clean
   Main color: #326A93
*/

:root {
  --brand: #326a93;
  --brand-soft: #eef3f8;
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.06);
  --transition: 0.25s ease;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Reset */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

/* Loader */

#loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.4s ease;
}

body.loaded #loading-screen {
  opacity: 0;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.loader-mark {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
}

.loader-label {
  font-size: 0.85rem;
}

.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  animation: loaderPulse 1.2s infinite ease-in-out;
}

@keyframes loaderPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

/* Layout */

.page {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded .page {
  opacity: 1;
}

.wrapper {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

.wrapper.narrow {
  width: min(780px, 100% - 3rem);
}

.section {
  padding: 72px 0;
}

.subtle-bg {
  background: var(--bg-subtle);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-mark {
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
}

.brand-name {
  font-size: 0.9rem;
  color: var(--text);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  padding-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.7rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-block {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  max-width: 260px;
  font-size: 0.9rem;
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  color: var(--text-muted);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* Text elements */

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.body {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list li {
  margin-bottom: 6px;
}

/* Simple grids */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.step {
  font-size: 0.9rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Cards */

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-size: 0.9rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.button.primary:hover {
  background: #245575;
}

.button.ghost {
  border-color: var(--border);
  background: #ffffff;
}

.button.ghost:hover {
  border-color: rgba(50, 106, 147, 0.3);
}

.button.full {
  width: 100%;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
}

.form {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(50, 106, 147, 0.6);
  box-shadow: 0 0 0 1px rgba(50, 106, 147, 0.15);
  background: #ffffff;
}

.form-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-side {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 16px 0 20px;
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
}

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

/* Animations */

.fade-in-initial {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-block {
    justify-content: flex-start;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 58px;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 80px;
  }

  .grid-2,
  .grid-3,
  .steps,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrapper,
  .wrapper.narrow {
    width: min(100% - 2.4rem, 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    display: none;
  }
}
