/* ==========================================================================
   Drescher Design – Stylesheet
   Helles, cleanes, modernes Design
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/jakarta-var.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #5b6478;
  --accent: #3b7d8e;
  --accent-dark: #2c6170;
  --accent-light: #e9f2f4;
  --border: #e6e9f0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --max-width: 1180px;
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(47, 111, 237, 0.55);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text-primary {
  color: var(--text);
}

.logo-text-accent {
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, rgba(234, 241, 255, 0) 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-meta-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent-dark);
}

.hero-meta-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-dark), #1e2b4d);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow);
}

.code-window {
  background: #0b1220;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.code-window-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}

.code-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.code-window pre {
  margin: 0;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cfe0ff;
  white-space: break-spaces;
  overflow-wrap: break-word;
  overflow-x: visible;
  overflow-y: hidden;
  min-height: 312px;
}

.code-window .tok-key { color: #7dd3fc; }
.code-window .tok-str { color: #a5e8b0; }
.code-window .tok-com { color: #64748b; }

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  background: #cfe0ff;
  vertical-align: text-bottom;
  animation: code-blink 1s steps(1, jump-none) infinite;
}

@keyframes code-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .code-cursor {
    animation: none;
  }
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stack-badges span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #dbe6ff;
}

/* ---------- Logo / trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-strip-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-section {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}

.about-intro {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-intro .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.about-intro h2 {
  color: #fff;
}

.about-lead {
  color: rgba(255, 255, 255, 0.82);
}

.about-lead:last-of-type {
  margin-bottom: 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px;
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.value-card span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Process / Story-Scroll ---------- */

.story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.story > * {
  min-width: 0;
}

.story-rail {
  position: sticky;
  top: 110px;
}

.story-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.story-rail-track,
.story-rail-fill {
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
}

.story-rail-track {
  background: var(--border);
}

.story-rail-fill {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.story-rail-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 30px;
  cursor: pointer;
}

.story-rail-item:last-child {
  margin-bottom: 0;
}

.story-rail-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.story-rail-label {
  display: block;
  padding-top: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.story-rail-item.is-active .story-rail-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-light);
}

.story-rail-item.is-active .story-rail-label {
  color: var(--text);
}

.story-panels {
  display: flex;
  flex-direction: column;
}

.story-panel {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-panel:first-child {
  padding-top: 4px;
}

.story-panel:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.story-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-panel-index {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.story-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.story-panel h3 {
  font-size: 1.5rem;
}

.story-panel > p {
  font-size: 1.02rem;
  max-width: 620px;
}

.story-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 560px;
}

.story-points li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.story-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.story-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}

.story-meta span {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	border: 1px dashed #aaa;
	padding: 0.5rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 20px;
  padding: 40px;
}

.contact-info h3 {
  color: #fff;
}

.contact-info p {
  color: #b7c1de;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-detail .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.95rem;
}

.contact-detail span, .contact-detail a {
  font-size: 0.9rem;
  color: #b7c1de;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.form-consent input {
  margin-top: 3px;
}

.form-consent a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: #e7f7ee;
  color: #1a7a44;
}

.form-msg.error {
  background: #fdecec;
  color: #b3261e;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 6px 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

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

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: #b7c1de;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  font-size: 0.9rem;
  color: #b7c1de;
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Legal pages ---------- */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 100px;
}

.legal-content h1 {
  margin-bottom: 0.4em;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid,
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .story {
    display: block;
    position: relative;
  }

  .story-rail {
    position: fixed;
    left: 50%;
    bottom: 0;
    top: auto;
    z-index: 40;
    width: 100vw;
    margin: 0;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -14px 26px -20px rgba(15, 23, 42, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .story-rail.is-floating,
  .story-rail.is-docked {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .story-rail.is-docked {
    position: absolute;
  }

  .story-panels {
    padding-bottom: 96px;
  }

  .story-rail-track,
  .story-rail-fill {
    display: none;
  }

  .story-rail-list {
    display: flex;
    overflow-x: auto;
    gap: 22px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .story-rail-list::-webkit-scrollbar {
    display: none;
  }

  .story-rail-item {
    padding-left: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
    width: 72px;
    text-align: center;
  }

  .story-rail-dot {
    position: static;
    margin: 0 auto 4px;
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .story-rail-label {
    padding-top: 0;
    font-size: 0.68rem;
    line-height: 1.2;
  }

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

@media (max-width: 720px) {
  .hero {
    padding-top: 25px;
  }

  .code-window pre {
    min-height: 332px;
  }

  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }

  .section {
    padding: 64px 0;
  }

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

  .story-panel {
    padding: 36px 0;
  }

  .story-panel h3 {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .contact-info, .contact-form {
    padding: 28px;
  }
}
