/* American Transformers, single stylesheet, no framework */

/* Barlow, self-hosted (SIL OFL 1.1, see fonts/OFL.txt) */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #0B111A;
  --bg-2: #0E1622;
  --panel: #101A29;
  --field: #0B1320;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F2F5F9;
  --muted: #9FACBD;
  --label: #C6D0DD;
  --accent: #3E9BFF;
  --accent-soft: rgba(62, 155, 255, 0.14);
  --accent-ink: #06101E;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 2px solid var(--accent);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 17, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  transition: filter 120ms ease, transform 120ms ease;
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }

.btn-primary { padding: 16px 28px; font-size: 1.05rem; }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-wide { width: 100%; padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 128px;
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(720px 420px at 78% 8%, rgba(62, 155, 255, 0.13), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 940px;
}

.hero-sub {
  margin: 28px 0 40px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-grid { display: grid; gap: 48px; }

.hero-photo { margin: 0; max-width: 460px; }

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 64px -30px rgba(0, 0, 0, 0.75);
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 64px;
  }

  .hero-photo { max-width: none; }

  .hero-grid h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
}

/* ---------- Problem bar ---------- */

.problem {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.problem p {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  max-width: 44ch;
  font-weight: 500;
}

.problem .dim { color: var(--muted); font-weight: 400; }
.problem strong { color: var(--text); font-weight: 700; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.hero { padding: 120px 0 128px; }
.problem { padding: 56px 0; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-top: 14px;
}

/* ---------- What we build ---------- */

.build { border-bottom: 1px solid var(--line); }

.build .lead {
  margin: 22px 0 32px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text);
  max-width: 52ch;
}

.spec-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spec-grid li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 1.08rem;
  font-weight: 500;
}

.spec-grid .span2 { grid-column: 1 / -1; }

/* Transformer illustration */

.tx-figure {
  margin: 36px auto 0;
  max-width: 400px;
}

.tx-figure svg { width: 100%; height: auto; display: block; }

.tx-s { stroke: rgba(228, 235, 244, 0.9); stroke-width: 1.6; }
.tx-m { stroke: rgba(228, 235, 244, 0.38); stroke-width: 1.1; }
.tx-a { stroke: var(--accent); stroke-width: 1.8; opacity: 0.85; }
.tx-af { fill: var(--accent); }
.tx-dim { stroke: rgba(159, 172, 189, 0.35); stroke-width: 1; }
.tx-dimf { fill: rgba(159, 172, 189, 0.35); }
.tx-fill { fill: rgba(255, 255, 255, 0.025); }
.tx-solid { fill: #0F1927; }

@media (min-width: 900px) {
  .build-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
      "lead fig"
      "cards fig";
    column-gap: 64px;
    align-items: start;
  }

  .build-grid .lead { grid-area: lead; }

  .build-grid .spec-grid {
    grid-area: cards;
    grid-template-columns: 1fr;
  }

  .tx-figure {
    grid-area: fig;
    align-self: center;
    margin: 0;
    max-width: none;
  }
}

/* ---------- Built in America ---------- */

.america { border-bottom: 1px solid var(--line); background: var(--bg-2); }

.america .big {
  margin-top: 22px;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 30ch;
}

.america .sub {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Who we serve ---------- */

.serve { border-bottom: 1px solid var(--line); }

.serve p {
  margin-top: 22px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Lead form ---------- */

.quote { background: var(--bg-2); }

#quote { scroll-margin-top: 84px; }

#quote-form {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
}

.field textarea { resize: vertical; min-height: 110px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239FACBD' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); background: var(--panel); }

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

.confirm {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 30px 28px;
  font-size: 1.15rem;
  font-weight: 500;
}

/* Honeypot: visually removed, still in the DOM for bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.site-footer a:hover { border-bottom-color: var(--accent); }

.site-footer span { white-space: nowrap; }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .hero { padding: 76px 0 84px; }
  .problem { padding: 44px 0; }

  .wordmark { font-size: 0.88rem; letter-spacing: 0.04em; }
  .header-row { height: 58px; }

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

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

  #quote-form { padding: 24px 18px; }

  .btn-primary { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
