/* =========================================================
   style.css — Roland Botka landing page
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   --------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:       #08080c;
  --color-surface:  #0f0f17;
  --color-card:     #181826;
  --color-border:   #252535;
  --color-text:     #f0ede8;
  --color-muted:    #a7a7ae;
  --color-accent:     #00e5ff;
  --color-accent-rgb: 0, 229, 255;
  --color-accent-h:   #00c4e0;  /* hover */
  --color-accent-fg:  #08080c;  /* text on accent bg */

  /* Typography */
  --font-sans:    'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale (base 1rem = 16px) */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-24: 6rem;      /* 96px */

  /* Accent tint */
  --color-accent-light: rgba(var(--color-accent-rgb), 0.1);

  /* Error state */
  --color-error:        #f87171;
  --color-error-dark:   #ef4444;
  --color-error-bg:     rgba(239, 68, 68, 0.1);
  --color-error-border: rgba(239, 68, 68, 0.25);

  /* Success state */
  --color-success:        #4ade80;
  --color-success-rgb:    74, 222, 128;
  --color-success-bg:     rgba(74, 222, 128, 0.1);
  --color-success-border: rgba(74, 222, 128, 0.25);

  /* Footer */
  --color-footer-bg:   #050508;
  --color-footer-text: #a7a7ae;
  --color-footer-link: #a7a7ae;

  /* Layout */
  --container-max: 1100px;
  --radius:     0.5rem;
  --radius-lg:  1rem;

  /* Transitions */
  --transition: 200ms ease;
}

/* ---------------------------------------------------------
   2. 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-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* ---------------------------------------------------------
   3. Layout Utilities
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}


.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  margin-top: var(--space-4);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   4. Navigation
   --------------------------------------------------------- */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 4rem;
  position: relative;
}

.nav-lang-item {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-inline: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--color-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-lang {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.lang-btn {
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--color-muted);
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}

.lang-btn.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--space-2);
  margin-inline-start: auto;
  border-radius: var(--radius);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Hamburger open state */
.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   5. Hero
   --------------------------------------------------------- */
.hero {
  padding-block: var(--space-24) var(--space-16);
  min-height: 88dvh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
}

/* Canvas particle background */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse, rgba(var(--color-accent-rgb), 0.055) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(var(--color-success-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--color-success-rgb), 0.07);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-success);
  margin-bottom: var(--space-5);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0ms;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
  will-change: box-shadow;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-success-rgb), 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(var(--color-success-rgb), 0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 100ms;
  background: linear-gradient(135deg, var(--color-text) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Typewriter role line */
.hero-role {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  min-height: 1.5em;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 200ms;
}

.hero-role-prefix {
  opacity: 0.45;
}

.hero-role-text::after {
  content: '_';
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.75;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 300ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 440ms;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 560ms;
}

.hero-cta-note {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--transition);
}

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

/* Photo */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
  animation: heroSlideIn 0.8s ease both 200ms;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.35), transparent 60%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.hero-photo-wrap:hover::before {
  opacity: 1;
}

.hero-photo {
  width: 300px;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Hero entrance animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(1.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 1.6s;
  transition: border-color var(--transition), color var(--transition);
}

.scroll-indicator:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.scroll-indicator svg {
  animation: bounceArrow 2.4s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(2.5rem); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-headline,
  .hero-role,
  .hero-sub,
  .hero-actions,
  .hero-meta,
  .hero-photo-wrap,
  .scroll-indicator {
    animation: none;
    opacity: 1;
  }
  .hero-canvas          { display: none; }
  .hero-badge-dot       { animation: none; }
  .hero-role-text::after { animation: none; }
  .scroll-indicator svg { animation: none; }
}

/* ---------------------------------------------------------
   6. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

.btn-primary:hover {
  background: var(--color-accent-h);
  box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   7. Services
   --------------------------------------------------------- */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: var(--space-8);
  column-gap: var(--space-6);
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
}

.service-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color var(--transition);
}

.service-card:hover h3 {
  color: var(--color-accent);
}

.service-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.service-card:hover .service-tag {
  border-color: rgba(var(--color-accent-rgb), 0.35);
  color: var(--color-text);
}

.service-outcome {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
  transition: color var(--transition);
}

.service-card:hover .service-outcome {
  color: var(--color-text);
}

.service-deliverable {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   8. How It Works
   --------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-12);
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  counter-increment: step;
}

.step-num {
  margin-bottom: var(--space-2);
}

.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: rgba(var(--color-accent-rgb), 0.15);
  transition: color var(--transition);
}

.step:hover .step-num::before {
  color: rgba(var(--color-accent-rgb), 0.5);
}

.step-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
  transition: color var(--transition);
}

.step:hover .step-label {
  color: var(--color-accent);
}

.step p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   9. About
   --------------------------------------------------------- */
.about {
  background: var(--color-surface);
}

.about-stats {
  display: flex;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-8);
  margin-bottom: var(--space-16);
}

.about-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-4);
  cursor: default;
  position: relative;
}

.about-stat + .about-stat {
  border-left: 1px solid var(--color-border);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
  transition: color var(--transition);
}

.about-stat:hover .about-stat-num {
  color: var(--color-accent);
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
  text-align: center;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.why-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.why-list li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.why-list li:first-child {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-stats {
    margin-bottom: var(--space-12);
  }
}

@media (max-width: 640px) {
  .about-stats {
    flex-direction: column;
  }

  .about-stat {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
  }

  .about-stat + .about-stat {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .about-stat-num {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* ---------------------------------------------------------
   10. FAQ
   --------------------------------------------------------- */
.faq-list {
  counter-reset: faq-counter;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  counter-increment: faq-counter;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.faq-item[open]::before {
  opacity: 1;
}

.faq-q {
  display: grid;
  grid-template-columns: 3rem 1fr 1rem;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: color var(--transition);
}

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

.faq-q::before {
  content: '0' counter(faq-counter);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  transition: color var(--transition);
}

.faq-item[open] .faq-q::before {
  color: var(--color-accent);
}

.faq-q::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--color-muted);
  border-bottom: 1.5px solid var(--color-muted);
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition);
  justify-self: center;
}

.faq-item[open] .faq-q::after {
  transform: rotate(-135deg) translate(-1px, 2px);
  border-color: var(--color-accent);
}

.faq-item[open] .faq-q {
  color: var(--color-accent);
}

.faq-a {
  padding: 0 var(--space-2) var(--space-6) 4.75rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   11. Contact
   --------------------------------------------------------- */
.contact {
  background: var(--color-surface);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-title {
  text-align: left;
}

.contact-title::after {
  margin-inline: 0;
}

.contact-intro {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.contact-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.contact-direct-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-direct-email:hover {
  color: var(--color-accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  font: inherit;
  font-size: 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-success {
  color: var(--color-success);
  font-size: 0.9375rem;
  padding: var(--space-4);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius);
}

.form-error {
  color: var(--color-error-dark);
  font-size: 0.9375rem;
  padding: var(--space-4);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-footer-text);
  padding-block: var(--space-8);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer a {
  color: var(--color-footer-link);
  transition: color var(--transition);
}

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

.footer-linkedin,
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------------------------------------------------------
   13. Fade-in Animation
   --------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   14. UI Utilities (skip link · scroll progress · back-to-top · nav active)
   --------------------------------------------------------- */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: var(--color-accent-fg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 200;
  transition: width 80ms linear;
  pointer-events: none;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-6);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color var(--transition), color var(--transition);
  pointer-events: none;
}

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

.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Active nav link indicator */
.nav-links a.nav-active {
  color: var(--color-accent);
}

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  border-radius: 1px;
}


/* Scrolled nav shadow */
.nav-wrapper.scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  #scroll-progress { transition: none; }
}

/* ---------------------------------------------------------
   15. Overlays (GDPR · Privacy Modal · Cookie Bar)
   --------------------------------------------------------- */

/* GDPR notice text & privacy links */
.form-gdpr {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.form-gdpr-link,
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  display: inline;
}

.footer-link-btn {
  color: var(--color-muted);
}

.footer-link-btn:hover,
.form-gdpr-link:hover {
  color: var(--color-accent);
}

/* Privacy modal */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.privacy-modal-box {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.privacy-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.privacy-modal-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.privacy-modal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.35rem;
  color: var(--color-text);
}

.privacy-modal-body h3:first-child {
  margin-top: 0;
}

.privacy-modal-body p,
.privacy-modal-body li {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.privacy-modal-body ul {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.privacy-modal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Cookie consent bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

/* ---------------------------------------------------------
   16. Responsive
   --------------------------------------------------------- */

/* Tablet (≤ 860px) */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr 220px;
    column-gap: var(--space-8);
  }

  .hero-photo {
    width: 220px;
    height: 400px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Touch devices — static dot grid fallback */
@media (hover: none) {
  .hero-canvas { display: none; }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.32) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 40%, transparent 100%);
  }
}

/* Tablet nav (≤ 768px) — hamburger + dropdown */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    color: var(--color-text);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-lang-item {
    position: static;
    transform: none;
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-6);
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .section {
    padding-block: var(--space-16);
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-photo {
    width: 180px;
    height: 240px;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

