/* ========================================
   WhisperVoice Homepage - iOS Light Theme
   Brand: Navy (#1B3A5C) — matches Desktop app
   Surface: #F2F2F7 / Card: #FFFFFF
   ======================================== */

/* CSS Variables */
:root {
  /* Brand — same as desktop app */
  --brand: #1B3A5C;
  --brand-hover: #15304D;
  --brand-muted: rgba(27, 58, 92, 0.10);
  --brand-light: rgba(27, 58, 92, 0.06);

  /* Surfaces — iOS Settings style */
  --bg-primary: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-inset: #E8E8ED;

  /* Text */
  --text-primary: #1C1C1E;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-tertiary: #8E8E93;

  /* Border & effects */
  --border-color: #E5E5EA;
  --border-subtle: rgba(0, 0, 0, 0.06);

  /* Semantic */
  --success: #34C759;
  --success-bg: rgba(52, 199, 89, 0.10);
  --ios-blue: #007AFF;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.0625rem;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle gradient background — light version */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(27, 58, 92, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(27, 58, 92, 0.03) 0%, transparent 50%),
    var(--bg-primary);
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Card — white card on gray background */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
}

/* Badge — navy tinted */
.glass-badge {
  background: var(--brand-muted);
  border: 1px solid rgba(27, 58, 92, 0.15);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(242, 242, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand);
}

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

.lang-selector {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}

.lang-selector option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-value-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-value-icon svg {
  stroke: var(--brand);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

.stat-sublabel {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Screenshot Carousel */
.screenshot-carousel {
  width: 100%;
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: var(--bg-inset);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  background: var(--bg-card);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

/* Typewriter Strip */
.typewriter-strip {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  width: 100%;
  max-width: 520px;
}

.typewriter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.typewriter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* Waveform circle visualizer */
.waveform-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 16px;
}

.waveform-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #3a6b9f);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 0 0 rgba(27, 58, 92, 0.25);
  animation: ringPulse 2.5s ease-in-out infinite;
}

.wv-bar {
  width: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  animation: wvBounce 0.9s ease-in-out infinite alternate;
}

/* Symmetric: short → tall → peak → tall → short */
.wv-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.wv-bar:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.wv-bar:nth-child(3) { height: 28px; animation-delay: 0.24s; }
.wv-bar:nth-child(4) { height: 34px; animation-delay: 0.36s; }
.wv-bar:nth-child(5) { height: 28px; animation-delay: 0.24s; }
.wv-bar:nth-child(6) { height: 18px; animation-delay: 0.12s; }
.wv-bar:nth-child(7) { height: 10px; animation-delay: 0s; }

@keyframes wvBounce {
  0%   { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(27, 58, 92, 0.25); }
  50%  { box-shadow: 0 0 0 14px rgba(27, 58, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 58, 92, 0); }
}

.typewriter-text-container {
  min-height: 1.5em;
}

.typewriter-text {
  color: var(--text-primary);
  font-size: 1rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Section Styles */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(27, 58, 92, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--brand-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brand);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--brand-muted), rgba(27, 58, 92, 0.15));
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Demo Section */
.demo-container {
  padding: 8px;
}

.demo-video {
  aspect-ratio: 16/9;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-placeholder {
  text-align: center;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--brand-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--brand);
}

.play-button:hover {
  background: rgba(27, 58, 92, 0.15);
  transform: scale(1.1);
}

.video-text {
  color: var(--text-muted);
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.use-case {
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.use-case:nth-child(1) { border-top: 3px solid var(--brand); }
.use-case:nth-child(2) { border-top: 3px solid #5856D6; }
.use-case:nth-child(3) { border-top: 3px solid var(--ios-blue); }
.use-case:nth-child(4) { border-top: 3px solid var(--success); }

.use-case:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.use-case-icon {
  width: 76px;
  height: 76px;
  background: var(--brand-muted);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--brand);
}

.use-case h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.use-case p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.use-case-example {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.use-case-example-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.use-case-example-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  display: block;
}

/* Download Section — 2-column layout */
.download {
  padding: 120px 0;
}

.download-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.download-column {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}

.download-column-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.download-column-header svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.download-column-header h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.download-column-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.download-col-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--bg-inset);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.download-btn.macos:hover {
  border-color: var(--brand);
}

.download-icon {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.download-btn.macos .download-icon {
  color: var(--text-primary);
}

.download-info {
  text-align: left;
}

.download-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.download-platform {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.download-platform.app-store-name {
  font-size: 1.375rem;
}

.download-arch {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.download-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.separator {
  color: var(--border-color);
}

.download-btn.windows {
  background: var(--bg-primary);
}

.download-btn.windows:hover {
  border-color: #0078d4;
}

.download-btn.windows .download-icon {
  color: #0078d4;
}

.download-btn.ios {
  background: var(--bg-primary);
}

.download-btn.ios:hover {
  border-color: var(--ios-blue);
}

.download-btn.ios .download-icon {
  color: var(--text-primary);
}

.app-store-badge-link {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
}

.app-store-badge-link:hover {
  border: none;
  opacity: 0.85;
}

.app-store-badge-link img {
  height: 48px;
  width: auto;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 8px;
}

.qr-code-placeholder {
  position: relative;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-code-placeholder.placeholder::after {
  content: 'Coming Soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.qr-code-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 72px 0 36px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.0625rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================
   E2EE Security Section
   ======================================== */

.security {
  padding: 120px 0;
  position: relative;
}

.security .section-header {
  margin-bottom: 60px;
}

.security-badge {
  margin-bottom: 20px;
  color: var(--brand);
  background: var(--brand-muted);
  border-color: rgba(27, 58, 92, 0.15);
}

.security-badge svg {
  color: var(--brand);
}

/* E2EE Flow Diagram */
.security-visual {
  margin-bottom: 60px;
}

.e2ee-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--bg-card);
  border: 1px solid rgba(27, 58, 92, 0.12);
}

.e2ee-flow::before {
  background: linear-gradient(
    135deg,
    rgba(27, 58, 92, 0.03) 0%,
    transparent 50%,
    rgba(27, 58, 92, 0.015) 100%
  );
}

.e2ee-flow-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.e2ee-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.e2ee-icon-wrap {
  width: 88px;
  height: 88px;
  background: var(--brand-muted);
  border: 1px solid rgba(27, 58, 92, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.e2ee-label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.e2ee-arrow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 1;
  min-width: 80px;
  position: relative;
}

.e2ee-arrow-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.e2ee-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -2px;
}

.e2ee-arrow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(27, 58, 92, 0.15), rgba(27, 58, 92, 0.4));
  min-width: 12px;
}

.e2ee-lock {
  width: 40px;
  height: 40px;
  background: var(--brand-muted);
  border: 1px solid rgba(27, 58, 92, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  animation: lockPulse 3s ease-in-out infinite;
}

/* Cloud node lock badge */
.e2ee-cloud-wrap {
  position: relative;
}

.e2ee-cloud-lock {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--brand-muted);
  border: 1.5px solid rgba(27, 58, 92, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(27, 58, 92, 0.1);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(27, 58, 92, 0.08);
  }
}

/* Security Features Grid */
.security-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.security-feature {
  text-align: center;
  padding: 32px 20px;
}

.security-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand);
}

.security-feature h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.security-feature p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   iOS Mobile App Section
   ======================================== */

.mobile-app {
  padding: 120px 0;
  position: relative;
}

.mobile-app-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.mobile-app-content {
  max-width: 540px;
}

.mobile-badge {
  margin-bottom: 20px;
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.15);
}

.mobile-badge svg {
  color: var(--ios-blue);
}

.mobile-app-title {
  text-align: left;
  margin-bottom: 20px;
}

.mobile-app-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.mobile-features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 44px;
}

.mobile-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mobile-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-blue);
  flex-shrink: 0;
}

.mobile-feature-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mobile-feature-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mobile App CTA */
.mobile-app-cta {
  display: flex;
  gap: 12px;
}

/* iPhone Frame with Real Screenshot */
.mobile-app-visual {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 280px;
  background: #F2F2F7;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid #D1D1D6;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.iphone-frame-notch {
  width: 120px;
  height: 28px;
  background: #F2F2F7;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
}

.iphone-frame-screen {
  border-radius: 28px;
  overflow: hidden;
}

.iphone-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-app-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .mobile-app-visual {
    order: -1;
  }

  .mobile-app-title {
    text-align: center;
  }

  .mobile-app-content {
    max-width: 100%;
  }

  .mobile-features-list {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }

  .mobile-feature-item {
    text-align: left;
  }

  .mobile-app-cta {
    justify-content: center;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .security-features-grid {
    grid-template-columns: 1fr;
  }

  .e2ee-flow {
    padding: 24px 16px;
  }

  .e2ee-flow-inner {
    flex-direction: column;
    gap: 4px;
  }

  .e2ee-arrow {
    flex-direction: column;
    min-width: auto;
    min-height: 40px;
  }

  .e2ee-arrow-line {
    width: 2px;
    height: 12px;
    min-width: auto;
    min-height: 12px;
    background: linear-gradient(180deg, rgba(27, 58, 92, 0.15), rgba(27, 58, 92, 0.4));
  }

  .e2ee-arrow-label {
    position: static;
    transform: none;
    margin-top: 2px;
  }

  .trust-content {
    flex-wrap: wrap;
    gap: 24px 48px;
  }

  .trust-divider {
    display: none;
  }

  .iphone-frame {
    width: 240px;
    border-radius: 32px;
    padding: 10px;
  }

  .iphone-frame-notch {
    width: 100px;
    height: 24px;
    border-radius: 0 0 14px 14px;
  }

  .iphone-frame-screen {
    border-radius: 22px;
  }

  .download-columns {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .download-column {
    padding: 32px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .download-card {
    padding: 32px 20px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  padding: 48px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.trust-stat {
  text-align: center;
}

.trust-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.trust-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 80px 0;
  background: var(--bg-secondary, #f8f9fb);
}

.billing-toggle {
  display: inline-flex;
  background: #e5e5ea;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 40px;
}

.billing-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #555);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.billing-option.active {
  background: white;
  color: var(--brand, #1B3A5C);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.billing-option:not(.active):hover {
  color: var(--text-primary, #333);
  background: rgba(255, 255, 255, 0.5);
}

.discount-badge {
  display: inline-block;
  background: var(--wv-brand, #1B3A5C);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 4px;
  vertical-align: middle;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1.5px solid var(--border, #e5e8ef);
  display: flex;
  flex-direction: column;
}
.pricing-card--pro {
  border-color: var(--wv-brand, #1B3A5C);
  position: relative;
  box-shadow: 0 8px 32px rgba(27,58,92,0.12);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wv-brand, #1B3A5C);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.price-amount { font-size: 40px; font-weight: 800; color: var(--wv-brand, #1B3A5C); }
.price-period { font-size: 16px; color: var(--text-secondary, #666); }
.price-equiv { font-size: 13px; color: var(--text-secondary, #888); margin-top: 4px; }
.plan-desc { color: var(--text-secondary, #666); margin: 12px 0 20px; font-size: 14px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-primary, #222);
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wv-brand, #1B3A5C);
  font-weight: 700;
}
.plan-features li.feature-highlight { font-weight: 600; }

.btn-full { width: 100%; text-align: center; }
.plan-note { font-size: 12px; color: var(--text-secondary, #999); text-align: center; margin-top: 10px; }

.pricing-faq {
  max-width: 600px;
  margin: 56px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border, #e5e8ef);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--wv-brand, #1B3A5C); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 16px; color: var(--text-secondary, #555); font-size: 14px; line-height: 1.7; }

.hidden { display: none !important; }
/* ===== /PRICING SECTION ===== */

/* ===== AUTH / LOGIN PAGE ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--bg-inset, #E8E8ED);
  border-radius: 10px;
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary, #6B7280);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-tab.active {
  background: var(--bg-card, #FFFFFF);
  color: var(--text-primary, #1C1C1E);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #1C1C1E);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color, #D1D5DB);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-primary, #1C1C1E);
  background: var(--bg-card, #FFFFFF);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input::placeholder {
  color: var(--text-muted, #8E8E93);
}

.form-group input:focus {
  border-color: var(--wv-brand, #1B3A5C);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted, #8E8E93);
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  min-height: 0;
}

.form-error:empty {
  display: none;
}

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted, #8E8E93);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, #D1D5DB);
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: 1px solid var(--border-color, #D1D5DB);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-primary, #1C1C1E);
}

.btn-oauth:hover {
  background: var(--bg-inset, #F5F5F5);
  border-color: var(--text-muted, #8E8E93);
}

.btn-apple {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.btn-apple:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-footer a {
  color: var(--text-muted, #8E8E93);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--wv-brand, #1B3A5C);
}

/* Nav auth link */
.nav-auth-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wv-brand, #1B3A5C);
  text-decoration: none;
  padding: 7px 18px;
  border: 1.5px solid var(--wv-brand, #1B3A5C);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-auth-link:hover {
  background: var(--wv-brand, #1B3A5C);
  color: white;
}

.nav-auth-link.nav-auth-logged-in {
  font-size: 0.8125rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: rgba(27, 58, 92, 0.3);
  cursor: default;
}

.nav-auth-link.nav-auth-logged-in:hover {
  background: transparent;
  color: var(--wv-brand, #1B3A5C);
}

.nav-logout-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: rgba(27, 58, 92, 0.5);
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  transition: color 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-logout-btn:hover {
  color: #dc2626;
}

/* Account Page */
.account-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.account-loading {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.account-section {
  margin-bottom: 1.25rem;
}

.account-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.account-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.account-row:last-child {
  border-bottom: none;
}

.account-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.account-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.account-badge-pro {
  background: rgba(27, 58, 92, 0.1);
  color: var(--brand);
}

.account-badge-free {
  background: var(--bg-inset);
  color: var(--text-secondary);
}

.account-badge-active {
  background: var(--success-bg);
  color: var(--success);
}
.account-badge-canceled {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.account-badge-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.account-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.account-features li:last-child {
  border-bottom: none;
}

.account-features .check-icon {
  color: var(--success);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.account-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.account-action-btn:hover {
  background: var(--bg-inset);
}

.account-action-btn .action-left {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.account-action-btn .action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.account-action-btn .action-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.account-action-btn .action-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

.account-free-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}

.account-logout-btn {
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.account-logout-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.account-error {
  color: #FF3B30;
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.5rem;
  display: none;
}

@media (max-width: 768px) {
  .auth-page {
    padding: 100px 16px 60px;
  }
  .auth-card {
    padding: 28px 20px;
  }
}
/* ===== /AUTH ===== */
