/* ============================================================
   roskosch.it — Dark Design System v2.0
   IT-Theme · Space Grotesk + Manrope · Electric Blue
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  --accent:      #3B82F6;
  --accent-2:    #60A5FA;
  --accent-soft: rgba(59,130,246,0.10);
  --accent-glow: rgba(59,130,246,0.22);
  --accent-ink:  #ffffff;

  --bg:          #080C18;
  --bg-2:        #0D1424;
  --surface:     #111827;
  --surface-2:   #162035;
  --ink:         #F1F5FB;
  --ink-2:       #94A3BB;
  --ink-3:       #4E6580;
  --line:        rgba(255,255,255,0.07);
  --line-2:      rgba(255,255,255,0.04);
  --line-accent: rgba(59,130,246,0.25);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --anim-scale: 1;
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --maxw: 1240px;

  --shadow:    0 1px 3px rgba(0,0,0,.5), 0 8px 30px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.6), 0 30px 70px -20px rgba(0,0,0,.8);
  --glow:      0 0 40px rgba(59,130,246,0.12);
  --glow-lg:   0 0 80px rgba(59,130,246,0.18);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loaded .rw { visibility: visible; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Binary Rain Canvas ------------------------------------ */
#binary-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ---- Layout ------------------------------------------------ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head h2 { margin: 8px 0 16px; }
.section-head p  { color: var(--ink-2); font-size: 1.0625rem; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: all .22s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 30px rgba(59,130,246,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-accent);
  background: var(--accent-soft);
}
.arr { font-size: 1.1em; transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---- Header ----------------------------------------------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(8,12,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.hdr .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo .mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: block;
  box-shadow: 0 0 14px rgba(59,130,246,0.5);
}
.logo .dot { color: var(--accent-2); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn:hover { background: rgba(255,255,255,0.05); color: var(--ink); }

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy .kicker { margin-bottom: 16px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-lead {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 500;
  flex-wrap: wrap;
}
.tdot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  opacity: 0.6;
}

/* ---- Hero Visual (Browser Mockup) ------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.browser {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), var(--glow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  margin-left: 8px;
}
.browser-body {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--surface) 100%);
}
.bb-row.skel {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  animation: pulse 2.4s ease-in-out infinite;
}
.bb-row.skel:nth-child(2n) { animation-delay: .4s; }
.bb-row.skel:nth-child(3n) { animation-delay: .8s; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Accent line in browser */
.browser-body::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---- Word reveal ------------------------------------------ */
.rw { visibility: hidden; display: block; }
.rw.reveal-words { visibility: visible; }
.rw .w { display: inline-block; overflow: hidden; }
.rw .w span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.rw.go .w span {
  animation: wordUp .65s calc(var(--wi, 0) * 0.07s) var(--ease-out) both;
}
@keyframes wordUp {
  to { transform: translateY(0); opacity: 1; }
}
.rw.accent .w span { color: var(--accent-2); }

/* ---- Reveal on scroll ------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s calc(var(--i, 0) * 0.08s) var(--ease-out),
              transform .6s calc(var(--i, 0) * 0.08s) var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Marquee ---------------------------------------------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  padding: 0 4px;
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ---- Service Cards (Leistungen) --------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
  overflow: hidden;
  cursor: default;
}
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.svc:hover {
  border-color: var(--line-accent);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.svc:hover::before { opacity: 1; }
.svc-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.svc-ico {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent-2);
}
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 { margin-bottom: 10px; font-size: 1.125rem; }
.svc > p { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.svc ul { display: flex; flex-direction: column; gap: 8px; }
.svc ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.svc ul li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ---- Features row ----------------------------------------- */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  font-size: 0.84rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.feat svg { width: 16px; height: 16px; color: var(--accent); }
.feat:hover { border-color: var(--line-accent); color: var(--ink); }

/* ---- About (Über mich) ------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.about-copy { position: relative; }
.about-copy h2 { margin: 8px 0 18px; }
.about-copy > p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.7; }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 28px;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-point svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-point b { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.about-point span { font-size: 0.84rem; color: var(--ink-2); }

/* ---- Process (Ablauf) ------------------------------------- */
.proc { position: relative; margin-top: 16px; }
.proc-line {
  position: absolute;
  left: 28px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
  overflow: hidden;
}
.proc-line .fill {
  display: block;
  width: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  height: 0%;
  transition: height .4s var(--ease);
  box-shadow: 0 0 8px var(--accent-glow);
}
.proc-steps { display: flex; flex-direction: column; gap: 0; }
.proc-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-2);
  opacity: 0.5;
  transform: translateX(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.proc-step:last-child { border-bottom: none; }
.proc-step.in { opacity: 1; transform: translateX(0); }
.proc-bullet {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  transition: border-color .3s, color .3s, background .3s, box-shadow .3s;
}
.proc-step.in .proc-bullet {
  border-color: var(--line-accent);
  color: var(--accent-2);
  background: var(--accent-soft);
  box-shadow: var(--glow);
}
.proc-body { padding: 8px 0; }
.proc-body .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.proc-body h3 { font-size: 1.0625rem; }
.proc-body p { color: var(--ink-2); font-size: 0.9rem; line-height: 1.6; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid var(--line-accent);
}

/* ---- Portfolio -------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.portfolio-item {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.portfolio-item:hover {
  border-color: var(--line-accent);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.portfolio-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.portfolio-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.portfolio-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.portfolio-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
.portfolio-browser { position: relative; }
.portfolio-browser .browser-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.portfolio-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.portfolio-item:hover .portfolio-img-wrap img { transform: scale(1.03); }
.portfolio-meta {
  padding: 20px 22px;
  border-top: 1px solid var(--line-2);
}
.portfolio-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.portfolio-meta h3 { font-size: 1rem; margin-bottom: 4px; }
.portfolio-meta p  { font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; }

/* ---- Stats ------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat {
  padding: 36px 24px;
  text-align: center;
  background: var(--surface);
  transition: background .3s;
}
.stat:hover { background: var(--surface-2); }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat .num .accent { color: var(--accent-2); }
.stat .lbl {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 500;
}
.count { display: inline-block; }

/* ---- FAQ -------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--ink); }
.faq-q.open { color: var(--ink); }
.pm {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s, background .2s;
}
.pm::before, .pm::after {
  content: '';
  position: absolute;
  background: var(--ink-3);
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .25s, background .2s;
}
.pm::before { width: 9px; height: 1.5px; }
.pm::after  { width: 1.5px; height: 9px; }
.faq-q.open .pm { border-color: var(--accent); background: var(--accent-soft); }
.faq-q.open .pm::before { background: var(--accent-2); }
.faq-q.open .pm::after  { transform: rotate(90deg) scaleY(0); background: var(--accent-2); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a-inner {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---- Contact / CTA ---------------------------------------- */
.cta { background: transparent; }
.cta-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  top: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-l {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
}
.cta-l h2 { margin: 8px 0 16px; }
.cta-l > p { color: var(--ink-2); line-height: 1.7; margin-bottom: 36px; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; }
.cta-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color .2s;
}
.cta-contact a svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cta-contact a:hover { color: var(--ink); }

/* ---- Form ------------------------------------------------- */
.form {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: flex; flex-direction: column; gap: 0; }
.field input, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(59,130,246,0.05);
}
.field textarea { height: 120px; }
.field label {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  background: var(--bg);
  padding: 0 5px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field input:focus + label,
.field textarea:focus + label { opacity: 1; }
.form-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: -4px;
}
.form-ok {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  gap: 12px;
}
.form-ok.show { display: flex; }
.ok-ic {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 8px;
}
.ok-ic svg { width: 24px; height: 24px; }
.form-ok h3 { color: var(--ink); }
.form-ok p  { color: var(--ink-2); font-size: 0.9rem; }

.btn-loading { opacity: 0.7; cursor: not-allowed; }
.form-error {
  font-size: 0.82rem;
  color: #f87171;
  margin-top: -8px;
  display: none;
}
.form-error.show { display: block; }

/* ---- Footer ----------------------------------------------- */
.ftr {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(8,12,24,0.95);
  padding: 64px 0 32px;
}
.ftr-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}
.ftr-brand .logo { margin-bottom: 16px; }
.ftr-brand p {
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 300px;
  line-height: 1.65;
}
.ftr-cols {
  display: flex;
  gap: 56px;
}
.ftr-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ftr-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ftr-col a {
  font-size: 0.875rem;
  color: var(--ink-3);
  transition: color .2s;
}
.ftr-col a:hover { color: var(--ink); }
.ftr-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--ink-3);
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Legal pages ------------------------------------------ */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.legal-wrap .legal-meta {
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-section p, .legal-section li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-section a { color: var(--accent-2); }
.legal-section a:hover { text-decoration: underline; }

/* ---- Mobile nav overlay ----------------------------------- */
#mobNav a { cursor: pointer; }

/* ---- Tilt (subtle) ---------------------------------------- */
[data-tilt] { transform-style: preserve-3d; }

/* ---- Animations ------------------------------------------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- Section backgrounds ---------------------------------- */
.bg-alt { background: rgba(13,20,36,0.85); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid  { grid-template-columns: 1fr; gap: 40px; }
  .cta-card  { grid-template-columns: 1fr; }
  .cta-l     { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 36px; }
  .form      { padding: 36px; }
}

@media (max-width: 900px) {
  .hero-grid  { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .ftr-top { grid-template-columns: 1fr; gap: 40px; }
  .ftr-cols { gap: 32px; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 64px 0; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-l { padding: 32px 24px; }
  .form  { padding: 24px; }
  .proc-line { left: 20px; }
  .proc-bullet { width: 42px; height: 42px; font-size: 0.7rem; }
  .ftr-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .features { gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
