/* Brand-forward base styles */
:root {
  --bg: #eff2f7;
  --ink: #141a26;
  --muted: #5b6678;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --stroke: #d9e0ea;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-2: #0ea5e9;
  --shadow: 0 10px 30px rgba(20, 26, 38, 0.08);
}

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

body.site-body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

body.site-body.modal-open {
  overflow: hidden;
}

body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(14, 165, 233, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  z-index: 0;
}

body.site-body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body.site-body > *:not(#estimate-modal) {
  position: relative;
  z-index: 1;
}

#estimate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.estimate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.estimate-modal[hidden] {
  display: none !important;
}

.estimate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.estimate-modal__dialog-wrap {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.estimate-modal__dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  color: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.container {
  max-width: 1200px;
}

.site-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 20px;
}

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
}

.section-subtitle {
  color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  color: #1f1500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.hero {
  padding: clamp(1.5rem, 2vw + 1rem, 3rem);
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hero-badge {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hero-visual {
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.16));
  border: 1px solid var(--stroke);
  padding: 1.5rem;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(27, 26, 23, 0.12);
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s ease forwards;
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.18s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.3s; }
.stagger > *:nth-child(6) { animation-delay: 0.36s; }
.stagger > *:nth-child(7) { animation-delay: 0.42s; }
.stagger > *:nth-child(8) { animation-delay: 0.48s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  background: var(--accent);
  color: #1f1500;
  border-radius: 999px;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.footer-grid a:hover {
  color: var(--accent-2);
}

@media (max-width: 768px) {
  .site-main {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .hero-visual {
    padding: 1.1rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .btn-primary.btn-sm,
  .btn-outline.btn-sm {
    width: auto;
  }

  .card {
    border-radius: 20px;
  }

  .card-soft {
    border-radius: 16px;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    border: 1px solid var(--stroke);
  }

  .footer-grid {
    text-align: left;
  }
}

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

  .hero-badge {
    letter-spacing: 0.15em;
  }

  .stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--stroke);
    padding-top: 0.6rem;
  }
}
