/* ================================================================
   AVALIOR — Design System
   "Precision in Motion."
   ================================================================ */

/* ---- Variables ---- */
:root {
  --c-white:  #F7F8F9;
  --c-dark:   #1E2227;
  --c-blue:   #1F4E79;
  --c-gray:   #A7B0B7;
  --c-green:  #00B67A;
  --c-orange: #F57C2D;
  --c-border: #E2E6EA;
  --c-bg:     #F0F2F5;
  --c-text-muted: #5A6474;

  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-subtle: 0 1px 3px rgba(30, 34, 39, 0.07), 0 1px 2px rgba(30, 34, 39, 0.04);
  --shadow-card:   0 2px 10px rgba(30, 34, 39, 0.08);

  --transition: 200ms linear;

  --nav-height: 68px;
  --max-width:  1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-dark);
}

.display {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }

.tag {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.8;
  color: var(--c-text-muted);
}

.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;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

main { padding-top: var(--nav-height); }

.section    { padding: 5rem 0; }
.section-lg { padding: 7.5rem 0; }

.bg-alt  { background: var(--c-bg); }
.bg-dark { background: var(--c-dark); }

/* ---- Grid ---- */
.grid { display: grid; gap: 1.5rem; }

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

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

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

.nav__logo img {
  height: 108px;
  width: auto;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dark);
  opacity: 0.6;
  position: relative;
  transition: opacity var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  opacity: 1;
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__cta {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__cta:hover { background: var(--c-blue); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-dark);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn--primary {
  background: var(--c-orange);
  color: var(--c-white);
  border-color: var(--c-orange);
}
.btn--primary:hover { background: #d9681a; border-color: #d9681a; }

.btn--secondary {
  background: transparent;
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.btn--secondary:hover { background: var(--c-dark); color: var(--c-white); }

.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}
.btn--blue:hover { background: #163a5a; border-color: #163a5a; }

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(247, 248, 249, 0.35);
}
.btn--ghost:hover { background: rgba(247, 248, 249, 0.08); border-color: rgba(247, 248, 249, 0.7); }

/* ================================================================
   HERO — Homepage
   ================================================================ */
.hero {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 7.5rem 0 6rem;
  overflow: hidden;
}

/* Subtle hatching on right side */
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 48px,
      rgba(31, 78, 121, 0.09) 48px,
      rgba(31, 78, 121, 0.09) 50px
    );
  pointer-events: none;
}

/* Blue accent corner */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30%;
  height: 4px;
  background: var(--c-blue);
}

.hero__content { position: relative; z-index: 1; max-width: 680px; }

.hero__tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-bottom: 1.5rem;
}

.hero__tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-blue);
  flex-shrink: 0;
}

.hero__title {
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: rgba(247, 248, 249, 0.7);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================
   PAGE HERO — inner pages
   ================================================================ */
.page-hero {
  background: var(--c-dark);
  padding: 4.5rem 0 3.5rem;
  color: var(--c-white);
  border-bottom: 3px solid var(--c-blue);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(247, 248, 249, 0.45);
  margin-bottom: 1.5rem;
}

.page-hero__breadcrumb a {
  color: rgba(247, 248, 249, 0.45);
  transition: color var(--transition);
}
.page-hero__breadcrumb a:hover { color: rgba(247, 248, 249, 0.8); }
.page-hero__breadcrumb span { color: rgba(247, 248, 249, 0.25); }

.page-hero .tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-gray);
  margin-bottom: 0.75rem;
}

.page-hero .tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-blue);
  flex-shrink: 0;
}

.page-hero h1 {
  color: var(--c-white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(247, 248, 249, 0.65);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 560px;
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .lead { margin: 0 auto; }

.section-header .tag { display: inline-block; margin-bottom: 0.75rem; }
.section-header h2  { margin-bottom: 0.75rem; }
.section-header .lead { max-width: 540px; }

.divider {
  width: 40px;
  height: 3px;
  background: var(--c-blue);
  margin: 1.25rem 0;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-card);
  border-color: #C8D3DB;
}

.card__icon {
  width: 44px;
  height: 44px;
  background: rgba(31, 78, 121, 0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-blue);
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.card p  { font-size: 0.9375rem; color: var(--c-text-muted); line-height: 1.65; }

/* ================================================================
   TECH GRID
   ================================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-cell {
  background: var(--c-white);
  padding: 1.75rem;
  transition: background var(--transition);
}

.tech-cell:hover { background: #FAFBFC; }

.tech-cell__label {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(31, 78, 121, 0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.875rem;
}

.tech-cell h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--c-dark);
}

.tech-cell p {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ================================================================
   FEATURE ROW (split layout)
   ================================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row--reverse .feature-row__visual { order: -1; }

/* ================================================================
   NIVALIS VISUAL CARD
   ================================================================ */
.nivalis-visual {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.nivalis-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 300px;
}

.nivalis-card__badge {
  width: 60px;
  height: 60px;
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-primary);
  font-size: 1.625rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
}

.nivalis-card .tag {
  display: block;
  margin-bottom: 0.5rem;
}

.nivalis-card h3 {
  font-size: 1.625rem;
  margin-bottom: 0.25rem;
}

.nivalis-card__sub {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray);
}

.nivalis-card__separator {
  width: 32px;
  height: 2px;
  background: var(--c-border);
  margin: 1.25rem auto;
}

.nivalis-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-green);
}

.nivalis-card__status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--c-green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   CHECK LIST
   ================================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--c-dark);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--c-blue);
  border-radius: 50%;
  margin-top: 0.55rem;
}

/* ================================================================
   PILLAR LIST
   ================================================================ */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.pillar-item__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.pillar-item p {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ================================================================
   HIGHLIGHT BOX
   ================================================================ */
.highlight-box {
  border-left: 3px solid var(--c-blue);
  padding: 1.25rem 1.5rem;
  background: rgba(31, 78, 121, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--c-dark);
  line-height: 1.75;
}

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  background: var(--c-dark);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--c-white);
  max-width: 580px;
  margin: 0 auto 1rem;
}

.cta-band p {
  color: rgba(247, 248, 249, 0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--c-dark);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E2227' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-submit { margin-top: 1.5rem; }

.form-message {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form-message--success {
  background: rgba(0, 182, 122, 0.08);
  color: #067A52;
  border: 1px solid rgba(0, 182, 122, 0.25);
}

.form-message--error {
  background: rgba(200, 30, 30, 0.06);
  color: #A01A1A;
  border: 1px solid rgba(200, 30, 30, 0.2);
}

/* Contact info sidebar */
.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-info-item h3 {
  font-size: 0.875rem;
  font-family: var(--font-primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--c-dark);
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.contact-info-item a:hover { color: var(--c-blue); }

.contact-separator {
  width: 100%;
  height: 1px;
  background: var(--c-border);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #12151A;
  color: rgba(247, 248, 249, 0.55);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand img { display: none; }

.footer-wordmark {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 248, 249, 0.92);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-tagline {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 248, 249, 0.25);
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 248, 249, 0.85);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(247, 248, 249, 0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(247, 248, 249, 0.85); }

.footer-bottom {
  border-top: 1px solid rgba(247, 248, 249, 0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size: 0.8125rem; }

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(247, 248, 249, 0.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(247, 248, 249, 0.65); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 3.5rem 0; }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
  }

  .nav__links.is-open { display: flex; }

  .nav__link::after { display: none; }
  .nav__link { opacity: 0.8; font-size: 1rem; }

  .nav__toggle { display: flex; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero::after { display: none; }
  .page-hero { padding: 3rem 0 2.5rem; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row--reverse .feature-row__visual { order: 0; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .cta-band { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .cta-band__actions { flex-direction: column; align-items: center; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---- Hero entrance (immediate, on load) ---- */
.hero__tag {
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}
.hero__title {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}
.hero__subtitle {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.38s;
}
.hero__actions {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.52s;
}

/* Blue accent line in hero draws in */
.hero::before {
  animation: drawLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
  transform-origin: left;
}

/* ---- Nivalis card floating ---- */
.nivalis-card {
  animation: floatY 5s ease-in-out infinite;
}

/* ---- Scroll reveal — initial state ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delays for child items */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

