/* NeuroGenius — Advanced neural intelligence for ambitious teams */

:root {
  --violet: #7C3AED;
  --blue: #2563EB;
  --gold: #FBBF24;
  --dark: #111827;
  --dark-soft: #1F2937;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --white: #FFFFFF;
  --gradient-btn: linear-gradient(135deg, var(--violet) 0%, var(--blue) 55%, var(--gold) 100%);
  --gradient-hero: linear-gradient(145deg, #111827 0%, #1e1b4b 45%, #111827 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 24px 48px rgba(17, 24, 39, 0.18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--violet); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

/* Scroll animations — progressive enhancement */
.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js .slide-up, html.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
}

html.js .slide-up.visible, html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--violet);
}

.main-nav .btn-primary {
  color: var(--white);
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
}

/* Hero — neural network */
.hero-neural {
  background: var(--gradient-hero);
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-neural::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.hero-asymmetric {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-neural h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.neural-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  margin-left: auto;
}

.neural-svg {
  width: 100%;
  height: 100%;
}

.neural-node {
  fill: var(--violet);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.8));
}

.neural-node-gold {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}

.neural-node-blue {
  fill: var(--blue);
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.8));
}

.neural-link {
  stroke: rgba(124, 58, 237, 0.45);
  stroke-width: 1.5;
  fill: none;
}

.neural-link-active {
  stroke: url(#linkGradient);
  stroke-width: 2;
  opacity: 0.85;
}

@keyframes nodePulse {
  0%, 100% { r: 6; opacity: 0.85; }
  50% { r: 9; opacity: 1; }
}

@keyframes nodePulseGold {
  0%, 100% { r: 5; opacity: 0.8; }
  50% { r: 8; opacity: 1; }
}

@keyframes linkFlow {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

.neural-node-pulse { animation: nodePulse 2.4s ease-in-out infinite; }
.neural-node-pulse-gold { animation: nodePulseGold 3s ease-in-out infinite 0.5s; }
.neural-node-pulse-blue { animation: nodePulse 2.8s ease-in-out infinite 1s; }

.neural-link-flow {
  stroke-dasharray: 8 32;
  animation: linkFlow 2s linear infinite;
}

.hero-photo {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  width: 55%;
  border-radius: var(--radius);
  border: 3px solid rgba(124, 58, 237, 0.5);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

/* Stats bar */
.stats-bar {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  width: min(1100px, 94vw);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: #F9FAFB;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Solution cards — asymmetric 4 grid */
.solution-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-btn);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.solution-card:nth-child(1) { grid-row: span 2; padding-top: 2.5rem; }
.solution-card:nth-child(2) { margin-top: 2rem; }
.solution-card:nth-child(4) { margin-top: -1rem; }

.solution-ref {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: 0.06em;
}

.solution-card h3 {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  display: inline-block;
  margin-right: 0.5rem;
  animation: nodePulse 2.5s ease-in-out infinite;
}

/* Neural stack strip */
.neural-stack {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
  overflow: hidden;
}

.stack-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--violet);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stack-layer:nth-child(2) { border-left-color: var(--blue); margin-left: 1.5rem; }
.stack-layer:nth-child(3) { border-left-color: var(--gold); margin-left: 3rem; }
.stack-layer:nth-child(4) { border-left-color: var(--violet); margin-left: 4.5rem; }

.stack-layer:hover {
  background: rgba(124, 58, 237, 0.15);
}

.stack-layer-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold);
  min-width: 2.5rem;
}

.stack-visual img {
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.4);
}

/* Why node grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-node {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.why-node::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gradient-btn);
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  animation: nodePulse 3s ease-in-out infinite;
}

.why-node h3 {
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.why-node p {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
}

.why-visual {
  grid-column: 2;
  grid-row: 1 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-node:nth-child(1) { grid-column: 1; grid-row: 1; }
.why-node:nth-child(2) { grid-column: 3; grid-row: 1; }
.why-node:nth-child(3) { grid-column: 1; grid-row: 2; }
.why-node:nth-child(4) { grid-column: 3; grid-row: 2; }

/* Full-bleed CTA */
.cta-fullbleed {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-fullbleed-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-fullbleed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-fullbleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(124, 58, 237, 0.65) 100%);
  z-index: 1;
}

.cta-fullbleed-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 3rem 1.5rem;
}

.cta-fullbleed h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

/* Services 3 cards */
.service-grid-3 {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--grey-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background: var(--gradient-hero);
  color: var(--white);
  border-color: transparent;
  grid-row: span 1;
}

.service-card.featured p { color: rgba(255, 255, 255, 0.8); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--dark-soft);
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--grey);
}

.testimonial-card cite strong {
  display: block;
  color: var(--dark);
  font-style: normal;
}

/* Gradient CTA band */
.cta-gradient {
  background: var(--gradient-btn);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-gradient h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-gradient p {
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.page-hero .hero-lead {
  max-width: 560px;
}

/* Collection grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--grey-light);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.collection-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.collection-card.is-hidden { display: none; }

.collection-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.collection-body {
  padding: 1.5rem;
}

.collection-body .solution-ref {
  margin-bottom: 0.35rem;
}

.collection-body h3 {
  font-size: 1.2rem;
}

.collection-body p {
  font-size: 0.92rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

/* Services page */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-light);
}

.service-detail:nth-child(even) .service-detail-img { order: 2; }
.service-detail:nth-child(even) .service-detail-text { order: 1; }

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.service-detail-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-detail-text h3 {
  font-size: 1.35rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-img-stack {
  display: grid;
  gap: 1rem;
}

.about-img-stack img:first-child {
  transform: rotate(2deg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-img-stack img:last-child {
  transform: rotate(-3deg) translateX(2rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.5rem;
  background: #F9FAFB;
  border-radius: var(--radius);
  border-top: 3px solid var(--violet);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.contact-info h3 {
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info a { color: var(--gold); }
.contact-info a:hover { color: var(--white); }

.contact-info ul {
  margin-top: 1.5rem;
}

.contact-info li {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #DC2626;
}

.field-error {
  display: none;
  color: #DC2626;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.field-error.visible { display: block; }

.form-success {
  display: none;
  padding: 2.5rem;
  text-align: center;
  background: linear-gradient(145deg, #111827 0%, #312e81 100%);
  color: var(--white);
  border-radius: var(--radius);
}

.form-success.visible { display: block; }

.form-success h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.form-success p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin: 0 auto;
}

.contact-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Legal */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--dark);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li { margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover { color: var(--gold); }

.footer-grid p { font-size: 0.92rem; margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--dark);
  color: var(--white);
  padding: 1.25rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  width: min(1100px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.cookie-inner a { color: var(--gold); }

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cookie-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-asymmetric,
  .stack-inner,
  .about-grid,
  .contact-layout,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .solution-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .solution-card:nth-child(1) { grid-row: span 1; }
  .solution-card:nth-child(2),
  .solution-card:nth-child(4) { margin-top: 0; }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-visual {
    grid-column: 1;
    grid-row: auto;
    max-height: 280px;
  }

  .why-node:nth-child(1),
  .why-node:nth-child(2),
  .why-node:nth-child(3),
  .why-node:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .service-grid-3,
  .testimonial-grid,
  .collection-grid,
  .services-list,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo { display: none; }

  .service-detail:nth-child(even) .service-detail-img,
  .service-detail:nth-child(even) .service-detail-text {
    order: unset;
  }

  .stack-layer:nth-child(n) { margin-left: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.65rem 0;
  }

  .solution-grid-4,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar { margin-top: 0; border-radius: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
