/* ===========================================================
   Kontrast Marketing — front page styles
   Design idea: literal "kontrast" — alternating black/white
   sections, one loud accent color used sparingly.
   =========================================================== */

:root {
  --ink: #0b0b0c;
  --ink-soft: #1c1c1e;
  --paper: #ffffff;
  --paper-soft: #f4f3f1;
  --accent: #ff4e2a;
  --accent-ink: #0b0b0c;
  --line: rgba(11, 11, 12, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --max-width: 1120px;
  --radius: 14px;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent); }

.accent-text { color: var(--accent); }
.accent-dot { color: var(--accent); }

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.16,.8,.24,1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #ff6a4a; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-on-dark);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-soft); }

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(.16,.8,.24,1);
}
.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  letter-spacing: 0.04em;
}
.lang-sep { opacity: 0.4; }
.lang-option { opacity: 0.4; }
.lang-option.is-active { opacity: 1; color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 0 90px;
}

.hero-inner { max-width: 780px; }

.hero .eyebrow { color: var(--accent); }

.hero h1 { color: var(--paper); }

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.82;
  max-width: 620px;
  margin-top: 22px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 40px;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
}

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }

.who { background: var(--paper); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--paper-soft);
  transition: transform 0.35s cubic-bezier(.16,.8,.24,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px -20px rgba(11, 11, 12, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
}

.card p { font-size: 0.92rem; opacity: 0.8; margin-bottom: 0; }

/* ---------- Services (dark) ---------- */
.services {
  background: var(--ink);
  color: var(--paper);
}
.services h2 { color: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
  margin-top: 48px;
}

.service-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  transition: transform 0.3s cubic-bezier(.16,.8,.24,1);
}
.service:hover .service-num { transform: translateX(4px); }

.service h3 { color: var(--paper); }
.service p { opacity: 0.75; font-size: 0.92rem; margin-bottom: 0; }

/* ---------- How it works ---------- */
.how { background: var(--paper); }

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(.16,.8,.24,1), border-color 0.35s ease;
}
.steps li:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  transition: background-color 0.3s ease;
}
.steps li:hover .step-num { background: var(--accent); color: var(--accent-ink); }

.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

/* ---------- Why us ---------- */
.why {
  background: var(--ink);
  color: var(--paper);
}

.why-inner { max-width: 760px; }

.why h2 { color: var(--paper); }

.why-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.why-list li {
  position: relative;
  padding-left: 28px;
  opacity: 0.9;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 96px 0;
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-banner h2 { color: var(--accent-ink); }
.cta-banner p { opacity: 0.85; font-size: 1.05rem; }

.cta-contact {
  margin-top: 22px;
  font-weight: 700;
  font-size: 0.95rem;
}
.cta-contact a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  opacity: 0.7;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 6px;
}
.footer-col a { opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ---------- Motion ---------- */

/* Hero: staggered entrance on load */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(.16,.8,.24,1) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.52s; }

/* Scroll reveal: fade + rise into view, triggered via IntersectionObserver in main.js */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.card-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.service-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.service-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.service-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

.why-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.why-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.why-list .reveal:nth-child(4) { transition-delay: 0.18s; }
.why-list .reveal:nth-child(5) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > *,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .card:hover,
  .steps li:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-burger { display: flex; }
  .header-actions .btn-small { display: none; }
}

@media (max-width: 620px) {
  .hero { padding: 80px 0 60px; }
  .card-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
