/* ============================================================
   SafeSignal — Corporate Dark Theme
   Fonts: Share Tech Mono (data) + DM Sans (body) + DM Serif Display (headings)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #050a0e;
  --bg2:          #070d12;
  --bg-alt:       #080f16;
  --panel:        #0b1520;
  --panel-border: #112233;
  --accent:       #00c8f0;
  --accent2:      #00e5a0;
  --accent-dim:   #004d60;
  --danger:       #ff3b5c;
  --text:         #c5d8e5;
  --text-dim:     #4d6878;
  --text-muted:   #283d4a;
  --mono:         'Share Tech Mono', 'Courier New', Courier, monospace;
  --display:      'DM Serif Display', Georgia, serif;
  --body:         'DM Sans', 'Segoe UI', Arial, sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --radius-xl:    20px;
  --grid-color:   rgba(0,200,240,0.03);
  --glow:         0 0 24px rgba(0,200,240,0.2);
  --glow-strong:  0 0 40px rgba(0,200,240,0.3);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
.mono { font-family: var(--mono); }

/* === BACKGROUND === */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(5,10,14,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 18px;
  color: var(--text); text-decoration: none;
}
.nav-logo:hover { opacity: 1; }
.logo-shield { color: var(--accent); font-size: 16px; }
.logo-accent { color: var(--accent); }
.logo-tag {
  font-size: 11px; color: var(--text-dim); font-weight: 400;
  border-left: 1px solid var(--panel-border); padding-left: 10px; margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; color: var(--text-dim); transition: color 0.2s;
}
.nav-link:hover { color: var(--text); opacity: 1; }
.nav-link--dim { color: var(--accent); font-size: 13px; }
.lang-switcher {
  display: flex; gap: 2px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 3px;
}
.lang-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 16px; cursor: pointer;
  color: var(--text-dim); border: none; background: transparent;
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--accent); color: var(--bg); font-weight: 600;
}
.lang-btn:hover:not(.active) { color: var(--text); }

/* === HERO === */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 32px 100px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,240,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 740px; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent2);
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeInDown 0.5s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-headline {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  animation: fadeInDown 0.5s ease 0.1s both;
  letter-spacing: -0.01em;
}
.headline-accent { color: var(--accent); display: block; }

.hero-sub {
  font-size: 18px; color: var(--text-dim); line-height: 1.7;
  max-width: 580px; margin: 0 auto 36px;
  animation: fadeInDown 0.5s ease 0.2s both;
}

.hero-ctas {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.btn-primary {
  display: inline-block; padding: 13px 28px;
  background: var(--accent); color: var(--bg);
  border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary:hover {
  background: #33d6f5; box-shadow: var(--glow-strong);
  transform: translateY(-2px); opacity: 1;
}
.btn-primary--large { padding: 15px 36px; font-size: 16px; }
.btn-secondary {
  display: inline-block; padding: 13px 24px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); font-size: 15px;
  transition: all 0.2s; text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent); opacity: 1;
}

.hero-note {
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em;
  animation: fadeInUp 0.5s ease 0.4s both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-dim); transition: color 0.2s;
  animation: fadeInUp 0.5s ease 0.7s both;
}
.scroll-indicator:hover { color: var(--accent); opacity: 1; }
.scroll-chevron {
  width: 16px; height: 16px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100%{transform:rotate(45deg) translateY(0);opacity:0.4}
  50%{transform:rotate(45deg) translateY(6px);opacity:1}
}

/* === TRUST STRIP === */
.trust-strip {
  position: relative; z-index: 1;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg2);
}
.trust-strip-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: stretch;
}
.trust-item { flex: 1; padding: 28px 16px; text-align: center; }
.trust-num { font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.trust-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-dim); }
.trust-divider { width: 1px; background: var(--panel-border); margin: 16px 0; }

/* === SECTIONS === */
.section { position: relative; z-index: 1; padding: 88px 32px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-inner--narrow { max-width: 720px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-kicker { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 12px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; color: #fff;
  margin-bottom: 14px; line-height: 1.15;
}
.section-sub { font-size: 16px; color: var(--text-dim); max-width: 520px; margin: 0 auto; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.feat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feat-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feat-card--large {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: start;
}
.feat-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(0,200,240,0.06);
  border: 1px solid rgba(0,200,240,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.feat-card--large .feat-icon-wrap { margin-bottom: 0; }
.feat-title {
  font-family: var(--body); font-size: 17px; font-weight: 600;
  color: #fff; margin-bottom: 8px;
}
.feat-card--large .feat-title { font-size: 20px; }
.feat-desc { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.feat-detail {
  font-size: 12px; color: var(--accent); letter-spacing: 0.04em;
  align-self: center; white-space: nowrap;
}

/* Steps */
.steps-row {
  display: flex; align-items: flex-start; gap: 0;
}
.step-card { flex: 1; padding: 0 24px; text-align: center; }
.step-card:first-child { padding-left: 0; }
.step-card:last-child { padding-right: 0; }
.step-connector {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 16px; flex-shrink: 0; width: 60px;
}
.connector-line { flex: 1; width: 1px; background: var(--panel-border); }
.connector-arrow { font-size: 20px; color: var(--accent-dim); margin: 4px 0; }
.step-num { font-size: 28px; color: var(--accent); opacity: 0.6; margin-bottom: 12px; }
.step-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* Pricing */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 36px; font-size: 14px; color: var(--text-dim);
}
.toggle-track {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--accent); cursor: pointer;
  position: relative; transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); transition: transform 0.2s;
  transform: translateX(18px);
}
.toggle-track.off { background: var(--panel-border); }
.toggle-track.off .toggle-knob { transform: translateX(0); }
.billing-label { color: var(--text-dim); }
.billing-label.active { color: var(--text); }
.save-badge {
  display: inline-block; font-size: 11px; padding: 1px 8px;
  background: rgba(0,229,160,0.12); border: 1px solid rgba(0,229,160,0.25);
  color: var(--accent2); border-radius: 10px; margin-left: 4px;
}

.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px; align-items: start;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px; position: relative;
  transition: border-color 0.2s;
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.plan-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 14px; border-radius: 10px;
  background: var(--accent); color: var(--bg); white-space: nowrap;
}
.plan-name { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.plan-tagline { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.plan-price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-currency { font-size: 16px; color: var(--text-dim); font-weight: 500; }
.plan-price { font-family: var(--mono); font-size: 36px; color: #fff; line-height: 1; }
.plan-period { font-size: 14px; color: var(--text-dim); }
.plan-billing { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 0.02em; }
.plan-divider { height: 1px; background: var(--panel-border); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pf { font-size: 14px; display: flex; align-items: center; gap: 10px; }
.pf--yes { color: var(--text); }
.pf--no  { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--text-muted); }
.pf--yes::before { content: '✓'; color: var(--accent2); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.pf--no::before  { content: '–'; color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.plan-btn {
  display: block; width: 100%; padding: 11px;
  text-align: center; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--panel-border);
  color: var(--text); background: transparent;
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.plan-btn:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.plan-btn--featured {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.plan-btn--featured:hover { background: #33d6f5; color: var(--bg); }

/* Swiss trust */
.swiss-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.swiss-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg); padding: 28px;
}
.swiss-flag, .swiss-icon { margin-bottom: 16px; }
.swiss-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.swiss-desc { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--panel-border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--text);
  text-align: left; gap: 16px; font-family: var(--body);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 15px; color: var(--text-dim); line-height: 1.7;
  padding-bottom: 20px; display: none;
}
.faq-a.open { display: block; }

/* CTA Banner */
.cta-banner {
  position: relative; z-index: 1;
  padding: 88px 32px; text-align: center;
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,200,240,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-heading {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 400;
  color: #fff; margin-bottom: 16px;
}
.cta-sub { font-size: 17px; color: var(--text-dim); margin-bottom: 32px; line-height: 1.65; }
.cta-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; letter-spacing: 0.04em; }

/* Footer */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--panel-border);
  padding: 48px 32px 32px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; gap: 40px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 600; color: var(--text);
  margin-bottom: 10px;
}
.footer-brand-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.footer-links-group { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--panel-border); padding-top: 24px;
  font-size: 12px; color: var(--text-dim); flex-wrap: wrap; gap: 12px;
}
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  font-size: 11px; padding: 3px 10px;
  border: 1px solid var(--panel-border); border-radius: 10px;
  color: var(--text-dim);
}

/* === LEGAL PAGES === */
.legal-page { position: relative; z-index: 1; }
.legal-hero {
  padding: 120px 32px 60px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg2);
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; }
.legal-kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 12px; }
.legal-title { font-family: var(--display); font-size: clamp(32px, 4vw, 52px); font-weight: 400; color: #fff; margin-bottom: 16px; }
.legal-meta { font-size: 13px; color: var(--text-dim); }
.legal-meta strong { color: var(--text); }

.legal-body { max-width: 760px; margin: 0 auto; padding: 60px 32px 80px; }
.legal-body h2 {
  font-family: var(--body); font-size: 20px; font-weight: 600;
  color: #fff; margin: 40px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}
.legal-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-body h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 24px 0 10px;
}
.legal-body p {
  font-size: 15px; color: var(--text-dim); line-height: 1.75;
  margin-bottom: 16px;
}
.legal-body ul {
  padding-left: 20px; margin-bottom: 16px;
}
.legal-body ul li {
  font-size: 15px; color: var(--text-dim); line-height: 1.75; margin-bottom: 8px;
}
.legal-body a { color: var(--accent); }
.legal-highlight {
  background: rgba(0,200,240,0.05);
  border: 1px solid rgba(0,200,240,0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0;
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
}
.legal-contact {
  margin-top: 40px; padding: 24px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}
.legal-contact p { margin-bottom: 6px; }
.legal-contact a { color: var(--accent); }

/* === ANIMATIONS === */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feat-card--large { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .feat-detail { display: none; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .swiss-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 12px; }
  .nav-link:not(.nav-link--dim) { display: none; }
  .hero { padding: 80px 20px 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card--large { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step-connector { display: none; }
  .trust-strip-inner { flex-wrap: wrap; }
  .trust-item { min-width: 50%; }
  .trust-divider { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links-group { gap: 24px; }
  .section { padding: 60px 20px; }
  .legal-body { padding: 40px 20px 60px; }
  .legal-hero { padding: 100px 20px 40px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: rgba(0,200,240,0.2); color: #fff; }
