/* =============================================================================
   DvitiTech — Legacy pages shell (matches Tailwind site: ink + cyan + amber).
   ============================================================================= */

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --text: #111827;
  --ink-900: #0c1222;
  --ink-950: #050810;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --cta: #f59e0b;
  --cta-hover: #fbbf24;
  --cta-ink: #0a0f1a;
  --success: #059669;
  --error: #dc2626;

  /* Legacy aliases (inline styles in HTML) */
  --text-soft: var(--gray-500);
  --text-faint: var(--gray-400);

  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 12px 24px rgba(17, 24, 39, 0.1);

  --max: 1120px;
  --section-pad: clamp(3.5rem, 8vw, 5.5rem);

  --focus: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #f4f4f5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* ----- Header (dark shell, aligned with Tailwind pages) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.65), transparent);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(8, 145, 178, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.site-footer .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--text);
}

.site-header .logo-text {
  color: #ffffff;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-desktop .nav-link {
  padding: 0.5rem 0.875rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #cbd5e1;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  background: none;
}

.nav-desktop .nav-link:hover,
.nav-desktop .nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-desktop .nav-link.active {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

button.btn {
  line-height: inherit;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: #fcd34d;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--gray-50);
}

.btn-light {
  background: var(--gray-50);
  color: var(--text);
  border-color: var(--gray-200);
}

.btn-light:hover {
  background: var(--gray-100);
}

.btn-link {
  padding: 0.35rem 0.2rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hamburger svg {
  display: block;
  margin: auto;
}

.mobile-drawer {
  display: none;
}

/* ----- Main / sections ----- */
.main {
  padding-bottom: 2.5rem;
}

.section {
  padding: var(--section-pad) 0;
}

.section-soft {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-heading {
  text-align: center;
  margin: 0 auto 2.25rem auto;
  max-width: 40rem;
}

.section-heading p {
  margin-top: 0.65rem;
  font-size: 1.02rem;
}

/* ----- Hero ----- */
.hero {
  padding: var(--section-pad) 0;
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero-title {
  margin-top: 0.5rem;
}

.hero-subtitle {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-meta {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.meta-item {
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.meta-value {
  margin-top: 0.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.media-stack {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.media-stack-inner {
  position: relative;
  padding: 0.85rem;
}

.hero-img {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: var(--gray-50);
}

.media-badge {
  display: inline-flex;
  margin-top: 0.85rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.n {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ----- Full-width hero slider (homepage) ----- */
.hero-slider {
  --hero-slider-h: clamp(80vh, 85vh, 100vh);
  --hero-content-max: 1200px;
  /* Subtle darkening for headline contrast (max ~30% opacity) */
  --hero-overlay: rgba(0, 0, 0, 0.3);
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: var(--hero-slider-h);
  height: var(--hero-slider-h);
  overflow: hidden;
  background: var(--gray-900, #111827);
}

.hero-slider-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
  pointer-events: none;
}

.hero-slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

.hero-slide-wrap {
  width: 100%;
  max-width: var(--hero-content-max);
  margin: 0 auto 0 0;
}

@media (min-width: 769px) {
  .hero-slide-inner {
    padding-left: max(1.25rem, calc((100vw - var(--hero-content-max)) / 2 + 1.25rem));
  }
}

.hero-slide-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero-slide-title {
  margin: 0 0 1rem 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 20ch;
}

.hero-slide-text {
  margin: 0 0 1.75rem 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-slider .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider .btn-hero-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-slider .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-slider-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.hero-slider-prev {
  left: clamp(0.75rem, 3vw, 1.5rem);
}

.hero-slider-next {
  right: clamp(0.75rem, 3vw, 1.5rem);
}

.hero-slider-dots {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-slider-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

.hero-slider-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .hero-slider {
    --hero-slider-h: min(90vh, 720px);
    min-height: var(--hero-slider-h);
    height: auto;
  }

  .hero-slide-inner {
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .hero-slide-wrap {
    margin: 0 auto;
    text-align: left;
  }

  .hero-slide-title {
    max-width: none;
  }

  .hero-slider-prev {
    left: 0.5rem;
  }

  .hero-slider-next {
    right: 0.5rem;
  }

  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slider .btn-hero-primary,
  .hero-slider .btn-hero-secondary {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slider-dot {
    transition: none;
  }
}

/* ----- Page hero (alternate inner pages) ----- */
.page-hero {
  padding: var(--section-pad) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.page-hero-inner h1 {
  margin-top: 0.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.page-hero-subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.page-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ----- Grids & cards ----- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gray-200);
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  margin-top: 0.12rem;
}

.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: var(--accent-soft);
  margin-bottom: 0.85rem;
}

.icon-pill svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.list li {
  padding-left: 1.1rem;
  position: relative;
  margin: 0.4rem 0;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.92rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ----- Bento ----- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
}

.bento .card {
  padding: 1.25rem 1.35rem;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

/* ----- FAQ ----- */
.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin: 0 0 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin-top: 0.75rem;
}

/* ----- CTA band ----- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin: 0;
}

.cta-band p {
  color: var(--text-soft);
}

.cta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ----- Footer (dark shell) ----- */
.site-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.18);
  background: var(--ink-900);
  padding: 3rem 0 1.75rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.footer-block h4 {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #67e8f9;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-block p {
  margin-top: 0.5rem;
  color: #94a3b8;
}

.site-footer .footer-block p a {
  color: #e2e8f0;
  font-weight: 500;
}

.site-footer .footer-block p a:hover {
  color: #22d3ee;
}

.site-footer .logo-text {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.55rem 0;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* ----- Contact form ----- */
.form-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.step-pill {
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.step-pill .n {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
}

.step-pill.active .n {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.step-pill .t {
  margin-top: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
}

.field input,
.field select,
.field textarea {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
  padding: 0.72rem 0.9rem;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.form-note {
  margin-top: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.form-actions .left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hide-step {
  display: none;
}

.recaptcha-wrap {
  margin-top: 0.9rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px dashed var(--gray-200);
  background: var(--gray-50);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.check-line input {
  margin-top: 0.25rem;
}

.check-line span {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-success {
  color: var(--success);
  font-weight: 600;
}

.form-error {
  color: var(--error);
  font-weight: 600;
}

/* ----- Homepage: image-rich sections (SaaS-style) ----- */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.home-split__media {
  position: relative;
}

.home-split__img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-split__content .kicker {
  margin-bottom: 0.65rem;
}

.home-split__content h2 {
  margin-bottom: 1rem;
}

.home-split__content p + p {
  margin-top: 0.85rem;
}

.home-split__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Why us: text + side image */
.home-why-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-top: 0.5rem;
}

.home-why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.home-why-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.home-why-item__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-why-item h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}

.home-why-item p {
  margin: 0;
  font-size: 0.9375rem;
}

.home-why-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.home-why-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Portfolio preview grid */
.home-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-portfolio-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-portfolio-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.home-portfolio-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--gray-100);
}

.home-portfolio-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-portfolio-card:hover .home-portfolio-card__thumb img {
  transform: scale(1.04);
}

.home-portfolio-card__body {
  padding: 1.1rem 1.25rem;
}

.home-portfolio-card__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.home-portfolio-card__body p {
  margin: 0.35rem 0 0 0;
  font-size: 0.875rem;
}

/* Testimonials */
.home-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.home-testimonial__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.home-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
}

.home-testimonial__meta strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.home-testimonial__meta span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.home-testimonial blockquote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Contact split */
.home-contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.home-contact-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-contact-split__img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.home-contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.home-contact-copy h2 {
  margin-bottom: 0.75rem;
}

.home-contact-copy > p {
  margin-bottom: 1.25rem;
}

.home-contact-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.home-contact-points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.home-contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.home-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-contact-note {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* Contact: SaaS-style form preview (links to full form + reCAPTCHA) */
.home-contact-formcard {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.home-contact-formcard__label {
  margin: 0 0 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.home-contact-formcard__hint {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.home-contact-formcard__fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.home-contact-formcard__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-contact-formcard__field:hover {
  border-color: var(--accent);
  background: var(--white);
}

.home-contact-formcard__field:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.home-contact-formcard__chev {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1;
}

.home-contact-formcard__btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.home-contact-formcard__foot {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
}

.home-contact-formcard__foot a {
  color: var(--accent);
  font-weight: 500;
}

.home-contact-formcard__foot a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.quick-contact {
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.quick-contact-wrap {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .quick-contact-wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.quick-contact-copy h2 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  color: var(--text);
}

.quick-contact-copy p {
  margin: 0;
  max-width: 56ch;
  line-height: 1.65;
  color: var(--text-soft);
}

.quick-contact-form {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 0.75rem;
}

.quick-contact-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  background: rgba(249, 250, 251, 0.9);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-contact-input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--focus);
}

.quick-contact-textarea {
  min-height: 110px;
  resize: vertical;
}

.quick-contact-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: #f59e0b;
  color: #0a0f1a;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.quick-contact-submit:hover {
  background: #fbbf24;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38);
}

.quick-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quick-contact-meta {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.quick-contact-meta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.quick-contact-meta a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-right {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7 {
    grid-column: span 1;
  }

  .home-split,
  .home-why-split,
  .home-contact-split {
    grid-template-columns: 1fr;
  }

  .quick-contact-wrap {
    grid-template-columns: 1fr;
  }

  .home-why-split .home-why-photo {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .home-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .mobile-drawer {
    display: block;
  }

  .mobile-drawer .overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-drawer .panel {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(165deg, #0f172a 0%, #0c1222 50%, #060a12 100%);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 158, 11, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 1rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }

  .mobile-drawer.open .overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer.open .panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.15rem;
  }

  .mobile-links .nav-link {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #e2e8f0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .mobile-links .nav-link:hover,
  .mobile-links .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .mobile-links .nav-link.active {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(6, 182, 212, 0.12);
    color: #cffafe;
    font-weight: 600;
  }

  .mobile-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-cta .btn-primary {
    display: inline-flex;
    justify-content: center;
  }

  .mobile-cta .btn-ghost {
    display: inline-flex;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
  }

  .mobile-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 600px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-steps {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
