/* ═══════════════════════════════════════════════════════════
   SEKURELY.IO — SHARED STYLESHEET
   All pages import this file first.
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --bg:       #080808;
  --bg2:      #0c0c0c;
  --bg3:      #111111;
  --bg4:      #161616;
  --accent:   #00f2ff;
  --alert:    #ff0055;
  --green:    #00ff88;
  --gold:     #ffcc00;
  --purple:   #a855f7;
  --text:     #e8e8e8;
  --text2:    #aaaaaa;
  --muted:    #444444;
  --border:   #1e1e1e;
  --border2:  #2a2a2a;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --nav-h: 64px;
  --max-w: 960px;
  --radius: 8px;
  --transition: 0.2s ease;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }

/* ─── SCANLINES OVERLAY ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,242,255,0.007) 2px, rgba(0,242,255,0.007) 4px
  );
  pointer-events: none; z-index: 9999;
}

/* ─── NOISE TEXTURE ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: 0.5;
}

/* ─── PAGE TRANSITION ───────────────────────────────────── */
.page-wrap {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SPLASH SCREEN ─────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; transform: scale(1.04); }
.splash-logo {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-shadow: 0 0 40px rgba(0,242,255,0.5);
  animation: splashPulse 1.2s ease-in-out infinite alternate;
}
@keyframes splashPulse {
  from { text-shadow: 0 0 20px rgba(0,242,255,0.3); }
  to   { text-shadow: 0 0 60px rgba(0,242,255,0.7), 0 0 120px rgba(0,242,255,0.2); }
}
.splash-bar-wrap {
  width: 180px; height: 2px;
  background: var(--border);
  border-radius: 1px; overflow: hidden;
}
.splash-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0088ff);
  width: 0%;
  animation: splashLoad 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
  box-shadow: 0 0 10px rgba(0,242,255,0.6);
}
@keyframes splashLoad { to { width: 100%; } }
.splash-text {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--muted);
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,242,255,0.07);
  transition: border-color 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: #fff; letter-spacing: 0.15em;
}
.nav-logo .logo-mark {
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 6px 6px 12px 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent);
  box-shadow: 0 0 14px rgba(0,242,255,0.2);
}
.nav-logo .logo-text span { color: var(--accent); }
.nav-logo .logo-badge {
  font-size: 8px; color: #000;
  background: var(--accent);
  padding: 2px 6px; border-radius: 2px;
  letter-spacing: 0.08em; font-weight: 700;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.07em;
  padding: 7px 14px; border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text2); background: rgba(255,255,255,0.03); }
.nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.07em;
  padding: 7px 14px;
  transition: color var(--transition);
}
.nav-login:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #000; background: var(--accent);
  border: none; padding: 9px 20px; border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(0,242,255,0.2);
}
.nav-cta:hover { background: #33f5ff; box-shadow: 0 0 30px rgba(0,242,255,0.35); }

/* HAMBURGER */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* MOBILE NAV DRAWER */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 499;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-drawer ul a {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 12px 16px; display: block; border-radius: 4px;
  letter-spacing: 0.07em;
  transition: color var(--transition), background var(--transition);
}
.nav-drawer ul a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-drawer ul a.active { color: var(--accent); }
.nav-drawer-actions {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.nav-drawer-cta {
  flex: 1; padding: 12px;
  background: var(--accent); color: #000; border: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; border-radius: 4px;
  transition: all var(--transition);
}
.nav-drawer-cta:hover { background: #33f5ff; }

/* DARK MODE TOGGLE */
.theme-toggle {
  width: 36px; height: 20px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 10px; position: relative; cursor: pointer;
  transition: all 0.3s; flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px;
  background: var(--muted); border-radius: 50%;
  transition: all 0.3s;
}
body.light-mode .theme-toggle { background: #e0e0e0; border-color: #ccc; }
body.light-mode .theme-toggle::after { left: 19px; background: #333; }

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px 0;
  margin-top: 100px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand .f-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: #3a3a3a; letter-spacing: 0.14em; margin-bottom: 12px;
}
.footer-brand .f-logo-mark {
  width: 26px; height: 26px;
  border: 1.5px solid #2a2a2a;
  border-radius: 5px 5px 10px 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: #333;
}
.footer-tagline {
  font-family: var(--font-mono); font-size: 11px;
  color: #222; line-height: 1.7; max-width: 220px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted); letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-family: var(--font-mono); font-size: 11px;
  color: #2a2a2a; transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--muted); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px 0 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; color: #1e1e1e;
}
.footer-bottom a { color: #2a2a2a; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--muted); }
.footer-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: #2a2a2a;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,255,136,0.5);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.5; }
}

/* ─── COOKIE BANNER ─────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px;
  max-width: 380px; z-index: 600;
  background: var(--bg3);
  border: 1px solid rgba(0,242,255,0.12);
  border-radius: 10px; padding: 20px 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  transform: translateY(120px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.3,0.64,1);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--text); margin-bottom: 6px; letter-spacing: 0.06em;
}
.cookie-text {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); line-height: 1.6; margin-bottom: 14px;
}
.cookie-actions { display: flex; gap: 8px; }
.cookie-accept {
  flex: 1; padding: 9px;
  background: var(--accent); color: #000; border: none;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; border-radius: 4px; cursor: pointer;
  transition: all var(--transition);
}
.cookie-accept:hover { background: #33f5ff; }
.cookie-decline {
  padding: 9px 14px;
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
  font-family: var(--font-mono); font-size: 10px;
  border-radius: 4px; cursor: pointer; transition: all var(--transition);
}
.cookie-decline:hover { border-color: #444; color: var(--text2); }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── SECTION COMMON ────────────────────────────────────── */
.page-content { padding-top: var(--nav-h); }
.section { max-width: var(--max-w); margin: 0 auto; padding: 80px 40px; }
.section-sm { max-width: var(--max-w); margin: 0 auto; padding: 48px 40px; }
.section-tag {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--accent); letter-spacing: 0.2em; opacity: 0.6;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.section-title {
  font-size: 32px; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 10px;
}
.section-sub {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); line-height: 1.7; margin-bottom: 40px;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000; border: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 13px 28px; border-radius: 5px; letter-spacing: 0.08em;
  transition: all var(--transition); cursor: pointer;
  box-shadow: 0 0 24px rgba(0,242,255,0.2);
}
.btn-primary:hover { background: #33f5ff; box-shadow: 0 0 36px rgba(0,242,255,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(0,242,255,0.3);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 13px 28px; border-radius: 5px; letter-spacing: 0.08em;
  transition: all var(--transition); cursor: pointer;
}
.btn-outline:hover { background: rgba(0,242,255,0.07); border-color: rgba(0,242,255,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2);
  font-family: var(--font-mono); font-size: 12px;
  padding: 13px 28px; border-radius: 5px; letter-spacing: 0.08em;
  transition: all var(--transition); cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: #444; }

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); }

/* ─── FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em; margin-bottom: 7px;
}
.form-input {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: 5px;
  padding: 12px 16px; color: var(--text);
  font-family: var(--font-mono); font-size: 13px;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: #333; }
.form-input:focus {
  border-color: rgba(0,242,255,0.35);
  box-shadow: 0 0 0 3px rgba(0,242,255,0.06);
}
.form-input.error { border-color: rgba(255,0,85,0.4); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ─── BADGE / TAG ───────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px;
  font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 3px;
}
.badge-accent { color: var(--accent); background: rgba(0,242,255,0.07); border: 1px solid rgba(0,242,255,0.15); }
.badge-green  { color: var(--green);  background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.15); }
.badge-alert  { color: var(--alert);  background: rgba(255,0,85,0.07);  border: 1px solid rgba(255,0,85,0.15);  }
.badge-muted  { color: var(--muted);  background: rgba(68,68,68,0.1);   border: 1px solid rgba(68,68,68,0.2);   }

/* ─── PAGE HERO (inner pages) ───────────────────────────── */
.page-hero {
  padding: 80px 40px 60px;
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,242,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.page-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--accent); opacity: 0.7;
  margin-bottom: 16px;
}
.page-eyebrow::before { content: '// '; }
.page-h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-h1 span { color: var(--accent); }
.page-lead {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); line-height: 1.8; max-width: 560px;
}

/* ─── DIVIDER ───────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0 40px; max-width: var(--max-w); margin-left: auto; margin-right: auto; }

/* ─── LIGHT MODE ────────────────────────────────────────── */
body.light-mode {
  --bg:      #f5f5f5;
  --bg2:     #eeeeee;
  --bg3:     #e5e5e5;
  --bg4:     #dddddd;
  --text:    #111111;
  --text2:   #444444;
  --muted:   #888888;
  --border:  #d5d5d5;
  --border2: #c5c5c5;
}
body.light-mode::before { background: none; }
body.light-mode::after  { opacity: 0; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-login { display: none; }
  .nav-hamburger { display: flex; }
  .section, .section-sm, .page-hero { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 20px 32px; }
  .site-footer { padding: 40px 0 0; margin-top: 60px; }
  .footer-bottom { padding: 18px 20px 28px; flex-direction: column; text-align: center; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
