/* =========================================================
   LMS Accounting Inc. — Landing Page
   Brand colors aligned with portal theme (src/main.ts)
   ========================================================= */

:root {
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --primary-deep: #0f172a;
  --primary-soft: #e8eefc;
  --secondary: #475569;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --on-surface: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --border: rgba(30, 58, 138, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --header-h: 76px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}

p {
  margin: 0 0 1em;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  user-select: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.28);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.38);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary-deep);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary) 0%, #312e81 100%);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
}

.logo-mark .material-symbols-outlined {
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.logo-text small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.nav > a:not(.btn) {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav > a:not(.btn):hover,
.nav > a:not(.btn).is-active {
  color: var(--primary);
}

.nav > a:not(.btn):hover::after,
.nav > a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-portal .material-symbols-outlined {
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----- Language switcher ----- */
.lang-switcher {
  position: relative;
  z-index: 1100;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 40px;
  padding: 0 0.65rem 0 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.lang-toggle:hover,
.lang-switcher.is-open .lang-toggle {
  border-color: rgba(30, 58, 138, 0.35);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.12);
  background: var(--white);
}

.lang-toggle .material-symbols-outlined {
  font-size: 1.15rem;
}

.lang-chevron {
  font-size: 1.1rem !important;
  color: var(--muted);
  transition: transform var(--transition);
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-current {
  min-width: 1.4rem;
  text-align: center;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu [data-locale] {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  transition: background var(--transition), color var(--transition);
}

.lang-menu [data-locale]:hover,
.lang-menu [data-locale]:focus {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}

.lang-menu [data-locale].is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.45rem;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.lang-menu [data-locale].is-active .lang-code {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface-2);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  place-items: center;
  cursor: pointer;
  color: var(--primary);
}

.nav-toggle .close-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.72) 48%, rgba(15, 23, 42, 0.55) 100%),
    linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-badge .material-symbols-outlined {
  font-size: 1.15rem;
  color: #93c5fd;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.75s var(--ease) 0.08s both;
}

.hero-title-accent {
  background: linear-gradient(90deg, #93c5fd 0%, #c4b5fd 50%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.75s var(--ease) 0.15s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.75s var(--ease) 0.22s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  animation: fadeUp 0.75s var(--ease) 0.3s both;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-trust .material-symbols-outlined {
  font-size: 1.15rem;
  color: #86efac;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-scroll .material-symbols-outlined {
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Stats ----- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.stat-card {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.stat-card:hover {
  background: var(--surface);
}

.stat-icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ----- Sections ----- */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.section-header--light .section-title,
.section-header--light .section-eyebrow {
  color: var(--white);
}

.section-header--light .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.section-header--light .section-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #c7d2fe;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-eyebrow .material-symbols-outlined {
  font-size: 1.05rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ----- Services ----- */
.services {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.12);
}

.service-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-icon-badge {
  position: absolute;
  left: 1rem;
  bottom: -1.15rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.3);
  border: 3px solid var(--white);
}

.service-icon-badge .material-symbols-outlined {
  font-size: 1.35rem;
}

.service-body {
  padding: 1.75rem 1.35rem 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service-body > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-list {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--secondary);
}

.service-list .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

/* AI card spans on large screens when last alone */
.service-card--featured {
  grid-column: auto;
}

/* ----- Technology ----- */
.technology {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(139, 92, 246, 0.25), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(59, 130, 246, 0.2), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #1e1b4b 100%);
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.25), rgba(196, 181, 253, 0.2));
  color: #bfdbfe;
  margin-bottom: 1rem;
}

.tech-icon .material-symbols-outlined {
  font-size: 1.6rem;
}

.tech-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tech-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin: 0;
}

/* ----- Why us ----- */
.why-us {
  background: var(--white);
}

.why-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.why-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 58, 138, 0.22);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.why-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.why-panel-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.why-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-panel-body {
  padding: 1.5rem;
}

.why-panel-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.why-panel-body > p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.why-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge .material-symbols-outlined {
  font-size: 1rem;
}

/* ----- CTA ----- */
.cta {
  background:
    linear-gradient(120deg, rgba(30, 58, 138, 0.95), rgba(49, 46, 129, 0.92)),
    url("../img/hero.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 560px;
}

.cta-copy h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.65rem;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.1rem;
}

.cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.cta-perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.cta-perks .material-symbols-outlined {
  font-size: 1.15rem;
  color: #86efac;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ----- Contact ----- */
.contact {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.contact-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-item a {
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

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

.form-field label span {
  color: var(--error);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  color: #047857;
  font-weight: 500;
  font-size: 0.92rem;
}

.form-success .material-symbols-outlined {
  color: var(--success);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.logo--footer {
  color: var(--white);
  margin-bottom: 1rem;
}

.logo--footer:hover {
  color: #bfdbfe;
}

.footer-brand p {
  max-width: 28ch;
  font-size: 0.93rem;
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social .material-symbols-outlined {
  font-size: 1.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Modal ----- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92svh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: fadeUp 0.3s var(--ease);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  border: 0;
  background: var(--surface-2);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--secondary);
}

.modal-close:hover {
  background: #e2e8f0;
}

body.modal-open {
  overflow: hidden;
}

/* ----- Toast ----- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  background: var(--primary-deep);
  color: var(--white);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 0.92rem;
  max-width: min(90vw, 360px);
  animation: fadeUp 0.3s var(--ease);
}

.toast[hidden] {
  display: none;
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .why-panel {
    position: static;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav > a:not(.btn) {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav > a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .tech-grid,
  .why-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats {
    margin-top: -1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-img {
    animation: none;
    transform: none;
  }
}
