:root {
  --background: #101318;
  --surface: #171b22;
  --surface-strong: #202632;
  --light: #f4f0e8;
  --light-soft: #ebe4d8;
  --text: #f7f8fa;
  --dark-text: #151820;
  --muted: #a6adba;
  --warm-muted: #6d685e;
  --line: rgba(255, 255, 255, 0.1);
  --warm-line: rgba(21, 24, 32, 0.13);
  --orange: #f26d35;
  --blue: #4f8cff;
  --radius: 12px;
  --radius-large: 18px;
  --shadow: 0 24px 70px rgba(4, 7, 12, 0.32);
  --warm-shadow: 0 18px 48px rgba(48, 42, 32, 0.14);
  --font-heading: "General Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #151a22 0%, var(--background) 44%, #12161c 100%);
  background-size: 100% 112px, 112px 100%, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

body.overlay-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--warm-line);
  border-radius: var(--radius-large);
  background: rgba(244, 240, 232, 0.93);
  box-shadow: 0 16px 46px rgba(4, 7, 12, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  width: 150px;
  height: 36px;
  align-items: center;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links,
.footer-links,
.hero-proof {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 22px;
  color: rgba(21, 24, 32, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a,
.footer-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--orange);
}

.nav-action,
.button,
.product-inquiry-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-action {
  padding: 0 17px;
  border: 1px solid rgba(21, 24, 32, 0.14);
  background: var(--dark-text);
  color: #fffaf2;
}

.nav-action:hover,
.button:hover,
.product-inquiry-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: block;
  min-height: calc(100vh - 104px);
  margin-top: 28px;
  padding: 58px;
  border: 1px solid var(--warm-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.1)),
    var(--light);
  box-shadow: var(--warm-shadow);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-title,
.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-heading);
}

h1 {
  margin-bottom: 24px;
  color: var(--dark-text);
  font-size: 5.6rem;
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.5rem;
  line-height: 1.05;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.35;
  font-weight: 700;
}

p {
  line-height: 1.7;
}

.hero-text {
  max-width: 560px;
  margin-top: 28px;
  margin-bottom: 32px;
  color: rgba(21, 24, 32, 0.82);
  font-size: 1.11rem;
}

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

.button {
  min-height: 48px;
  padding: 0 22px;
}

.button-primary {
  border: 1px solid var(--dark-text);
  background: var(--dark-text);
  color: #fffaf2;
  box-shadow: 0 14px 34px rgba(21, 24, 32, 0.22);
}

.button-primary:hover {
  background: #242a36;
}

.button-secondary {
  border: 1px solid rgba(21, 24, 32, 0.16);
  background: rgba(21, 24, 32, 0.04);
  color: var(--dark-text);
}

.button-secondary:hover {
  background: rgba(21, 24, 32, 0.08);
}

.hero-proof {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-proof span,
.card-index {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 109, 53, 0.24);
  border-radius: 999px;
  background: rgba(242, 109, 53, 0.09);
  color: #a9441d;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-proof span {
  padding: 0 12px;
}

.hero-media,
.card-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--warm-line);
  color: inherit;
  cursor: zoom-in;
}

.hero-media {
  align-self: start;
  margin-top: 34px;
  border-radius: var(--radius-large);
  background: #d9d1c5;
  box-shadow: 0 24px 70px rgba(48, 42, 32, 0.23);
}

.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.38));
  pointer-events: none;
}

.hero-media:hover img,
.card-image:hover img {
  transform: scale(1.018);
}

.image-viewer-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(17, 20, 27, 0.68);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.showcase,
.process,
.why,
.cta {
  padding: 88px 0;
}

.section-heading {
  width: min(740px, 100%);
  margin-bottom: 38px;
}

.section-heading p,
.feature-card p,
.process p,
.why p,
.cta p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.feature-card,
.why article,
.contact-form {
  border: 1px solid var(--warm-line);
  border-radius: var(--radius-large);
  background: var(--light);
  box-shadow: var(--warm-shadow);
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  color: var(--dark-text);
}

.feature-card-large {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.06)),
    var(--light);
}

.card-image {
  display: grid;
  min-height: 244px;
  place-items: center;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: #e6ded1;
}

.card-image img {
  width: 100%;
  max-height: 262px;
  object-fit: contain;
  transition: transform 360ms ease;
}

.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.card-index {
  width: fit-content;
  margin-bottom: 16px;
  padding: 0 11px;
  letter-spacing: 0.06em;
}

.feature-card h3,
.feature-card p,
.why article h3,
.why article p {
  color: var(--dark-text);
}

.feature-card p {
  margin-bottom: 18px;
}

.card-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: rgba(21, 24, 32, 0.76);
  font-size: 0.92rem;
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 18px;
}

.card-list li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.product-inquiry-button {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0 17px;
  border: 1px solid rgba(21, 24, 32, 0.16);
  background: rgba(21, 24, 32, 0.055);
  color: var(--dark-text);
}

.product-inquiry-button:hover {
  background: rgba(21, 24, 32, 0.09);
}

.process,
.why {
  border-top: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.process-steps article {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.process-steps article:last-child {
  border-right: 0;
}

.process-steps span {
  display: block;
  margin-bottom: 58px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-steps h3,
.process-steps p {
  margin-bottom: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why article {
  padding: 26px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  gap: 46px;
  align-items: start;
  margin: 54px 0 28px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-intro {
  position: sticky;
  top: 28px;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding: 22px;
  color: var(--dark-text);
}

.form-field-wide,
.form-alert,
.form-submit-row {
  grid-column: 1 / -1;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--dark-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid rgba(21, 24, 32, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--dark-text);
  font-size: 0.96rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 142px;
  padding: 14px;
  resize: vertical;
}

.form-field select {
  color-scheme: light;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(21, 24, 32, 0.7) 50%),
    linear-gradient(135deg, rgba(21, 24, 32, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(21, 24, 32, 0.55);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(242, 109, 53, 0.58);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(242, 109, 53, 0.1);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: rgba(196, 57, 23, 0.72);
}

.field-error {
  min-height: 0;
  margin: 8px 0 0;
  color: #8f2d12;
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  color: rgba(21, 24, 32, 0.7);
  font-size: 0.8rem;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-status {
  margin: 0;
  color: var(--dark-text);
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #176b3b;
}

.form-status a,
.auth-message a {
  color: #a9441d;
  font-weight: 800;
}

.auth-page-shell {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(460px, 1.1fr);
  gap: 46px;
  align-items: start;
  min-height: calc(100vh - 104px);
  padding: 64px 0;
}

.auth-layout-compact {
  grid-template-columns: minmax(280px, 0.92fr) minmax(380px, 0.88fr);
  justify-content: center;
}

.auth-intro {
  padding-top: 32px;
}

.auth-intro h1 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(3.1rem, 6vw, 5.6rem);
}

.auth-intro p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-form {
  align-self: start;
}

.auth-card {
  isolation: isolate;
  overflow: hidden;
  gap: 18px;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 240, 232, 0.82)),
    var(--light);
  box-shadow: 0 28px 90px rgba(4, 7, 12, 0.32);
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--blue), #42d392);
  content: "";
}

.auth-card .form-floating {
  min-height: 58px;
}

.auth-card .form-floating > .form-control {
  min-height: 58px;
  padding: 1.55rem 1rem 0.55rem;
  border: 1px solid rgba(21, 24, 32, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-card .form-floating > .form-control:focus {
  border-color: rgba(79, 140, 255, 0.72);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(79, 140, 255, 0.12),
    0 12px 26px rgba(21, 24, 32, 0.08);
}

.auth-card .form-floating > label {
  display: flex;
  height: 100%;
  align-items: center;
  margin: 0;
  padding: 0.95rem 1rem;
  color: rgba(21, 24, 32, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-card .form-floating > .form-control:focus ~ label,
.auth-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #315dba;
  transform: scale(0.82) translateY(-0.64rem) translateX(0.15rem);
}

.auth-card .alert {
  border-radius: 14px;
}

.auth-card .button-primary.btn {
  border: 0;
  background: linear-gradient(135deg, #151820, #243042);
  box-shadow: 0 16px 36px rgba(21, 24, 32, 0.24);
}

.auth-card .button-primary.btn:hover,
.auth-card .button-primary.btn:focus-visible {
  background: linear-gradient(135deg, #202734, #315dba);
}

.auth-card .form-status a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.auth-message {
  grid-column: 1 / -1;
  padding: 14px 15px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-message p {
  margin-bottom: 6px;
  color: inherit;
}

.auth-message p:last-child {
  margin-bottom: 0;
}

.auth-message-error {
  border: 1px solid rgba(196, 57, 23, 0.24);
  background: rgba(196, 57, 23, 0.09);
  color: #7b260f;
}

.auth-message-success {
  border: 1px solid rgba(23, 107, 59, 0.22);
  background: rgba(23, 107, 59, 0.08);
  color: #176b3b;
}

.form-alert {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(390px, calc(100vw - 40px));
  padding: 15px 17px;
  border: 1px solid rgba(242, 109, 53, 0.28);
  border-radius: var(--radius);
  background: rgba(31, 23, 18, 0.95);
  color: #ffd7c8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(20px);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-alert.is-success {
  border-color: rgba(184, 243, 207, 0.28);
  background: rgba(10, 20, 15, 0.95);
  color: #c8f7da;
}

.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 13, 18, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(18px);
}

.image-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-overlay-content {
  display: grid;
  gap: 14px;
  width: min(1120px, 92vw);
}

.image-overlay img {
  width: 100%;
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-large);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.72);
}

.image-overlay-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.image-overlay-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.image-overlay-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--warm-line);
  border-radius: 50%;
  background: var(--light);
  color: var(--dark-text);
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(4, 7, 12, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, bottom 180ms ease;
  font-size: 1.35rem;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 20px 56px rgba(4, 7, 12, 0.28);
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 700;
}

.footer-brand {
  display: flex;
  width: 142px;
  height: 34px;
  align-items: center;
  overflow: hidden;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.92rem;
  text-align: center;
}

.footer-links {
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 1440px) {
  .page-shell {
    width: min(100% - 72px, 1320px);
  }

  .hero {
    min-height: 760px;
    padding: 68px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  }

  h1 {
    font-size: 6.3rem;
  }

  h2 {
    font-size: 3.9rem;
  }

  .hero-media img {
    height: 590px;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .hero {
    padding: 44px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: 36px;
  }

  .hero-media {
    margin-top: 26px;
  }

  .hero-media img {
    height: 470px;
  }

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

  .feature-card-large {
    grid-column: 1 / -1;
  }

  .feature-card-large {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
  }

  .feature-card-large .card-image {
    min-height: 100%;
    margin-bottom: 0;
  }

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

  .process-steps article {
    border-bottom: 1px solid var(--line);
  }

  .process-steps article:nth-child(2n) {
    border-right: 0;
  }

  .process-steps article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .hero,
  .cta,
  .auth-layout,
  .auth-layout-compact {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 40px;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 1.22;
  }

  .hero-media {
    margin-top: 0;
  }

  .feature-card-large {
    display: flex;
    flex-direction: column;
    grid-column: auto;
  }

  .feature-card-large .card-image {
    min-height: 244px;
    margin-bottom: 22px;
  }

  .process-steps span {
    margin-bottom: 28px;
  }

  .contact-intro {
    position: static;
  }

  .auth-layout {
    min-height: auto;
    padding: 48px 0;
  }

  .auth-intro {
    padding-top: 0;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 12px;
    padding: 10px;
  }

  .brand {
    width: 128px;
  }

  .nav-action {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.82rem;
  }


  .hero {
    gap: 30px;
    margin-top: 22px;
    padding: 30px 22px;
    border-radius: var(--radius-large);
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .showcase,
  .process,
  .why,
  .cta {
    padding: 62px 0;
  }

  .product-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps article,
  .process-steps article:nth-child(2n),
  .process-steps article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-steps article:last-child {
    border-bottom: 0;
  }

  .feature-card,
  .why article {
    padding: 18px;
  }

  .card-image {
    min-height: 210px;
  }

  .feature-card-large .card-image {
    min-height: 210px;
  }

  .card-image img {
    max-height: 220px;
  }

  .cta {
    margin-top: 34px;
    padding: 24px;
    border-radius: var(--radius-large);
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .auth-layout {
    gap: 28px;
  }

  .auth-intro h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .button,
  .form-submit-row {
    width: 100%;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .site-header {
    border-radius: var(--radius);
  }

  .brand {
    width: 112px;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }


  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-proof span {
    width: 100%;
  }

  .card-image {
    min-height: 184px;
    padding: 14px;
  }

  .feature-card-large .card-image {
    min-height: 184px;
  }

  .card-image img {
    max-height: 190px;
  }

  .process-steps article,
  .why article,
  .contact-form,
  .feature-card {
    padding: 16px;
  }

  .form-alert {
    right: 9px;
    bottom: 76px;
    width: calc(100vw - 18px);
  }
}

@media (max-height: 680px) and (min-width: 981px) {
  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: 430px;
  }
}
