/* ==========================================================================
   OwnContect Design System & Styling
   Inspired by OwnContect (WeChat Emerald Green #07C160 + Cyber Sleek Dark Canvas)
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #07C160;
  --primary-dark: #05A650;
  --primary-light: #10D870;
  --primary-glow: rgba(7, 193, 96, 0.35);
  --primary-subtle: rgba(7, 193, 96, 0.12);
  --primary-border: rgba(7, 193, 96, 0.28);

  /* Surface & Background Neutrals (Modern Deep Cyber Space) */
  --bg-main: #090D16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-nav: rgba(9, 13, 22, 0.85);

  /* Text Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #090D16;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-focus: var(--primary);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #07C160 0%, #00B4D8 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-glow: radial-gradient(circle at 50% 30%, rgba(7, 193, 96, 0.15) 0%, rgba(9, 13, 22, 0) 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--primary-glow);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 20% 10%, rgba(7, 193, 96, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(0, 180, 216, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 13, 22, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary);
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(7, 193, 96, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(7, 193, 96, 0.08);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.pill-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #A7F3D0;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #10D870 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .brand-highlight {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.stat-item h4 span {
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Interactive Smartphone Mockup (App Showcase)
   ========================================================================== */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mockup-ambient-glow {
  position: absolute;
  width: 380px;
  height: 520px;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.28) 0%, rgba(9, 13, 22, 0) 70%);
  z-index: 0;
  filter: blur(40px);
  pointer-events: none;
}

.smartphone {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 640px;
  background: #111520;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 0 2px rgba(255, 255, 255, 0.12),
              inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease;
}

.smartphone:hover {
  transform: translateY(-6px) scale(1.01);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #181C26;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #141824;
  z-index: 10;
}

.island-notch {
  width: 80px;
  height: 18px;
  background: #090C14;
  border-radius: 20px;
  margin: 0 auto;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phone App Top Bar */
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #141824;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-app-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-app-title .online-indicator {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.phone-app-actions {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Phone Screen Content Container */
.phone-view-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: #0E121D;
}

.phone-view {
  display: none;
  height: 100%;
  animation: fadeIn 0.3s ease forwards;
}

.phone-view.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1. Chats View */
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.chat-avatar.green { background: linear-gradient(135deg, #07C160, #05A650); }
.chat-avatar.blue { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.chat-avatar.purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.chat-avatar.orange { background: linear-gradient(135deg, #F97316, #EA580C); }

.chat-avatar .badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #FA5151;
  color: #fff;
  font-size: 0.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141824;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.chat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chat-preview {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Conversation Chat Room View */
.conversation-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.messages-area {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.msg-row.out {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #3B82F6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-avatar.me {
  background: var(--primary);
}

.msg-bubble {
  max-width: 74%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
}

.msg-row.in .msg-bubble {
  background: #242B3C;
  color: #F8FAFC;
  border-bottom-left-radius: 4px;
}

.msg-row.out .msg-bubble {
  background: #07C160;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.audio-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.audio-bar {
  width: 3px;
  background: #FFFFFF;
  border-radius: 2px;
}

.audio-bar:nth-child(1) { height: 6px; }
.audio-bar:nth-child(2) { height: 12px; }
.audio-bar:nth-child(3) { height: 8px; }
.audio-bar:nth-child(4) { height: 14px; }
.audio-bar:nth-child(5) { height: 10px; }

.chat-input-bar {
  padding: 8px 12px;
  background: #141824;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fake-input {
  flex: 1;
  background: #1E2536;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 3. Call HD View */
.call-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  background: radial-gradient(circle at 50% 30%, #153826 0%, #0B101C 80%);
}

.call-header {
  text-align: center;
}

.call-status-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.caller-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

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

.caller-avatar-pulse {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 30px var(--primary-glow);
}

.pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: call-pulse 2s infinite ease-out;
}

@keyframes call-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.call-controls {
  display: flex;
  gap: 18px;
  align-items: center;
}

.call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.call-btn.end {
  background: #FA5151;
  box-shadow: 0 4px 14px rgba(250, 81, 81, 0.4);
}

/* 4. Discover View */
.discover-view {
  padding: 12px;
  gap: 10px;
}

.discover-card {
  background: #182030;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discover-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discover-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Phone Bottom Tab Bar */
.phone-tab-bar {
  height: 52px;
  background: #141824;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.phone-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.2s;
  padding: 4px 8px;
}

.phone-tab-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.phone-tab-btn.active {
  color: var(--primary);
}

/* Mockup External Tab Switcher */
.mockup-controls {
  margin-top: 24px;
  display: flex;
  background: rgba(18, 24, 38, 0.9);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  gap: 4px;
  z-index: 2;
}

.mockup-nav-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.mockup-nav-btn:hover {
  color: #fff;
}

.mockup-nav-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-surface);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--primary-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(7, 193, 96, 0.15);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.feature-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.feature-tag {
  font-size: 0.8rem;
  color: #A7F3D0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-tag::before {
  content: "✓";
  font-weight: bold;
  color: var(--primary);
}

/* ==========================================================================
   Architecture & Tech Stack Section
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-card {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.25s;
}

.arch-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.arch-logo {
  font-size: 2rem;
  margin-bottom: 12px;
}

.arch-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.arch-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.arch-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Download & Deployment Section
   ========================================================================== */
.download-section {
  background: linear-gradient(180deg, rgba(7, 193, 96, 0.05) 0%, rgba(9, 13, 22, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.download-card.featured {
  border-color: rgba(7, 193, 96, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(7, 193, 96, 0.12) 0%, rgba(18, 24, 38, 0.9) 75%);
}

.download-card.featured-apple {
  border-color: rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 24, 38, 0.9) 75%);
}

.download-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.download-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.download-icon.android {
  background: rgba(7, 193, 96, 0.12);
  color: #07C160;
  border: 1px solid rgba(7, 193, 96, 0.28);
  box-shadow: 0 4px 18px rgba(7, 193, 96, 0.25);
}

.download-icon.apple {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

.download-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.download-subtitle {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.download-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 44px;
  line-height: 1.6;
}

/* Dual Button Group */
.download-btn-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-store.android-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-store.android-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.5);
}

.btn-store.apple-primary {
  background: #FFFFFF;
  color: #0A0F1D;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-store.apple-primary:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

.btn-store.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  font-size: 0.88rem;
  padding: 9px 16px;
}

.btn-store.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-store-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.btn-store-sub span.small {
  font-size: 0.68rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store-sub span.big {
  font-size: 0.95rem;
  font-weight: 700;
}

/* QR Code Display */
.download-qr-wrapper {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-code-box {
  width: 108px;
  height: 108px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s;
}

.qr-code-box:hover {
  transform: scale(1.05);
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

.qr-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Meta Badges */
.download-meta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.download-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.download-version {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */
.about-hero {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 60px;
  text-align: center;
}

.about-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.about-hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.value-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.value-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 18px;
  right: 24px;
}

.value-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 32px;
  border-left: 2px solid var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-main);
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-version {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.active {
  border-color: var(--primary-border);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-arrow {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 340px;
}

.footer-column h5 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

  .hero-desc {
    margin: 0 auto 36px;
  }

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

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #0E1320;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    gap: 18px;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
