/* ═══════════════════════════════════════════
   AFFÄRSBRYGGAN — Minimal clean layout v3
   ═══════════════════════════════════════════ */

:root {
  --bg: #e6e4df;
  --surface: #fbfbf9;
  --text: #0d0d0d;
  --text-2: #474744;
  --text-3: #8c8c86;
  --border: #d6d5d0;
  --gap: 5px;
  --radius: 18px;
  --radius-sm: 12px;
}

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

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

body {
  font-family: 'Aileron', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ═══ ANIMATIONS ═══ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.steps-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.steps-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.steps-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.team-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }

.reveal-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}

.reveal-words .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-words.animate .word-inner {
  transform: translateY(0);
}

.reveal-words.animate .word:nth-child(1) .word-inner { transition-delay: 0.06s; }
.reveal-words.animate .word:nth-child(2) .word-inner { transition-delay: 0.12s; }
.reveal-words.animate .word:nth-child(3) .word-inner { transition-delay: 0.18s; }
.reveal-words.animate .word:nth-child(4) .word-inner { transition-delay: 0.24s; }
.reveal-words.animate .word:nth-child(5) .word-inner { transition-delay: 0.30s; }
.reveal-words.animate .word:nth-child(6) .word-inner { transition-delay: 0.36s; }
.reveal-words.animate .word:nth-child(7) .word-inner { transition-delay: 0.42s; }
.reveal-words.animate .word:nth-child(8) .word-inner { transition-delay: 0.48s; }
.reveal-words.animate .word:nth-child(9) .word-inner { transition-delay: 0.54s; }
.reveal-words.animate .word:nth-child(10) .word-inner { transition-delay: 0.60s; }
.reveal-words.animate .word:nth-child(11) .word-inner { transition-delay: 0.66s; }
.reveal-words.animate .word:nth-child(12) .word-inner { transition-delay: 0.72s; }

.anim-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-line.visible {
  transform: scaleX(1);
}

.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

.value-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faq-reveal {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ═══ HERO ═══ */
.hero {
  padding: var(--gap) var(--gap) 0;
}

.hero-inner {
  background: #1a1917;
  color: var(--surface);
  border-radius: var(--radius);
  padding: 28px 20px 44px;
  min-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,25,23,0.7) 0%, rgba(26,25,23,0.1) 40%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner > *:not(.hero-video) {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  flex-shrink: 0;
  display: flex;
  filter: invert(1);
}

.hero-logo img {
  width: 28px;
  height: auto;
  object-fit: contain;
}

.hero-nav {
  display: none;
  gap: 28px;
}

.hero-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s ease;
  position: relative;
}

.hero-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.hero-nav a:hover {
  color: #fff;
}

.hero-nav a:hover::after {
  width: 100%;
}

.hero-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.hero-cta {
  display: none;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 24px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.mobile-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #fff;
  color: var(--text) !important;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 12px;
  align-self: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  margin-top: auto;
  padding-top: 48px;
  margin-bottom: 36px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
  margin-top: auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(2px);
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 44px 56px 80px;
  }

  .hero-nav {
    display: flex;
  }

  .hero-cta {
    display: inline-flex;
  }

  .mobile-toggle {
    display: none;
  }

  .hero-bottom {
    grid-template-columns: 1.6fr 1fr;
    gap: 64px;
  }

  .hero-sub {
    margin-left: auto;
  }

  .hero-arrow {
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .hero-inner {
    padding: 48px 72px 96px;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .hero-bottom {
    gap: 80px;
  }
}

/* ═══ SERVICES ═══ */
.services {
  padding: var(--gap) var(--gap) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 20px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.service-link:hover {
  color: var(--text);
  gap: 10px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ═══ SPLIT SECTIONS ═══ */
.split {
  padding: var(--gap) var(--gap) 0;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.split-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}

.split-media img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.split-row:hover .split-media img {
  transform: scale(1.04);
}

.split-content {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.split-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.split-content p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
}

@media (min-width: 768px) {
  .split-row {
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
  }

  .split-media {
    aspect-ratio: auto;
  }

  .split-row.reverse .split-media {
    order: 2;
  }

  .split-row.reverse .split-content {
    order: 1;
  }

  .split-content {
    padding: 56px 48px;
  }
}

@media (min-width: 1200px) {
  .split-row {
    min-height: 520px;
  }

  .split-content {
    padding: 64px 60px;
  }

  .split-content h2 {
    font-size: 2rem;
  }
}

/* ═══ MARQUEE ═══ */
.marquee {
  padding: var(--gap) var(--gap) 0;
}

.marquee-track {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
}

.marquee-track:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content span {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-3);
  flex-shrink: 0;
}

.marquee-dot {
  width: 5px !important;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  font-size: 0 !important;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ PROCESS STEPS ═══ */
.steps {
  padding: var(--gap) var(--gap) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  border-top: 2px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
  border-top-color: var(--text-3);
}

.step-num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 300;
  color: var(--border);
  margin-bottom: 20px;
  line-height: 1;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .step-card {
    padding: 40px 32px;
  }
}

/* ═══ VALUES ═══ */
.values {
  padding: var(--gap) var(--gap) 0;
}

.values-inner {
  background: var(--text);
  border-radius: var(--radius);
  padding: 52px 24px;
}

.values-header {
  margin-bottom: 44px;
}

.values-header .split-label {
  color: rgba(255,255,255,0.25);
}

.values-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.value-item:hover .value-icon {
  background: rgba(255,255,255,0.1);
}

.value-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.45);
  transition: stroke 0.3s ease;
}

.value-item:hover .value-icon svg {
  stroke: rgba(255,255,255,0.7);
}

.value-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .values-inner {
    padding: 68px 64px;
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 44px;
  }
}

/* ═══ STATS ═══ */
.stats {
  padding: var(--gap) var(--gap) 0;
}

.stats-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stats-two .stat-number {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.stats-two .stat-label {
  font-size: 12px;
}

.stat-divider {
  display: none;
}

@media (min-width: 768px) {
  .stats-inner {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    padding: 60px 64px;
    gap: 0;
    align-items: center;
  }

  .stats-inner.stats-two {
    grid-template-columns: 1fr auto 1fr;
    padding: 80px 64px;
  }

  .stat-divider {
    display: block;
    width: 1px;
    height: 52px;
    background: var(--border);
    margin: 0 auto;
  }

  .stats-two .stat-divider {
    height: 72px;
  }
}

/* ═══ TESTIMONIAL ═══ */
.testimonial {
  padding: var(--gap) var(--gap) 0;
}

.testimonial-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 52px 24px;
}

.testimonial-quote {
  max-width: 600px;
}

.quote-mark {
  color: var(--border);
  margin-bottom: 20px;
}

.testimonial-quote blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  font-style: normal;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'IBM Plex Mono', monospace;
}

@media (min-width: 768px) {
  .testimonial-inner {
    padding: 72px 64px;
  }
}

/* ═══ TEAM ═══ */
.team {
  padding: var(--gap) var(--gap) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-photo {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg);
}

.team-photo img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  transition: padding 0.3s ease;
}

.team-card:hover .team-overlay {
  padding-bottom: 32px;
}

.team-overlay h3 {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.015em;
}

.team-overlay span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-photo {
    aspect-ratio: 3/2;
  }

  .team-overlay {
    padding: 36px;
  }

  .team-card:hover .team-overlay {
    padding-bottom: 40px;
  }

  .team-overlay h3 {
    font-size: 22px;
  }
}

/* ═══ FAQ ═══ */
.faq {
  padding: var(--gap) var(--gap) 0;
}

.faq-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 52px 24px;
}

.faq-header {
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.faq-list {
  max-width: 680px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--text-2);
}

.faq-answer {
  padding-bottom: 22px;
  overflow: hidden;
  animation: faqOpen 0.3s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 560px;
}

@media (min-width: 768px) {
  .faq-inner {
    padding: 68px 64px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 24px 0;
  }
}

/* ═══ CTA ═══ */
.cta {
  padding: var(--gap) var(--gap) 0;
}

.cta-inner {
  background: var(--text);
  border-radius: var(--radius);
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.cta-content .split-label {
  color: rgba(255,255,255,0.25);
}

.cta-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn.primary {
  background: #fff;
  color: var(--text);
}

.cta-btn.primary:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.cta-btn.primary svg {
  transition: transform 0.3s ease;
}

.cta-btn.primary:hover svg {
  transform: translateX(4px);
}

.cta-btn.secondary {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.07);
}

.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.12);
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: 1.5fr 1fr;
    padding: 84px 68px;
    gap: 64px;
  }

  .cta-actions {
    align-items: flex-end;
  }

  .cta-btn {
    font-size: 15px;
    padding: 16px 32px;
  }
}

/* ═══ FOOTER ═══ */
.site-footer {
  padding: var(--gap);
}

.footer-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 22px;
  height: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 320px;
}

.footer-right {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom span {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'IBM Plex Mono', monospace;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 52px 64px 40px;
  }

  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
  }

  .footer-right {
    justify-content: flex-end;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ═══ MOBILE POLISH ═══ */
@media (max-width: 767px) {
  .faq-item summary {
    min-height: 48px;
  }

  .hero-arrow {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu a {
    padding: 4px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .step-card {
    padding: 28px 20px;
  }

  .values-grid {
    gap: 24px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 374px) {
  .hero h1 {
    font-size: 2rem;
  }

  .split-content h2,
  .values-header h2,
  .faq-header h2,
  .cta-content h2 {
    font-size: 1.35rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 28px;
  }

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

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

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .anim-fade,
  .text-slide,
  .value-reveal,
  .faq-reveal {
    opacity: 1;
    transform: none;
  }

  .img-reveal {
    clip-path: inset(0 0 0 0);
  }

  .anim-line {
    transform: scaleX(1);
  }

  .reveal-words .word-inner {
    transform: translateY(0);
  }
}

/* ═══ SELECTION ═══ */
::selection {
  background: var(--text);
  color: var(--surface);
}
