/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --bg-card-hover: #1c1c1f;
  --border: #222225;
  --border-light: #2a2a2e;
  --text: #e8e6e1;
  --text-secondary: #9a9894;
  --text-tertiary: #5c5a56;
  --accent: #FF6B35;
  --accent-dim: rgba(255, 107, 53, 0.12);
  --accent-glow: rgba(255, 107, 53, 0.06);
  --teal: #00C9A7;
  --green: #34c759;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1120px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== Nav ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px;
}
.nav-logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 600; padding: 8px 20px;
  background: var(--accent); color: #fff; border-radius: var(--radius-full);
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: var(--transition); border-radius: 1px; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 500;
  color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; color: var(--accent); font-weight: 600; }
.mobile-menu.open { display: flex; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh; padding: 120px 24px 80px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); background: var(--accent-dim);
  padding: 6px 14px; border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 20px;
}
.hero-accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 480px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-tertiary); }
.dot { width: 3px; height: 3px; background: var(--text-tertiary); border-radius: 50%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-full);
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--text-tertiary); background: var(--bg-elevated); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn svg { flex-shrink: 0; }

/* Phone Mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; background: #1a1a1c; border-radius: 36px;
  padding: 12px; border: 2px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative; z-index: 2;
}
.phone-screen { background: #0d0d0d; border-radius: 26px; overflow: hidden; padding: 20px 12px 12px; }
.phone-screen-dark { background: #09090b; display: flex; flex-direction: column; min-height: 420px; }
.mock-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; border-bottom: 1px solid #1a1a1e; }
.mock-back { color: var(--accent); font-size: 24px; font-weight: 300; }
.mock-name { color: var(--text); font-size: 16px; font-weight: 600; flex: 1; }
.mock-dot-online { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.mock-messages { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-msg { display: flex; flex-direction: column; max-width: 75%; overflow: hidden; }
.mock-received { align-self: flex-start; }
.mock-sent { align-self: flex-end; }
.mock-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.mock-received .mock-bubble { background: #1c1c1e; color: #e8e6e1; border-bottom-left-radius: 4px; }
.mock-sent .mock-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.mock-bubble-burn { display: flex; align-items: center; gap: 6px; background: rgba(255,107,53,0.15); color: var(--accent); font-size: 12px; font-weight: 600; }
.mock-flame { font-size: 14px; }
.mock-meta { font-size: 11px; color: #666; margin-top: 3px; padding: 0 4px; }
.mock-sent .mock-meta { text-align: right; }
.mock-timer { color: var(--accent); font-weight: 600; }
.mock-input { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #1a1a1e; margin-top: auto; }
.mock-plus { color: var(--accent); font-size: 20px; font-weight: 600; }
.mock-field { flex: 1; color: #555; font-size: 14px; background: #1c1c1e; padding: 8px 14px; border-radius: 20px; }
.mock-mic { font-size: 16px; }
.hero-glow {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; pointer-events: none;
}

/* ========== Trust Bar ========== */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
.trust-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.trust-icon { font-size: 20px; }

/* ========== Features ========== */
.features { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all var(--transition); position: relative;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-2px); }
.feature-highlight { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; }
.feature-highlight .feature-icon-wrap { grid-row: span 2; }
.feature-highlight p { max-width: 640px; }
.feature-icon-wrap { margin-bottom: 16px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feature-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 8px; border-radius: var(--radius-sm);
}

/* ========== How It Works ========== */
.how-it-works { padding: 120px 0; background: var(--bg-elevated); }
.steps { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 32px; padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border: none; }
.step-number { font-size: 48px; font-weight: 800; color: var(--accent-dim); letter-spacing: -2px; line-height: 1; min-width: 64px; color: var(--border-light); }
.step-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ========== Security ========== */
.security { padding: 120px 0; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.security-content h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.security-content > p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.security-list li { display: flex; gap: 14px; }
.check { color: var(--green); font-weight: 700; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.security-list strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.security-list span { font-size: 13px; color: var(--text-secondary); }

.encryption-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; font-family: 'SF Mono', 'Fira Code', monospace;
}
.enc-header { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-tertiary); margin-bottom: 8px; font-family: var(--font); font-weight: 600; }
.enc-algo { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 24px; word-break: break-all; }
.enc-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.enc-row span:first-child { color: var(--text-tertiary); }
.enc-row span:last-child { color: var(--text-secondary); font-weight: 500; }
.enc-status {
  display: flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 12px; color: var(--green); font-family: var(--font); font-weight: 500;
}
.enc-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ========== Pricing ========== */
.pricing { padding: 120px 0; background: var(--bg-elevated); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; display: flex; flex-direction: column; position: relative;
}
.price-featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-glow) 0%, var(--bg-card) 40%); }
.price-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.5px;
}
.price-tier { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.price-amount { font-size: 42px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.price-period { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; margin-bottom: 28px; }
.price-features { list-style: none; flex: 1; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.price-features .check { font-size: 14px; }
.pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-tertiary); }
.pricing-note strong { color: var(--text-secondary); }

/* ========== FAQ ========== */
.faq { padding: 120px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 0;
}
.faq-item summary {
  padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--text-tertiary); transition: transform var(--transition); }
.faq-item[open] summary::after { content: '-'; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { padding: 0 0 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ========== CTA ========== */
.cta {
  padding: 120px 0; text-align: center;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; }
.cta p { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; }

/* ========== Footer ========== */
.footer { border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }

/* ========== Legal Section (homepage) ========== */
.legal-section { padding: 120px 0; }
.legal-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap;
}
.legal-tab {
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 10px 24px; cursor: pointer; transition: all var(--transition);
}
.legal-tab:hover { border-color: var(--text-tertiary); color: var(--text); }
.legal-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.legal-panel { display: none; }
.legal-panel.active { display: block; }

.legal-doc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; max-width: 800px; margin: 0 auto; max-height: 70vh; overflow-y: auto;
}
.legal-doc::-webkit-scrollbar { width: 6px; }
.legal-doc::-webkit-scrollbar-track { background: transparent; }
.legal-doc::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.legal-doc::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

.legal-doc-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.legal-doc-intro { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.legal-doc-warning {
  background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600; color: #ef4444; line-height: 1.7;
}
.legal-doc h3 {
  font-size: 16px; font-weight: 700; color: var(--text); margin-top: 28px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-doc h4 { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 20px; margin-bottom: 8px; }
.legal-doc p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 10px; }
.legal-doc a { color: var(--accent); }
.legal-doc a:hover { opacity: 0.7; }
.legal-doc ul { list-style: none; margin: 8px 0 16px; padding: 0; }
.legal-doc ul li {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  padding: 4px 0 4px 16px; position: relative;
}
.legal-doc ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--border-light);
}
.legal-doc ul li strong { color: var(--text); }
.legal-doc-contact {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; margin-top: 28px;
}
.legal-doc-contact strong { font-size: 14px; display: block; margin-bottom: 6px; }
.legal-doc-contact p { margin-bottom: 0; }

.legal-full-link {
  text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-tertiary);
}
.legal-full-link a { color: var(--accent); font-weight: 500; }
.legal-full-link a:hover { opacity: 0.7; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; gap: 48px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-highlight { grid-column: span 2; grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-highlight { grid-column: span 1; }
  .hero h1 { letter-spacing: -1px; }
  .step { gap: 20px; }
  .step-number { font-size: 36px; min-width: 48px; }
  .trust-inner { gap: 24px; }
  .trust-item { font-size: 13px; }
  .footer-links { flex-direction: column; gap: 32px; }
  .legal-doc { padding: 24px 20px; max-height: 60vh; }
  .legal-tab { padding: 8px 16px; font-size: 12px; }
}
