/* Fortie brand
   Primary:   #154273
   Secondary: #4f7196
   Light:     #dce3ea
*/

:root {
  --primary: #154273;
  --secondary: #4f7196;
  --light: #dce3ea;
  --ink: #0f1e2d;
  --muted: #5d6a76;
  --white: #ffffff;
  --surface: #f6f8fa;
  --border: #d8e0e7;
  --shadow: 0 18px 55px rgba(21, 66, 115, .12);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,227,234,.85);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
}

.brand-wordmark {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand-fallback {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-wordmark {
  filter: none;
  height: 44px;
}

.footer-fallback {
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #324556;
  font-size: .96rem;
  font-weight: 600;
}

.main-nav a {
  transition: color .2s ease;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 80% 20%, rgba(79,113,150,.18), transparent 25%),
    linear-gradient(135deg, #f9fbfc 0%, #edf2f6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(21,66,115,.08);
  border-radius: 50%;
  right: -140px;
  top: -180px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 18px;
}

.eyebrow.light { color: #dbe6f0; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--primary);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -.055em;
}

h1 span { color: var(--secondary); }

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 30px;
  color: #435669;
  font-size: 1.13rem;
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(21,66,115,.22);
}

.btn-primary:hover { background: #10375f; }

.btn-secondary {
  background: rgba(255,255,255,.72);
  color: var(--primary);
  border-color: #cdd8e2;
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  white-space: nowrap;
}

.btn.full { width: 100%; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #526372;
  font-size: .92rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.print-card {
  position: relative;
  width: min(90%, 390px);
  height: 380px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.95), rgba(220,227,234,.65));
  border: 1px solid rgba(21,66,115,.12);
  box-shadow: var(--shadow);
}

.printer-top {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 18%;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 74px 0 rgba(21,66,115,.12);
}

.print-object {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  width: 150px;
}

.layer {
  height: 23px;
  margin-top: -4px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: inset 0 1px rgba(255,255,255,.25);
}
.l2 { width: 92%; margin-left: 4%; }
.l3 { width: 80%; margin-left: 10%; }
.l4 { width: 66%; margin-left: 17%; }
.l5 { width: 52%; margin-left: 24%; }

.build-plate {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 62px;
  height: 13px;
  border-radius: 999px;
  background: #8298ae;
  box-shadow: 0 12px 18px rgba(15,30,45,.13);
}

.metric {
  position: absolute;
  z-index: 2;
  min-width: 170px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(21,66,115,.10);
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 1.15rem;
}

.metric span {
  color: var(--muted);
  font-size: .78rem;
}

.metric-a { top: 30px; right: -10px; }
.metric-b { bottom: 16px; left: -15px; }

.trust-strip {
  border-top: 1px solid #e5ebf0;
  border-bottom: 1px solid #e5ebf0;
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  padding: 24px 18px;
  border-right: 1px solid #e5ebf0;
}

.trust-grid div:last-child { border-right: 0; }

.trust-grid strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: .86rem;
}

.section {
  padding: 105px 0;
}

.section-soft {
  padding: 105px 0;
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.compact { margin-bottom: 32px; }

.section-heading > p,
.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--light);
  color: var(--primary);
  font-weight: 850;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.small-note {
  margin-top: 28px;
  color: #73808b;
  font-size: .88rem;
}

.material-list {
  border-top: 1px solid #cfd8e0;
}

.material-item {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #cfd8e0;
}

.material-item span {
  color: var(--primary);
  font-weight: 800;
}

.material-item small {
  color: var(--muted);
  font-size: .92rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.steps article {
  position: relative;
  padding-top: 22px;
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 58px;
  right: -15px;
  height: 1px;
  background: #cdd8e2;
}

.step-number {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.steps p {
  color: var(--muted);
  font-size: .94rem;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy a {
  color: var(--primary);
  font-weight: 800;
}

.cta-band {
  padding: 66px 0;
  background: var(--primary);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.cta-inner h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-inner p {
  margin: 0;
  color: #dce3ea;
}

.quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}

.contact-card {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 3px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 800;
}

.quote-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 45px rgba(21,66,115,.08);
}

.quote-form label {
  display: block;
  color: #2d4051;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

input, textarea, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd6df;
  border-radius: 11px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(79,113,150,.12);
}

textarea { resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 14px;
}

.form-note {
  margin: 12px 0 0;
  color: #7a8791;
  text-align: center;
  font-size: .78rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 750;
}

details p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .92rem;
}

footer {
  height: 42px;
  padding: 0;
  background: #154273;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand { color: white; }

.footer-grid p {
  margin: 0;
  max-width: 520px;
  color: #b8c6d5;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-content: end;
  color: #eef4f8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #91a7ba;
  font-size: .8rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .quote-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 36px; }
  .hero-visual { min-height: 380px; }
  .cards.four,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(-n+2) { border-bottom: 1px solid #e5ebf0; }
  .split, .quote-grid, .about-grid { gap: 46px; }
  .steps article::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid p { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px 10px;
  }

  .hero { padding: 64px 0 58px; }

  h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }

  .hero-visual { min-height: 320px; }
  .print-card { height: 300px; width: 86%; }
  .build-plate { bottom: 45px; }
  .print-object { bottom: 70px; transform: translateX(-50%) scale(.85); }
  .metric { min-width: 145px; padding: 12px 14px; }
  .metric-a { right: 0; top: 5px; }
  .metric-b { left: 0; bottom: 0; }

  .section, .section-soft { padding: 76px 0; }

  .cards.four,
  .steps,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div { padding: 19px 12px; }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .material-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-links { justify-content: start; }

  .footer-bottom {
    gap: 16px;
    flex-direction: column;
  }
}
