:root {
  --bg: #17181C;
  --bg-alt: #1D1F24;
  --card: #1F2126;
  --cream: #F2F0EA;
  --dim: #9B9CA3;
  --rust: #C1622D;
  --sage: #6E9187;
  --line: rgba(242,240,234,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.5px; }
.mono { font-family: 'Space Mono', monospace; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.accent { color: var(--rust); }

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6%;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(23,24,28,0.9); backdrop-filter: blur(10px); padding: 14px 6%; border-color: var(--line); }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; text-decoration: none; }
.logo span { color: var(--rust); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--dim); transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--line); padding: 9px 18px; border-radius: 2px;
  text-decoration: none; font-size: 13px; font-weight: 500;
}
.nav-burger { display: none; width: 26px; height: 18px; position: relative; background: none; border: none; cursor: pointer; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--cream); }
.nav-burger span:first-child { top: 0; }
.nav-burger span:last-child { bottom: 0; }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; height: 100vh; z-index: 99;
  background: var(--bg-alt); display: flex; flex-direction: column;
  padding: 100px 32px; gap: 26px; transition: right .35s ease;
  border-left: 1px solid var(--line);
}
.mobile-menu.open { right: 0; }
.mobile-menu a { text-decoration: none; font-size: 20px; font-family: 'Space Grotesk', sans-serif; }

/* ---- hero ---- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 0 6%;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,18,21,0.55) 0%, rgba(17,18,21,0.75) 55%, rgba(17,18,21,0.97) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding-top: 110px; padding-bottom: 60px; }
.kicker { font-size: 13px; color: var(--sage); margin-bottom: 22px; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; }
.hero-p { margin-top: 22px; color: var(--dim); font-size: 16px; line-height: 1.7; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 15px 26px; border-radius: 2px; text-decoration: none; font-size: 14.5px; font-weight: 600; transition: transform .2s, opacity .2s; }
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--cream); color: var(--bg); }
.btn-line { border: 1px solid rgba(242,240,234,0.3); color: var(--cream); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 22px; }
.btn-lg { padding: 17px 32px; font-size: 15px; }

.trust-row { display: flex; gap: 36px; margin-top: 54px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-n { font-family: 'Space Grotesk', sans-serif; font-size: 26px; color: var(--rust); font-weight: 600; }
.trust-l { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ---- sections ---- */
.section { padding: 90px 6%; max-width: 1180px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: 100%; }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 50px; }
.index { display: block; color: var(--sage); font-size: 13px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-sub { color: var(--dim); margin-top: 12px; font-size: 15px; max-width: 460px; }

/* ---- services ---- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--bg); padding: 32px 24px; }
.icon { width: 30px; height: 30px; color: var(--rust); margin-bottom: 22px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { color: var(--dim); font-size: 13.5px; line-height: 1.6; }

/* ---- process ---- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.process::before {
  content: ''; position: absolute; top: 14px; left: 5%; right: 5%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.process-step { position: relative; }
.step-n { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rust); color: var(--rust); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 2; }
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { color: var(--dim); font-size: 13.5px; line-height: 1.6; }

/* ---- portfolio compare ---- */
.compare-wrap { max-width: 760px; margin: 0 auto; }
.compare-labels { display: flex; justify-content: space-between; padding: 0 4px 10px; font-size: 12px; letter-spacing: 1px; }
.label-pre { color: var(--dim); }
.label-post { color: var(--rust); }
.browser-frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0f1013; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #14151a; border-bottom: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3b40; }
.browser-url { margin-left: 12px; font-size: 11.5px; color: var(--dim); }
.compare-frame { }
.compare-slider { position: relative; width: 100%; height: 560px; overflow: hidden; touch-action: pan-y; }
.compare-frame-if { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.compare-after-wrap { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 2px solid var(--rust); }
.compare-after-wrap .compare-frame-if { max-width: none; }
.compare-slider .compare-before { width: 100%; }
.compare-handle {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  background: var(--rust); border-radius: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
  color: #fff; font-size: 13px; z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.compare-hint { text-align: center; color: var(--dim); font-size: 12px; margin-top: 14px; }

/* ---- pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 32px 26px; position: relative; }
.price-featured { border-color: var(--rust); }
.price-badge { position: absolute; top: -12px; left: 26px; background: var(--rust); color: #fff; font-size: 10.5px; padding: 4px 10px; border-radius: 2px; letter-spacing: 0.5px; }
.price-card h3 { font-size: 17px; margin-bottom: 14px; }
.price { font-family: 'Space Grotesk', sans-serif; font-size: 30px; margin-bottom: 20px; }
.price span { font-size: 14px; color: var(--dim); font-weight: 400; }
.price-card ul { list-style: none; }
.price-card li { color: var(--dim); font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--line); }
.price-card li:first-child { border-top: none; }
.price-note { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 26px; }

/* ---- about ---- */
.about-inner { max-width: 620px; }
.about-inner > p { color: var(--dim); font-size: 15px; line-height: 1.75; margin-top: 16px; }
.about-points { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.about-point { font-size: 14px; }
.about-point .mono { color: var(--rust); margin-right: 8px; }

/* ---- faq ---- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-size: 15.5px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--rust); font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--dim); font-size: 14px; margin-top: 12px; line-height: 1.6; }

/* ---- kontakt ---- */
.kontakt { text-align: center; }
.kontakt-inner { max-width: 560px; margin: 0 auto; }
.kontakt h2 { font-size: clamp(28px, 5vw, 44px); }
.kontakt p { color: var(--dim); margin-top: 14px; font-size: 15px; }
.kontakt-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.kontakt-direct { margin-top: 26px; color: var(--dim); font-size: 13px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 40px 6% 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto 24px; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; font-size: 13.5px; color: var(--dim); }
.footer-bottom { text-align: center; color: var(--dim); font-size: 11.5px; opacity: 0.7; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .process::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .compare-slider { height: 460px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .trust-row { gap: 24px; }
  .compare-slider { height: 400px; }
}
