/* =====================================================================
   Aerstat — Rapid Pressure System (landing page)
   Figma frame: 0:11 "Desktop - 1140px (Recommended) -> X-Large ≥1200px"
   Canvas 1440 × 3780 · content container 1140
   ===================================================================== */

:root {
  --ink: #222;
  --near-black: #0a0203;
  --grad-panel: linear-gradient(to right, #ed381c, #f78b1d);
  --grad-card: linear-gradient(to right, #f35c20 27.404%, #f8921b);
  /* Tailwind gradient-to-t: first stop is the BOTTOM */
  --grad-accent-y: linear-gradient(to top, #f8921b 9.615%, #f35c20 86.058%);
  --grad-accent-x: linear-gradient(to left, #f8921b 9.615%, #f35c20 86.058%);
  --glance-amber: #f89728;
  --touch-red: #ed1c24;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Lato', var(--font-body);
}

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

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1200px) {
  .container { padding: 0; }
}

/* =====================================================================
   Logo (composed from vector pieces; box ratio 295 × 76)
   ===================================================================== */
.logo {
  position: relative;
  display: block;
  width: 295px;
  height: 76px;
}
.logo-piece { position: absolute; }
.logo-piece img { width: 100%; height: 100%; }
.logo-piece-icon     { left: 1.34%;  top: 2.84%;  width: 21.09%; height: 81.55%; }
.logo-piece-wordmark { left: 26.53%; top: 2.84%;  width: 67.60%; height: 59.48%; }
.logo-piece-tagline  { left: 36.12%; top: 76.19%; width: 50.02%; height: 19.76%; }
.logo-piece-tm       { left: 95.05%; top: 12.32%; width: 3.09%;  height: 5.57%;  }

/* =====================================================================
   HERO  (0 → 992 on the 1440 canvas)
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  height: 992px;
  background: #fff;
}

/* Decorative arc + ribbon — full-bleed, anchored to a centered 1440 frame */
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;   /* arc paints over the product photo, per comp */
}
.hero-arc,
.hero-ribbon {
  position: absolute;
  transform: rotate(180deg);
  max-width: none;
}
/* Widths in vw so the art stretches with the viewport (SVGs are
   preserveAspectRatio="none"); heights fixed so vertical geometry
   never shifts. At exactly 1440px these equal the comp's px values. */
.hero-arc    { left: -25.694vw; top: -45px; width: 129.167vw; height: 832px; }
.hero-ribbon { left: -32.639vw; top: 102px; width: 135.556vw; height: 643px; }

/* Product photo (transparent PNG), bleeds off the left edge */
.hero-product {
  position: absolute;
  left: calc(50% - 877px);   /* −157px on the centered 1440 stage */
  top: 152px;
  width: 958px;
  height: 825px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-product img {
  position: absolute;
  left: -5.88%;
  top: 5.35%;
  width: 96.66%;
  height: 141.32%;
  max-width: none;
}

/* Header row */
.site-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 130px;
  z-index: 4;
}
.site-header .logo { position: absolute; left: 67px; top: 48px; }
.btn-contact {
  position: absolute;
  right: 70px;
  top: 56px;
  width: 151px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: var(--grad-accent-y);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

/* Hero copy — positions are container-relative (container x = canvas x − 150) */
.hero-content { position: relative; height: 100%; z-index: 3; }
.hero-title {
  position: absolute;
  left: 485px;
  top: 366px;
  width: 655px;
  font-weight: 400;
}
.hero-title-grad {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 74px;
  line-height: 48px;
  background: var(--grad-accent-y);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-sub {
  display: inline-block;
  margin-top: 10.5px;
  font-size: 50px;
  line-height: 68px;
  color: var(--ink);
}
.hero-title-sub strong { font-weight: 600; }

.hero-inset {
  position: absolute;
  left: 486px;
  top: 565px;
  width: 135px;
  height: 313px;
  border-radius: 12px;
  overflow: hidden;
}
.hero-inset img {
  position: absolute;
  left: -8.56%;
  top: -5.53%;
  width: 116.41%;
  height: 117.96%;
  max-width: none;
}

.hero-lede {
  position: absolute;
  left: 679px;
  top: 550px;
  width: 375px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
}
.hero-lede sub {
  font-size: 15.48px;
  line-height: 1;
}

.hero-copy {
  position: absolute;
  left: 681px;
  top: 695px;
  width: 429px;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

/* =====================================================================
   BAND  (992 → 1278 · h 286)
   ===================================================================== */
.band {
  position: relative;
  height: 286px;
  background-image: url("../images/band-pattern.svg"), var(--grad-panel);
  background-repeat: no-repeat;
  background-position: left top, left top;
  background-size: 1440px 286px, cover;
  color: #fff;
}
.band .container { position: relative; height: 100%; }
.band-title {
  position: absolute;
  left: 0;
  top: 81px;
  width: 100%;
  font-size: 44px;
  line-height: 58px;
  font-weight: 700;
}
.band-tagline {
  position: absolute;
  left: 0;
  top: 150px;
  font-size: 34px;
  line-height: 48px;
  font-weight: 500;
  font-style: italic;
}

/* =====================================================================
   SPECS / FEATURES  (1278 → 2313 · h 1035)
   ===================================================================== */
.specs { position: relative; }
.specs-frame { position: relative; height: 1035px; }

/* Black "at a glance" panel: viewport-left bleed → 267px into the container */
.panel-glance {
  position: absolute;
  top: 17px;
  height: 1018px;
  left: -100px;
  right: calc(50% + 570px - 267px);   /* container-left + 267 */
  min-width: 0;
  background: #000;
  border-radius: 12px;
}
/* Orange features panel: 291px into the container → viewport-right bleed */
.panel-features {
  position: absolute;
  top: 212px;
  height: 823px;
  left: calc(50% - 570px + 291px);    /* container-left + 291 */
  right: -100px;
  background: var(--grad-panel);
  border-radius: 12px;
}
@media (max-width: 1187px) {
  .panel-glance { right: calc(24px + 267px); left: -12px; }
  .panel-features { left: calc(24px + 291px); right: -12px; }
}

.specs-content { position: relative; height: 100%; }

/* Stats row */
.stats {
  position: absolute;
  left: 388px;
  top: 42px;
  width: 900px;
  height: 139px;
  display: flex;
  gap: 26px;
  align-items: center;
}
.stat { flex: 1 0 0; padding: 10px 25px 10px 0; }
.stat p { position: relative; top: -6px; }
.stat-last { padding-left: 32px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 66px;
  background: var(--grad-accent-y);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 24px;
  line-height: 40px;
  font-weight: 600;
  color: var(--ink);
}

/* At a glance */
.glance {
  position: absolute;
  left: 0;
  top: 87px;
  width: 215px;
}
.glance-title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  color: var(--glance-amber);
  margin-bottom: 15px;
}
.glance-list { display: flex; flex-direction: column; gap: 15px; }
.glance-list dt {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #d6d6d6;
}
.glance-list dd {
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  color: #d6d6d6;
}
/* Same ratio as the hero-lede / feature-heading subscripts. line-height: 1
   keeps the subscript from inflating the 22px line box in a tight list. */
.glance-list dd sub {
  font-size: 0.65em;
  line-height: 1;
}

/* Features */
.features-title {
  position: absolute;
  left: 388px;
  top: 276px;
  font-size: 48px;
  line-height: 36px;
  font-weight: 500;
  color: #fff;
}
.features-grid {
  position: absolute;
  left: 388px;
  top: 378px;
  width: 752px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 49px;
  row-gap: 34px;
  color: #fff;
}
.feature h4 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}
.feature h4 sub {
  font-size: 0.65em;
  line-height: 1;
}
.feature-electronics h4 {
  font-size: 22px;
  margin-bottom: 10px;
}
.feature p {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

/* =====================================================================
   PHOTOS  (2340 → 2777 · h 437, 27px below specs)
   ===================================================================== */
.photos {
  position: relative;
  height: 437px;
  margin-top: 27px;
}
.photo {
  position: absolute;
  top: 0;
  height: 437px;
  border-radius: 12px;
  overflow: hidden;
}
.photo img {
  position: absolute;
  max-width: none;
}
.photo-left {
  left: -24px;
  right: calc(50% + 16px);   /* 704 → gap 29 → 733 */
}
.photo-left img {
  left: -29.12%;
  top: -31.63%;
  width: 163.4%;
  height: 143.6%;
}
.photo-right {
  left: calc(50% + 13px);
  right: -24px;
  transform: scaleX(-1);
}
.photo-right img {
  left: -32.11%;
  top: -15.89%;
  width: 161.93%;
  height: 180.65%;
}

/* =====================================================================
   CONTACT  (2873 → 3535)
   ===================================================================== */
.contact {
  position: relative;
  padding-top: 96px;   /* 2777 → 2873 */
  text-align: center;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 62px;
  line-height: 48px;
  color: var(--touch-red);
}
.contact-card {
  width: 938px;
  max-width: calc(100% - 48px);
  margin: 73px auto 0;   /* title block 2873+48 → card 2994 */
  border-radius: 12px;
  background-image: url("../images/card-dots-overlay.png"), var(--grad-card);
  background-repeat: no-repeat;
  background-size: 924px 419px, cover;
  background-position: 2px 1px, left top;
  box-shadow: 2px 2px 9px 0 rgba(0, 0, 0, 0.1);
}
.contact-form {
  padding: 48px 93px 20px;
  text-align: left;
}
.contact-intro {
  transform: translateY(7px);
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: #fff;
  text-align: center;
}
.form-fields {
  display: flex;
  gap: 24px;
  margin-top: 14px;   /* flex gap between intro and fields row in the comp */
  padding: 40px 0;
}
.form-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
  padding: 15px 6px 15px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  outline: none;
  resize: none;
}
.contact-form ::placeholder { color: #999; opacity: 1; }
.contact-form textarea { height: 198px; }

.btn-submit {
  display: block;
  width: 364px;
  max-width: calc(100% - 48px);
  height: 66px;
  margin: 55px auto 0;
  padding: 20px 40px;
  background: #fff;
  border: 4px solid #f35c20;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 26px;
  font-weight: 500;
}
.btn-submit {
  color: transparent;
  position: relative;
}
.btn-submit::after {
  content: "Submit";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent-x);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-submit.is-sending::after { content: "Sending…"; }
.btn-submit[disabled] { cursor: default; opacity: 0.7; }

.btn-submit { transition: background 0.2s ease; }
.btn-submit:not([disabled]):hover {
  background: var(--grad-accent-x);
}
.btn-submit:not([disabled]):hover::after {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
}

/* Honeypot — off-screen, never focusable, invisible to humans. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 20px auto 0;
  max-width: 640px;
  padding: 0 24px;
  min-height: 26px;
  font-size: 17px;
  line-height: 26px;
  text-align: center;
}
.form-status.is-ok    { color: #1f7a4d; }
.form-status.is-error { color: var(--touch-red); }
/* Reserve no space until there's something to say — keeps the comp's
   button→footer spacing exact on first paint. */
.form-status:empty { display: none; }

/* =====================================================================
   SUCCESS MODAL — glass card, brand accent. Never a native dialog.
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 2, 3, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-open { opacity: 1; }

.modal-card {
  position: relative;
  width: 480px;
  max-width: 100%;
  padding: 44px 44px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(10, 2, 3, 0.28);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.modal-backdrop.is-open .modal-card { transform: none; }

/* Accent rule across the top edge, matching the contact card gradient. */
.modal-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: var(--grad-card);
}

.modal-mark { display: flex; justify-content: center; }
.modal-mark-ring { stroke: rgba(243, 92, 32, 0.28); }
.modal-mark-tick { stroke: #f35c20; }

.modal-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 36px;
  color: var(--touch-red);
}
.modal-body {
  margin-top: 12px;
  font-size: 17px;
  line-height: 27px;
  color: var(--ink);
}

.modal-dismiss {
  margin-top: 28px;
  min-width: 148px;
  height: 50px;
  padding: 0 28px;
  border: 3px solid #f35c20;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: #f35c20;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-dismiss:hover { background: #f35c20; color: #fff; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #9a8f8c;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: rgba(10, 2, 3, 0.06); color: var(--ink); }

.modal-dismiss:focus-visible,
.modal-close:focus-visible { outline: 3px solid #f8921b; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { transition: none; }
}

/* =====================================================================
   FOOTER  (3669 → 3780 · h 112, 134px below submit)
   ===================================================================== */
.site-footer {
  position: relative;
  height: 112px;
  margin-top: 134px;
  background: #000;
  color: #fff;
}
.logo-footer {
  position: absolute;
  left: 65px;
  top: 27px;
  width: 217px;
  height: 56px;
}
.footer-legal {
  position: absolute;
  right: 70px;
  top: 37px;
  width: 773px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 300;
  text-align: right;
}

/* =====================================================================
   RESPONSIVE — tablet  (768 → 1199)
   ===================================================================== */
@media (max-width: 1199px) {
  /* Hero: scale the stage proportionally with vw */
  .hero { height: 82.7vw; min-height: 640px; }
  .hero-arc    { left: -25.7vw; top: -3.2vw;  width: 129.2vw; height: 57.8vw; }
  .hero-ribbon { left: -32.7vw; top: 7.1vw;   width: 135.6vw; height: 44.7vw; }
  .hero-product { left: -10.9vw; top: 10.6vw; width: 66.6vw; height: 57.3vw; }
  .site-header .logo { left: 4.6vw; top: 24px; width: 220px; height: 57px; }
  .btn-contact { right: 4.6vw; top: 30px; }

  .hero-content { position: static; }
  .hero-title  { left: 47vw;   top: 25.5vw; width: 45vw; }
  .hero-title-grad { font-size: 5.14vw; line-height: 5.14vw; }
  .hero-title-sub  { font-size: 3.48vw; line-height: 4.73vw; }
  .hero-inset  { left: 47vw;   top: 39.3vw; width: 9.4vw; height: 21.8vw; }
  .hero-lede   { left: 60.4vw; top: 38.2vw; width: 30vw; font-size: clamp(15px, 1.67vw, 24px); line-height: 1.5; }
  .hero-lede sub { font-size: 0.65em; }
  .hero-copy   { left: 60.4vw; top: 48.3vw; width: 32vw; font-size: clamp(13px, 1.39vw, 20px); line-height: 1.6; }
  .hero-copy br { display: none; }

  .band { height: auto; padding: 60px 0; background-size: cover, cover; }
  .band-title, .band-tagline { position: static; }
  .band-title { font-size: 36px; line-height: 46px; }
  .band-tagline { font-size: 26px; line-height: 40px; margin-top: 8px; }

  /* Specs: flow layout */
  .specs-frame { height: auto; padding-bottom: 48px; }
  .panel-glance, .panel-features { display: none; }
  .stats { position: static; width: auto; height: auto; padding: 40px 0 8px; }
  .specs-content { display: block; }
  .glance {
    position: static;
    width: auto;
    background: #000;
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
  }
  .glance-list { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .glance-list > div { flex: 1 0 30%; min-width: 150px; }
  .features-wrap { background: var(--grad-panel); }
  .features-title {
    position: static;
    background: var(--grad-panel);
    border-radius: 12px 12px 0 0;
    padding: 40px 40px 0;
  }
  .features-grid {
    position: static;
    width: auto;
    background: var(--grad-panel);
    border-radius: 0 0 12px 12px;
    padding: 24px 40px 40px;
  }

  .photos { height: auto; margin-top: 32px; display: flex; gap: 24px; padding: 0 24px; }
  .photo { position: relative; left: auto; right: auto; flex: 1 1 0; height: 34vw; }

  .contact { padding-top: 64px; }
  .contact-title { font-size: 48px; line-height: 48px; }
  .contact-card { margin-top: 40px; }
  .contact-form { padding: 40px 48px 24px; }

  .site-footer { height: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .logo-footer { position: relative; left: auto; top: auto; flex: 0 0 auto; width: 217px; height: 56px; }
  .footer-legal { position: static; width: auto; max-width: 640px; }
}

/* =====================================================================
   RESPONSIVE — stacked hero  (< 992)
   ===================================================================== */
@media (max-width: 991px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: 8px;
    background: #fff;
  }
  .hero-arc    { left: -40vw; top: -20vw; width: 220vw; height: 98vw; }
  .hero-ribbon { left: -60vw; top: 4vw;   width: 230vw; height: 76vw; }
  .hero-product {
    position: relative;
    left: -12vw;
    top: 0;
    margin-top: 24vw;
    width: 95vw;
    height: 82vw;
  }
  .site-header { height: 96px; }
  .site-header .logo { left: 16px; top: 20px; width: 172px; height: 44px; }
  .btn-contact { right: 16px; top: 24px; width: 124px; height: 34px; font-size: 14px; border: 1px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

  .hero-content { position: static; padding: 0 20px; }
  .hero-title, .hero-lede, .hero-copy { position: static; width: auto; }
  .hero-title { margin-top: 8px; }
  .hero-title-grad { font-size: 46px; line-height: 50px; }
  .hero-title-sub  { font-size: 30px; line-height: 42px; }
  .hero-inset { display: none; }
  .hero-lede { margin-top: 20px; font-size: 20px; line-height: 30px; }
  .hero-copy { margin-top: 16px; font-size: 17px; line-height: 27px; }

  .band { padding: 40px 0; }
  .band-title { font-size: 27px; line-height: 36px; }
  .band-tagline { font-size: 20px; line-height: 30px; }

  .stats { flex-direction: column; gap: 18px; align-items: flex-start; }
  .stat, .stat-last { padding: 0; }
  .stat-num { font-size: 48px; line-height: 44px; }
  .stat-label { font-size: 20px; line-height: 30px; }

  .glance { padding: 24px; }
  .glance-list { flex-direction: column; gap: 15px; }

  .features-title { padding: 32px 24px 0; font-size: 38px; }
  .features-grid { grid-template-columns: 1fr; padding: 20px 24px 32px; row-gap: 24px; }

  .photos { flex-direction: column; }
  .photo { flex: 0 0 auto; width: 100%; height: 58vw; }

  .contact-title { font-size: 34px; line-height: 40px; padding: 0 20px; }
  .contact-card { max-width: calc(100% - 32px); }
  .contact-form { padding: 32px 24px 16px; }
  .form-fields { flex-direction: column; padding: 28px 0; }
  .contact-form textarea { height: 150px; }
  .btn-submit { font-size: 22px; height: 58px; padding: 14px 32px; }

  .modal-backdrop { padding: 16px; }
  .modal-card { padding: 36px 24px 28px; }
  .modal-title { font-size: 27px; line-height: 32px; }
  .modal-body { font-size: 16px; line-height: 26px; }
  .modal-close { top: 8px; right: 8px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
