/* EFKey — web.efkey.app */
:root {
  --bg: #08080a;
  --bg2: #0d0d11;
  --panel: #121217;
  --panel2: #16161c;
  --text: #ededf2;
  --muted: #9a9aa6;
  --faint: #6c6c78;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --accent: #8b7bff;
  --accent-ink: #c7bdff;
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(139,123,255,.32); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,8,10,.6);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 560; font-size: 15px; letter-spacing: -0.01em;
  padding: 11px 18px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn-primary { background: var(--text); color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-1px); background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a46; background: rgba(255,255,255,.03); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -240px; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,123,255,.16), transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 0.82fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 18px 0 20px; font-weight: 660;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .sub { font-size: 18.5px; color: var(--muted); max-width: 500px; margin: 0 0 30px; line-height: 1.55; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .micro { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #43c97e; box-shadow: 0 0 0 4px rgba(67,201,126,.16); }

/* ---------- Device frame ---------- */
.device {
  width: 312px; margin: 0 auto; padding: 11px;
  background: linear-gradient(180deg, #202026, #0c0c0f);
  border-radius: 52px; border: 1px solid #2b2b33;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06);
}
.device-screen {
  position: relative; border-radius: 42px; overflow: hidden; background: #000;
  aspect-ratio: 9 / 19.3; display: flex; flex-direction: column;
}
.island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 30px; background: #000; border-radius: 16px; z-index: 5;
}
.scene { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scene-keyboard { width: 100%; display: block; }
.home-bar { display: flex; align-items: center; justify-content: center; height: 26px; }
.home-bar i { display: block; width: 36%; height: 5px; border-radius: 3px; }
.home-bar.dark { background: #202022; } .home-bar.dark i { background: rgba(255,255,255,.55); }
.home-bar.light { background: #d1d3d9; } .home-bar.light i { background: rgba(0,0,0,.42); }

/* Notes-style scene */
.notes { flex: 1; display: flex; flex-direction: column; padding: 46px 20px 14px; }
.notes-dark { background: #000; }
.notes-light { background: #fff; }
.notes-date { font-size: 10px; text-align: center; margin-bottom: 16px; }
.notes-dark .notes-date { color: #6a6a72; } .notes-light .notes-date { color: #9a9aa0; }
.notes-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.notes-dark .notes-title { color: #f4f4f6; } .notes-light .notes-title { color: #111; }
.notes-body { font-size: 14px; line-height: 1.5; }
.notes-dark .notes-body { color: #c9c9d0; } .notes-light .notes-body { color: #2a2a2e; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spacer { flex: 1; }

/* Language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.lang-switch a { padding: 6px 11px; font-size: 13px; color: var(--muted); }
.lang-switch a.active { background: rgba(255,255,255,.08); color: var(--text); }
.lang-switch a:hover:not(.active) { color: var(--text); }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.section-title { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.028em; line-height: 1.1; margin: 0 0 16px; font-weight: 640; }
.section-intro { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0; line-height: 1.55; }

/* split (text + devices) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dual-devices { display: flex; gap: 22px; justify-content: center; }
.dual-devices .device { width: 232px; border-radius: 40px; padding: 8px; }
.dual-devices .device:first-child { transform: translateY(14px) rotate(-2deg); }
.dual-devices .device:last-child { transform: translateY(-14px) rotate(2deg); }
.dual-devices .device-screen { border-radius: 32px; }
.dual-devices .island { width: 72px; height: 22px; top: 9px; }
.theme-tag { display: inline-block; font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; width: 100%; }

/* ---------- Feature grid (no emoji — line icons) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: var(--bg); padding: 34px 32px; }
.feature .ic { width: 26px; height: 26px; color: var(--accent-ink); margin-bottom: 18px; stroke-width: 1.6; }
.feature h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.trust-item svg { width: 17px; height: 17px; color: var(--accent-ink); stroke-width: 1.7; }

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 9px; max-width: 560px; }
.lang-chip { border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--text); background: var(--panel); }
.lang-chip.muted { color: var(--faint); }

/* ---------- Story ---------- */
.story .panel { max-width: 820px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 24px; padding: 56px 48px; background: radial-gradient(120% 130% at 50% 0%, rgba(139,123,255,.10), transparent 58%), var(--panel); }
.story blockquote { margin: 0 0 28px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.45; letter-spacing: -0.02em; font-weight: 500; color: var(--text); }
.story blockquote .hl { color: var(--accent-ink); }
.story .by { display: inline-flex; align-items: center; gap: 13px; }
.story .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4054ff, #7c3aed 55%, #b034e0); }
.story .by .who { text-align: left; line-height: 1.3; }
.story .by .who strong { display: block; font-size: 15px; }
.story .by .who span { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final .panel { background: radial-gradient(120% 140% at 50% 0%, rgba(139,123,255,.13), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 64px 32px; }
.cta-final h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 650; }
.cta-final p { color: var(--muted); font-size: 17.5px; margin: 0 auto 28px; max-width: 480px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.foot { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand { max-width: 280px; }
.foot-brand p { color: var(--faint); font-size: 13.5px; margin: 14px 0 0; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--text); }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- Legal / content pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0 90px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 10px; font-weight: 620; }
.doc p, .doc li { color: #cfcfd8; font-size: 16px; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent-ink); }
.doc a:hover { text-decoration: underline; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 60px 0; }
.lang-pill { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--line2); padding: 4px 11px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .device { order: -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 0 24px; }
  section { padding: 60px 0; }
  .cta-final .panel { padding: 44px 24px; }
}
