/* ─────────────────────────────────────────────────────────
   NordKI · style.css
   Dark theme · Instrument Serif + Outfit + JetBrains Mono
───────────────────────────────────────────────────────── */

:root {
  --bg:             #0c0d0f;
  --surface:        #121416;
  --surface-2:      #181a1d;
  --surface-3:      #1f2226;
  --border:         #272b31;
  --border-subtle:  #1a1d21;
  --ink:            #e2dfd8;
  --ink-dim:        #9e9b94;
  --muted:          #5e5c56;
  --accent:         #3d8060;
  --accent-dark:    #2d6148;
  --accent-pale:    rgba(61, 128, 96, 0.12);
  --accent-glow:    rgba(61, 128, 96, 0.18);
  --amber:          #d4923a;
  --amber-pale:     rgba(212, 146, 58, 0.10);
  --r:              8px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 0.8vw + 5px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: clamp(13px, 0.7vw + 2px, 15px);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: clamp(13px, 0.7vw + 3px, 15px);
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-lg { padding: 13px 28px; font-size: clamp(14px, 0.8vw + 3px, 17px); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(226, 223, 216, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost-nav {
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid transparent;
}
.btn-ghost-nav:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.btn-white {
  background: #fff;
  color: #0c0d0f;
}
.btn-white:hover {
  background: #e8e5df;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── HERO ── */
.hero {
  padding: 104px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 70% 30%, rgba(61, 128, 96, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 15% 75%, rgba(61, 128, 96, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  border: 1px solid rgba(61, 128, 96, 0.22);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(16px, 0.9vw + 5px, 20px);
  color: var(--ink-dim);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(12px, 0.6vw + 3px, 14px);
  color: var(--muted);
}

.trust-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
section { padding: 88px 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sec-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.sec-desc {
  font-size: clamp(15px, 0.8vw + 4px, 18px);
  color: var(--ink-dim);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.72;
}

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.how-card {
  padding: 36px 32px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.how-card:hover { background: var(--surface-3); }
.how-card:last-child { border-right: none; }

.how-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.how-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(18px, 1.2vw + 5px, 22px);
  margin-bottom: 10px;
}

.how-desc {
  font-size: clamp(14px, 0.6vw + 4px, 16px);
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ── ARCHITECTURE ── */
.arch {
  background: #080909;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.arch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% -10%, rgba(61, 128, 96, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.arch-inner { position: relative; z-index: 1; }

.arch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.arch-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.arch-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  flex: 1;
}

.arch-node-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #b0c8bc;
  font-weight: 500;
}

.arch-node-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #3d5e4e;
  font-size: 16px;
  flex-shrink: 0;
}

.arch-split {
  display: flex;
  gap: 8px;
  flex: 1;
}

.arch-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.feat:hover {
  border-color: rgba(61, 128, 96, 0.3);
  background: var(--surface-3);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.feat-icon.green { background: var(--accent-pale); }
.feat-icon.amber { background: var(--amber-pale); }

.feat-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(17px, 1.1vw + 4px, 21px);
  margin-bottom: 8px;
}

.feat-desc {
  font-size: clamp(14px, 0.6vw + 4px, 16px);
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ── USE CASES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.case {
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.case:hover {
  border-color: rgba(61, 128, 96, 0.3);
  background: var(--surface-3);
}

.case-emoji { font-size: 22px; margin-bottom: 12px; }
.case-name { font-weight: 500; font-size: clamp(14px, 0.7vw + 3px, 16px); margin-bottom: 6px; }
.case-desc { font-size: clamp(13px, 0.55vw + 3.5px, 15px); color: var(--ink-dim); line-height: 1.55; }

/* ── DSGVO ── */
.dsgvo-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.dsgvo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dsgvo-left {
  padding: 52px 48px;
  background: linear-gradient(145deg, #1d4a35 0%, #142d22 100%);
  color: #fff;
}

.dsgvo-left h2 { color: #fff; margin-bottom: 12px; }
.dsgvo-left .sec-eyebrow { color: rgba(255, 255, 255, 0.4); }
.dsgvo-left p { color: rgba(255, 255, 255, 0.62); font-size: 15px; margin-bottom: 28px; line-height: 1.72; }

.dsgvo-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.dsgvo-right { padding: 48px; }

.dsgvo-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dsgvo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.dsgvo-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--accent-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--accent);
  margin-top: 1px;
}

.dsgvo-item-title { font-size: clamp(13px, 0.65vw + 3px, 15px); font-weight: 500; margin-bottom: 2px; }
.dsgvo-item-desc { font-size: clamp(12px, 0.55vw + 2.5px, 14px); color: var(--ink-dim); line-height: 1.55; }

/* ── BETA BANNER ── */
.beta-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(61, 128, 96, 0.08);
  border: 1px solid rgba(61, 128, 96, 0.22);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.beta-banner strong { color: var(--ink); }

.beta-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
  animation: blink 2s ease-in-out infinite;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: border-color 0.2s;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(61, 128, 96, 0.07);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.plan-price {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-period {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 0;
}

.plan-features li {
  font-size: clamp(13px, 0.6vw + 3px, 15px);
  display: flex;
  gap: 8px;
  color: var(--ink-dim);
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.plan-cta { margin-top: 24px; }

/* ── CTA ── */
.cta-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61, 128, 96, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-section h2 {
  margin-bottom: 14px;
  max-width: 520px;
  margin-inline: auto;
}

.cta-section p {
  color: var(--ink-dim);
  margin-bottom: 36px;
  font-size: clamp(15px, 0.8vw + 4px, 18px);
  max-width: 440px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-eyebrow {
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}

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

.footer-logo { font-size: 18px; }

.footer-copy {
  font-size: clamp(12px, 0.6vw + 2px, 14px);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: clamp(12px, 0.6vw + 2px, 14px);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── SCROLL ANIMATIONS ── */
.fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .dsgvo-inner { grid-template-columns: 1fr; }
  .dsgvo-left, .dsgvo-right { padding: 36px 32px; }
}

@media (max-width: 700px) {
  .how-grid,
  .features-grid,
  .pricing-grid,
  .cases-grid { grid-template-columns: 1fr; }

  .how-card { border-right: none; border-bottom: 1px solid var(--border); }
  .how-card:last-child { border-bottom: none; }

  .arch { padding: 24px; }
  .arch-row { flex-direction: column; gap: 8px; }
  .arch-arrow { transform: rotate(90deg); padding: 4px 0; }
  .arch-split { flex-direction: row; }

  .cta-section { padding: 52px 28px; }

  h1 { font-size: 34px; }
  .hero { padding: 72px 0 60px; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
