/* =============================================================================
   CSS Variables & Reset - EXACT WebClient Match
   ============================================================================= */
:root {
    /* Cyberpunk Background Colors - EXACT WebClient */
    --bg-void: #050510;
    --bg-primary: #0a0a1e;
    --bg-secondary: #12121f;
    --bg-tertiary: #1a1a2e;
    --bg-elevated: #222236;
    --bg-hover: #2a2a40;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Neon Color Palette - EXACT WebClient */
    --neon-orange: #ff6b00;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-yellow: #fcee0a;
    --neon-pink: #ff2a6d;
    --neon-purple: #b829dd;
    --neon-green: #05ffa1;
    --neon-red: #ff003c;

    /* Primary Accent (Orange) */
    --accent: #ff6b00;
    --accent-light: #ff8c00;
    --accent-dark: #e65c00;
    --accent-glow: rgba(255, 107, 0, 0.5);
    --accent-glow-strong: rgba(255, 107, 0, 0.8);

    /* Glassmorphism - EXACT WebClient */
    --glass-bg: rgba(10, 10, 30, 0.65);
    --glass-bg-dark: rgba(5, 5, 20, 0.8);
    --glass-bg-light: rgba(20, 20, 50, 0.5);
    --glass-border: rgba(255, 107, 0, 0.15);
    --glass-border-hover: rgba(255, 107, 0, 0.35);

    /* Gradients */
    --gradient-orange: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    --gradient-glow: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);

    /* Borders */
    --border-color: rgba(255, 107, 0, 0.15);
    --border-light: rgba(255, 107, 0, 0.25);

    /* Shadows - Neon Glow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 40px rgba(255, 107, 0, 0.1);
    --shadow-glow-strong: 0 0 30px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.25);
    --shadow-float: 0 25px 80px rgba(0, 0, 0, 0.6);
    --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Typography - Cyberpunk Fonts */
    --font-sans: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 48px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-void);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Cyberpunk Background - EXACT WebClient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 75%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 25%, rgba(255, 90, 0, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 60, 0, 0.06) 0%, transparent 70%),
        linear-gradient(180deg, #0f0a05 0%, #0a0805 50%, #050402 100%);
    pointer-events: none;
    z-index: -2;
}

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

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

ul, ol {
    list-style: none;
}

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

.gradient-text {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* =============================================================================
   Navigation
   ============================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.95);
    border-bottom-color: var(--glass-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 107, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
}

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

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

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* App Preview - Matches actual WebClient cyberpunk glassmorphism EXACTLY */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    position: relative;
    width: 100%;
    max-width: 580px;
}

.preview-window {
    display: flex;
    background: rgba(10, 10, 30, 0.65);
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    aspect-ratio: 16 / 10;
}

.preview-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    z-index: 1;
}

.preview-encryption-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(5, 5, 20, 0.95);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.preview-encryption-badge svg {
    width: 14px;
    height: 14px;
}

/* =============================================================================
   Guild Sidebar - EXACT WebClient match
   ============================================================================= */
.preview-guild-sidebar {
    width: 72px;
    min-width: 72px;
    background: transparent;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
}

.guild-item-wrapper {
    width: 60px;
    height: 52px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.guild-pill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.guild-item-wrapper:hover .guild-pill {
    height: 20px;
}

.guild-pill.active {
    height: 36px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.15);
}

.guild-pill.unread {
    height: 8px;
}

.guild-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 60, 0, 0.1));
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.guild-item:hover {
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.5);
    transform: scale(1.05);
}

.guild-item.active {
    border-radius: 16px;
    background: var(--accent);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6);
    color: #000;
}

.guild-initials {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.guild-separator {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
    margin: 8px 0;
    opacity: 0.4;
}

.guild-item.add-server {
    border-style: dashed;
    border-color: rgba(5, 255, 161, 0.5);
    color: #05ffa1;
}

.guild-item.add-server:hover {
    background: #05ffa1;
    color: #000;
    border-color: #05ffa1;
    box-shadow: 0 0 20px rgba(5, 255, 161, 0.5);
}

.add-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

/* =============================================================================
   Channel Sidebar - EXACT WebClient match
   ============================================================================= */
.preview-channel-sidebar {
    width: 180px;
    min-width: 180px;
    background: rgba(5, 5, 20, 0.8);
    border-right: 1px solid rgba(255, 107, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.server-header {
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(20, 20, 50, 0.5) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-header:hover {
    background: rgba(20, 20, 50, 0.6);
    border-bottom-color: rgba(255, 107, 0, 0.3);
}

.server-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
}

.category-header:hover {
    background: rgba(20, 20, 50, 0.5);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.category-arrow {
    font-size: 8px;
    transition: transform 0.2s ease;
}

.channel-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 2px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: left;
}

.channel-item .channel-pill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #ffffff;
    border-radius: 0 2px 2px 0;
    transition: height 0.15s ease;
}

.channel-item:hover .channel-pill {
    height: 20px;
}

.channel-item .channel-pill.unread {
    height: 8px;
}

.channel-item .channel-pill.active {
    height: 24px;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.channel-item.selected {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), transparent);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.channel-item.unread {
    color: #ffffff;
    font-weight: 600;
}

.channel-item .channel-icon {
    font-size: 14px;
    opacity: 0.7;
    color: var(--accent);
    width: 18px;
    text-align: center;
}

.channel-item .channel-name {
    flex: 1;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-count {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.mention-badge {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    background: #f04747;
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(240, 71, 71, 0.5);
}

/* =============================================================================
   Chat Area - EXACT WebClient match
   ============================================================================= */
.preview-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 30, 0.3);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(20, 20, 50, 0.5) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.header-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.header-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.header-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 107, 0, 0.25);
}

.header-topic {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    transition: background 0.1s ease;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-avatar.orange {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
}

.message-avatar.cyan {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
}

.message-avatar.green {
    background: linear-gradient(135deg, #05ffa1, #00cc88);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.message-author {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #ffffff;
}

.message-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

.message-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.message-input-area {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 107, 0, 0.1);
}

.message-input {
    background: rgba(5, 5, 20, 0.6);
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================================================
   Features Overview Section
   ============================================================================= */
.features-overview {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.features-grid.compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card.featured {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 107, 0, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px;
}

.feature-card.featured .feature-icon {
    margin-bottom: 0;
}

.feature-card.featured .feature-info {
    display: flex;
    flex-direction: column;
}

.feature-card.featured .feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 24px;
    margin-top: 12px;
}

/* Compact feature cards */
.feature-card-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
}

.feature-card-compact:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card-compact .feature-icon {
    margin-bottom: 10px;
}

.feature-card-compact h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.feature-card-compact p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-icon.large {
    width: 48px;
    height: 48px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.feature-icon.large svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-list li svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================================================
   Available On / Platform Cards Section
   ============================================================================= */
.platforms {
    padding: var(--section-padding) 0;
    position: relative;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.platform-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.platform-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.platform-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.platform-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-orange);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    margin-bottom: 12px;
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

.platform-icon svg[fill="currentColor"] {
    fill: white;
    stroke: none;
}

.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
    margin: 0;
}

.platform-os {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.platform-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.platform-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.platform-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.platform-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.coming-soon-card {
    opacity: 0.75;
    border-style: dashed;
}

.coming-soon-card .platform-icon {
    opacity: 0.6;
}

.coming-soon-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 107, 0, 0.3);
    margin-top: 6px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-sm svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.btn.disabled,
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.platforms-version {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
    font-family: var(--font-mono);
}

/* =============================================================================
   Download Grid (Self-Hosting Section)
   ============================================================================= */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.download-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-item:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.download-item-disabled {
    opacity: 0.6;
    border-style: dashed;
}

.download-item-disabled:hover {
    transform: none;
    box-shadow: none;
}

.download-item-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.2);
}

.download-item-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.download-item-icon svg[stroke="currentColor"] {
    fill: none;
    stroke: white;
}

.download-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.download-item-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-item-format {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =============================================================================
   Community Features Section
   ============================================================================= */
.community-features {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Community Card Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.community-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.community-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.community-card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.community-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.community-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.community-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* =============================================================================
   Security Section
   ============================================================================= */
.security {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Split layout: animation left, cards right */
.security-split {
    display: flex;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

/* =============================================================================
   Messaging Hub Encryption Visualization
   ============================================================================= */
.encryption-demo-fullwidth {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.msg-hub {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(5,4,2,0.85) 60%, rgba(10,8,5,0.95) 100%);
    border: 1px solid rgba(255,107,0,0.12);
    overflow: visible;
}

/* SVG layer */
.hub-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.hub-line {
    stroke: rgba(255,107,0,0.08);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    transition: stroke 0.4s, stroke-width 0.4s;
}

.hub-line.active {
    stroke: rgba(255,107,0,0.3);
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(255,107,0,0.2));
}

.hub-packet {
    r: 5;
    fill: #ff6b00;
    filter: drop-shadow(0 0 8px rgba(255,107,0,0.9));
}

/* Central server node */
.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hub-center-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: hubPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hubPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

.hub-center-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(15,12,8,0.95), rgba(25,20,12,0.9));
    border: 1.5px solid rgba(255,107,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hub-center-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
    fill: none;
    filter: drop-shadow(0 0 6px rgba(255,107,0,0.5));
}

.hub-center-label {
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,107,0,0.6);
    letter-spacing: 2px;
}

/* Device nodes - positioned radially around the circle */
.hub-device {
    position: absolute;
    z-index: 15;
    transform: translate(-50%, -50%);
}

/* 6 positions around the circle - angles: 270, 330, 30, 90, 150, 210 deg
   (270 = top center, going clockwise) */
.hub-pos-1 { top: 6%;   left: 50%;  }
.hub-pos-2 { top: 20%;  left: 88%; }
.hub-pos-3 { top: 67%;  left: 92%; }
.hub-pos-4 { top: 93%;  left: 50%;  }
.hub-pos-5 { top: 67%;  left: 8%;  }
.hub-pos-6 { top: 20%;  left: 12%; }

.device-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,107,0,0.15);
    border-radius: 12px;
    white-space: nowrap;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hub-device.sending .device-card {
    border-color: rgba(255,107,0,0.5);
    box-shadow: 0 0 16px rgba(255,107,0,0.2);
}

.hub-device.receiving .device-card {
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 16px rgba(34,197,94,0.2);
}

/* Avatar with presence indicator */
.device-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
}

.presence-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.7);
    transition: background 0.5s;
}

.presence-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
}

.presence-dot.idle {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245,158,11,0.6);
}

.presence-dot.offline {
    background: #6b7280;
    box-shadow: none;
}

.device-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.device-username {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.2;
}

.device-type {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.2;
}

.device-type svg {
    width: 10px;
    height: 10px;
    stroke: rgba(255,255,255,0.3);
    fill: none;
    flex-shrink: 0;
}

/* Push notification popup for mobile devices */
.device-push-notif {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,107,0,0.15);
    border: 1px solid rgba(255,107,0,0.4);
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 30;
}

.device-push-notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-100%) translateY(-4px);
}

.device-push-notif svg {
    width: 12px;
    height: 12px;
    stroke: #ff6b00;
    fill: none;
    flex-shrink: 0;
    animation: bellShake 0.5s ease-in-out;
}

.device-push-notif.show svg {
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(6deg); }
    80% { transform: rotate(-3deg); }
}

.push-text {
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    color: #ff6b00;
    letter-spacing: 0.3px;
}

/* Activity feed overlay - bottom center */
.hub-activity {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}

.activity-entry {
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
}

.activity-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-entry.msg-out {
    color: #ff6b00;
    background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.12);
}

.activity-entry.msg-in {
    color: #22c55e;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.12);
}

.activity-entry.presence-change {
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.security-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.security-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.security-card-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.security-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.security-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================================
   Self-Hosting Section
   ============================================================================= */
.self-hosting {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Two-column split: benefits left, requirements right */
.hosting-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.hosting-split h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Left column: compact benefit list */
.hosting-benefits-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.benefit-row h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-row p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Right column: system requirements */
.hosting-requirements-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.spec-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.spec-card {
    padding: 20px;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.spec-card.recommended {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.spec-card h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.spec-card.recommended h5 {
    color: var(--accent);
}

.spec-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-card li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.spec-card li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Included services as tags */
.included-services h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-size: 0.8125rem;
    padding: 6px 14px;
    background: var(--gradient-glow);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hosting CTA */
.hosting-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 107, 0, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.hosting-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hosting-cta p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hosting-cta .download-version {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 16px;
    margin-bottom: 0;
}

/* =============================================================================
   How It Works Section
   ============================================================================= */
.how-it-works {
    padding: var(--section-padding) 0;
    position: relative;
}

/* 2x2 Step Card Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.step-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.step-card-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.step-card-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.step-card-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* =============================================================================
   About Section
   ============================================================================= */
.about {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Two-column split: story left, values right */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-split h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-story {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.story-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.about-values {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.value-row h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.value-row p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* =============================================================================
   CTA Section
   ============================================================================= */
.cta {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255, 107, 0, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
    padding: 60px 0 30px;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent);
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */
@media (max-width: 1024px) {
    /* Mobile navigation at 1024px */
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.active,
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-actions.active {
        flex-direction: row;
        justify-content: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .hero-image {
        order: -1;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .app-preview {
        max-width: 480px;
    }

    .preview-guild-sidebar {
        width: 60px;
        min-width: 60px;
    }

    .guild-item {
        width: 40px;
        height: 40px;
    }

    .guild-initials {
        font-size: 0.8rem;
    }

    .preview-channel-sidebar {
        width: 160px;
        min-width: 160px;
    }

    .server-header {
        height: 40px;
        min-height: 40px;
    }

    .server-name {
        font-size: 0.6rem;
    }

    .channel-item {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .chat-header {
        height: 36px;
        min-height: 36px;
    }

    .message-avatar {
        width: 30px;
        height: 30px;
    }

    .message-author {
        font-size: 0.65rem;
    }

    .message-text {
        font-size: 10px;
    }

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

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

    .feature-card.featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-card.featured .feature-icon {
        margin: 0 auto 20px;
    }

    .feature-card.featured .feature-list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 400px;
        margin: 16px auto 0;
    }

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

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

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hosting-split,
    .about-split {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .preview-window {
        aspect-ratio: 4 / 3;
    }

    .preview-channel-sidebar {
        display: none;
    }

    .preview-guild-sidebar {
        width: 50px;
        min-width: 50px;
    }

    .guild-item {
        width: 36px;
        height: 36px;
    }

    .guild-initials {
        font-size: 0.7rem;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
    }

    .message-item {
        gap: 10px;
        padding: 3px 12px;
    }

    .message-author {
        font-size: 0.6rem;
    }

    .message-text {
        font-size: 9px;
    }

    .chat-header {
        height: 32px;
        min-height: 32px;
        padding: 0 12px;
    }

    .header-name {
        font-size: 0.7rem;
    }

    .header-topic {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .message-input-area {
        padding: 8px 12px;
    }

    .message-input {
        padding: 8px 12px;
        font-size: 9px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .platform-card {
        padding: 22px;
    }

    .platform-card-header {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        margin-bottom: 16px;
    }

    .platform-icon {
        margin-bottom: 0;
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .platform-icon svg {
        width: 22px;
        height: 22px;
    }

    .platform-card h3 {
        font-size: 1rem;
        margin: 0;
    }

    .platform-os {
        margin-top: 2px;
    }

    .platform-card-header .coming-soon-badge {
        margin-top: 4px;
    }

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

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

    .feature-card.featured {
        grid-column: span 1;
    }

    .hosting-benefits-compact,
    .hosting-requirements-compact {
        padding: 24px;
    }

    .spec-cards {
        grid-template-columns: 1fr;
    }

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

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

    .community-card {
        padding: 18px;
    }

    .about-story,
    .about-values {
        padding: 24px;
    }

    .hosting-cta {
        padding: 32px 24px;
    }

    /* Security split stacks on tablet */
    .security-split {
        flex-direction: column;
        gap: 24px;
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Messaging hub responsive - tablet */
    .encryption-demo-fullwidth {
        padding: 24px 20px;
    }

    .msg-hub {
        max-width: 380px;
    }

    .device-card {
        padding: 6px 10px 6px 6px;
        gap: 6px;
    }

    .device-avatar,
    .avatar-initials {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .presence-dot {
        width: 8px;
        height: 8px;
    }

    .device-username {
        font-size: 0.65rem;
    }

    .device-type {
        font-size: 0.5rem;
    }

    .device-type svg {
        width: 8px;
        height: 8px;
    }

    .hub-center-icon {
        width: 46px;
        height: 46px;
    }

    .hub-center-icon svg {
        width: 22px;
        height: 22px;
    }

    .hub-center-label {
        font-size: 0.45rem;
    }

    .hub-activity {
        display: none;
    }

    .device-push-notif {
        padding: 4px 8px;
    }

    .push-text {
        font-size: 0.45rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .platform-card {
        padding: 18px;
    }

    .platform-features li {
        font-size: 0.8rem;
    }

    .platform-actions {
        justify-content: flex-start;
    }

    /* Messaging hub responsive - mobile */
    .encryption-demo-fullwidth {
        padding: 24px 16px;
    }

    .msg-hub {
        max-width: 320px;
    }

    .device-card {
        padding: 4px 8px 4px 4px;
        gap: 5px;
        border-radius: 8px;
    }

    .device-avatar,
    .avatar-initials {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
    }

    .presence-dot {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
    }

    .device-username {
        font-size: 0.55rem;
    }

    .device-type {
        display: none;
    }

    .hub-center-icon {
        width: 38px;
        height: 38px;
    }

    .hub-center-icon svg {
        width: 18px;
        height: 18px;
    }

    .hub-center-label {
        font-size: 0.4rem;
        letter-spacing: 1px;
    }

    .device-push-notif {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .stat {
        align-items: center;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .step-card {
        padding: 20px;
        gap: 16px;
    }

    .step-card-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =============================================================================
   Skeleton / Placeholder Animations - EXACT WebClient match
   ============================================================================= */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    border-radius: 4px;
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-wave {
    animation: skeleton-wave 1.5s linear infinite;
}

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

@keyframes skeleton-wave {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton specific shapes */
.skeleton-circular {
    border-radius: 50%;
}

.skeleton-rounded {
    border-radius: 8px;
}

/* Neon glow classes - EXACT WebClient match */
.glow {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 40px rgba(255, 107, 0, 0.1);
}

.glow-strong {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.25);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Neon pulse animation */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 40px rgba(255, 107, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.25);
    }
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* =============================================================================
   Animations
   ============================================================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.app-preview {
    animation: float 6s ease-in-out infinite;
}

/* Scroll animations - elements start hidden and animate in */
.feature-card,
.feature-card-compact,
.benefit-row,
.security-card,
.value-row,
.step-card,
.community-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.feature-card-compact.visible,
.benefit-row.visible,
.security-card.visible,
.value-row.visible,
.step-card.visible,
.community-card.visible {
    opacity: 1;
    transform: translateY(0);
}
