﻿/* ============================================
   IMPALA IMPACT - style.css
   Design system: Instrument Serif + DM Sans
   Colors: Blue #377AFF, Sage #8DAB7F
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap');

/* --- Reset & Variables --- */
:root {
  --blue: #377AFF;
  --blue-dark: #2B62CC;
  --blue-light: #E8F0FF;
  --sage: #8DAB7F;
  --sage-light: #E8F0E4;
  --dark: #1A1A2E;
  --dark-section: #1E2A3A;
  --text: #2C2C3A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --transition: .3s ease;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, p, a, button {
  overflow-wrap: break-word;
}

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 8px;
}

p { margin-bottom: 16px; color: var(--text); }
p:last-child { margin-bottom: 0; }

.text-small {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* --- Animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(31,181,106,.45); }
  70% { box-shadow: 0 0 0 10px rgba(31,181,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,181,106,0); }
}

html.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.reveal-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--dark);
}
.nav__logo-text span {
  color: var(--blue);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--blue);
}
.nav__links a.active::after,
.nav__links a:hover::after {
  width: 100%;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-toggle a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.lang-toggle a.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

/* Nav CTA */
.nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav__cta:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 32px 24px;
  gap: 0;
  overflow-y: auto;
}
.nav__mobile-menu.open {
  display: flex;
}
.nav__mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav__mobile-menu > a:last-of-type {
  margin-top: 8px;
  border-bottom: none;
  color: var(--blue);
  font-weight: 600;
}
.mobile-lang {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
}
.mobile-lang a {
  font-size: 0.82rem;
  line-height: 1;
  border: none !important;
  padding: 7px 10px !important;
  color: var(--text-muted) !important;
  background: var(--border);
  border-radius: 6px;
}
.mobile-lang a.active {
  background: var(--white);
  color: var(--dark) !important;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
}
.hero h1 {
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}
.hero h1 .hero__accent {
  display: block;
  animation-delay: .15s;
  color: var(--blue);
  font-style: italic;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 20px 0 16px;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;

  border-radius: 999px;

  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp .8s ease .4s forwards;
}
.live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1FB56A;
  box-shadow: 0 0 0 0 rgba(31,181,106,.45);
  animation: livePulse 1.8s ease-out infinite;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  animation: fadeUp .8s ease .6s forwards;
}
.hero__scroll::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-light);
  border-bottom: 1.5px solid var(--text-light);
  transform: rotate(45deg);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(156,163,175,.95), rgba(156,163,175,.2));
}

.hero--sub {
  padding: 140px 24px 60px;
  text-align: center;
}
.hero--sub p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-block {
  padding: 80px 0;
}

.section {
  padding: 80px 0 112px;
}
/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue-light);
  color: var(--text-muted);
}
.btn--white {
  background: var(--white);
  color: var(--dark);
}
.btn--white:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.btn--arrow::after {
  content: ' \2192';
  transition: transform var(--transition);
}
.btn--arrow:hover::after {
  margin-left: 4px;
}

/* ============================================
   PILLAR CARDS (Three pillars section)
   ============================================ */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pillar-card h3 {
  margin: 8px 0 12px;
}
.pillar-card p:not(.text-small) {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================
   STEPS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
}
.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 12px;
}
.step-card h4 { font-size: 0.95rem; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================
   EXPAND STEPS (How it works page)
   ============================================ */
.expand-step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.expand-step:last-child { border-bottom: none; }
.expand-step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}
.expand-step h3 { margin-bottom: 8px; font-size: 1.3rem; }
.expand-step p { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================
   THREE-COL
   ============================================ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.three-col__item {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.three-col__item:hover {
  box-shadow: var(--shadow-md);
}
.three-col__item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================
   OFFER GRID
   ============================================ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.offer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.offer-card h4 { margin-bottom: 10px; }
.offer-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h4 { margin-bottom: 12px; font-size: 1.1rem; }
.team-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: left;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.contact-info a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55, 122, 255, 0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-status {
  font-size: 0.9rem;
  min-height: 20px;
}

/* ============================================
   CTA SECTION (dark)
   ============================================ */
.cta-section {
  background: var(--dark-section);
  padding: 80px 24px;
  text-align: center;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 28px;
}
.cta-section p {
  color: rgba(255,255,255,.7);
}

/* ============================================
   PLATFORM SCREENSHOT PLACEHOLDER
   ============================================ */
.platform-screenshot--placeholder {
  margin-top: 32px;
  padding: 60px 40px;
  background: var(--blue-light);
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  text-align: center;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__logo .nav__logo-text {
  color: var(--white);
}
.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
}
.footer__col li {
  margin-bottom: 8px;
}
.footer__col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}
.footer__bottom-links {
  display: flex;
  gap: 20px;
}
.footer__bottom-links a {
  color: rgba(255,255,255,.4);
  font-size: 0.82rem;
}
.footer__bottom-links a:hover {
  color: rgba(255,255,255,.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillar-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .three-col { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .lang-toggle { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .nav__inner {
    padding: 0 18px;
  }
  .nav__mobile-menu {
    padding: 24px 18px 40px;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 64px;
    text-align: center;
  }
  .hero .container {
    width: 100%;
  }
  .hero--sub {
    padding: 112px 0 48px;
  }
  .hero--sub p,
  .hero__sub {
    font-size: 1rem;
    line-height: 1.55;
  }
  .hero__scroll {
    display: none;
  }

  .section-block { padding: 56px 0; }
  .cta-section { padding: 56px 24px; }

  h1 { font-size: clamp(2rem, 11vw, 2.7rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .live-pill {
    max-width: 100%;
    font-size: 0.75rem;
    line-height: 1.35;
    justify-content: center;
    padding: 2px 0;
  }

  .hero .btn,
  .cta-section .btn,
  .contact-form .btn {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .pillar-cards,
  .steps-grid,
  .three-col,
  .offer-grid,
  .team-grid {
    gap: 16px;
    margin-top: 28px;
  }

  .pillar-card,
  .three-col__item,
  .offer-card,
  .team-card,
  .step-card {
    padding: 22px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .expand-step { flex-direction: column; align-items: flex-start; gap: 12px; }
  .container, .container--narrow { padding: 0 18px; }
  .nav__logo-text {
    font-size: 1.1rem;
  }
  .nav__inner {
    height: 60px;
  }
  .nav__mobile-menu {
    top: 60px;
  }
  .hero {
    padding-top: 96px;
  }
  .hero--sub {
    padding-top: 96px;
  }
  .section-block {
    padding: 44px 0;
  }
  .section {
    padding: 44px 0 64px;
  }
  .cta-section {
    padding: 48px 18px;
  }
  .btn {
    padding: 13px 18px;
  }
  .footer {
    padding: 48px 0 28px;
  }
  .footer__grid {
    gap: 28px;
  }
}

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

  html.reveal-enabled .reveal,
  .hero h1,
  .hero__sub,
  .live-pill,
  .hero__scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}













