:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(20, 30, 54, 0.92);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.34);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --emerald: #34d399;
  --emerald-strong: #10b981;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 28px 80px rgba(2, 6, 23, 0.65);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(16, 185, 129, 0.13), transparent 40%),
    radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.12), transparent 42%),
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: var(--text);
}

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

code,
pre,
.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.lang-trigger:hover,
.lang-switcher.open .lang-trigger {
  background: rgba(30, 41, 59, 0.96);
  border-color: var(--border-strong);
}

.lang-globe {
  width: 15px;
  height: 15px;
  opacity: 0.88;
  flex-shrink: 0;
}

.lang-caret {
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: transform 0.16s ease;
}

.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(11, 18, 34, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 80;
}

.lang-switcher.open .lang-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  font-weight: 600;
}

.lang-check {
  opacity: 0;
  font-size: 0.82rem;
  color: var(--emerald);
}

.lang-option.active .lang-check {
  opacity: 1;
}

.legal-lang-notice {
  display: none;
  padding: 14px 18px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.08);
  color: #e2e8f0;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.legal-lang-notice.visible {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 8px 15px;
  font-size: 0.86rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-strong), #0ea5e9);
  color: #04131a;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.34);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.72);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: var(--border-strong);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.38);
}

.btn-outline:hover {
  background: rgba(52, 211, 153, 0.1);
}

/* Hero */
.hero {
  padding: 78px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.26);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, #6ee7b7 0%, #38bdf8 55%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive App Window Mockup */
.app-window {
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, 0.08);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #334155;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sync-badge {
  font-size: 0.74rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
}

.window-body {
  padding: 18px;
}

.mock-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.demo-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}

.demo-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.4);
}

.clip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease;
}

.clip-row:hover {
  border-color: var(--border-strong);
}

.clip-main {
  min-width: 0;
  flex: 1;
}

.clip-text {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-sub {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.tag-encrypted {
  color: var(--amber);
}

.tag-synced {
  color: var(--emerald);
}

/* Metrics Strip */
.metrics-strip {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 16, 30, 0.65);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Layout */
.section {
  padding: 84px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--sky);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Pricing */
.currency-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  margin-top: 20px;
}

.currency-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.currency-btn.active {
  background: var(--emerald-strong);
  color: #031510;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}

.price-card.featured {
  border-color: var(--emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.88));
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.14);
}

.popular-pill {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--emerald);
  color: #04131a;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.plan-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  min-height: 42px;
}

.plan-price {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.plan-period {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.89rem;
  color: #cbd5e1;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Downloads & Checksums */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.checksum-box {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* Legal & Docs Prose */
.page-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.prose-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 52px 0 84px;
}

.prose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
}

.prose-card h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  color: var(--text);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: #cbd5e1;
  font-size: 0.96rem;
}

.prose-card ul {
  padding-left: 20px;
}

.prose-card pre {
  padding: 16px;
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.callout {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.08);
  margin: 20px 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: min(500px, 100%);
  background: #0d1527;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.92);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 42px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--emerald);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.83rem;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .pricing-grid,
  .download-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-download-btn {
    display: none;
  }
  .feature-grid,
  .pricing-grid,
  .download-grid,
  .footer-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .prose-card {
    padding: 24px;
  }
}
