/* ============================================
   Landline Website Styles
   Matching the dark theme of the desktop app
   ============================================ */

/* CSS Variables - Matching Tailwind config */
:root {
    /* Primary Colors */
    --primary: #4A90A4;
    --primary-hover: #5BA3B8;
    --primary-50: #f0f9fa;
    --primary-100: #d9f0f4;
    --primary-200: #b7e2ea;
    --primary-300: #84ccdb;
    --primary-400: #4aadca;
    --primary-500: #4A90A4;
    --primary-600: #3d7489;
    --primary-700: #365f70;
    --primary-800: #32505d;
    --primary-900: #2d434f;

    /* Surface Colors */
    --surface: #242424;
    --surface-hover: #2d2d2d;
    --surface-active: #363636;
    --background: #1a1a1a;
    --border: #3d3d3d;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --nav-height: 72px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--primary);
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--primary-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.2s;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 48px) 24px 48px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 144, 164, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(74, 144, 164, 0.08), transparent);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 144, 164, 0.15);
    border: 1px solid rgba(74, 144, 164, 0.3);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* ============================================
   App Preview - Exact Replica of ExpandedPanel
   All styles scoped to .app-preview to prevent leaking
   ============================================ */
.app-preview {
    width: 100%;
    max-width: 580px;
    background: var(--background);
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
}

/* Reset all SVGs inside app-preview */
.app-preview svg {
    display: block;
    flex-shrink: 0;
}

/* Title Bar - h-8 (32px) */
.app-preview .app-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 32px;
    flex-shrink: 0;
}

.app-preview .titlebar-text {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

.app-preview .titlebar-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-preview .control-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.app-preview .control-btn svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.app-preview .control-btn:hover {
    background: var(--surface-hover);
}

.app-preview .control-btn:hover svg {
    color: var(--primary);
}

.app-preview .control-btn.pin svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.app-preview .control-btn.close:hover {
    background: #dc2626;
}

.app-preview .control-btn.close:hover svg {
    color: white;
}

/* Main Content Area */
.app-preview .app-main {
    display: flex;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
}

/* Facility Grid Section */
.app-preview .app-grid-section {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-preview .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.app-preview .page-name {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
}

.app-preview .page-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #d1d5db;
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.app-preview .page-indicator:hover {
    background: var(--surface-hover);
}

.app-preview .page-indicator svg {
    width: 12px;
    height: 12px;
}

/* Grid - 4 columns */
.app-preview .app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Channel Button - matches ChannelButton.tsx */
.app-preview .channel-btn {
    position: relative;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.app-preview .channel-btn:not(.empty):hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.app-preview .channel-btn.offline {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-preview .channel-btn.you,
.app-preview .channel-btn.consolidated {
    opacity: 0.7;
    cursor: default;
}

.app-preview .channel-inner {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 2px solid var(--channel-color, #4a5568);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.app-preview .channel-short {
    color: white;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.app-preview .channel-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Status dot - top right */
.app-preview .channel-btn .status-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #4b5563;
}

.app-preview .channel-btn.online .status-dot {
    background: #4ade80;
}

.app-preview .channel-btn.you .status-dot,
.app-preview .channel-btn.consolidated .status-dot {
    background: #60a5fa;
}

/* Channel badge - YOU/CON indicator */
.app-preview .channel-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 7px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    color: white;
}

.app-preview .channel-badge.you {
    background: rgba(59, 130, 246, 0.8);
}

.app-preview .channel-badge.con {
    background: rgba(107, 114, 128, 0.8);
}

/* Empty slot */
.app-preview .channel-btn.empty {
    background: rgba(36, 36, 36, 0.3);
    border: 1px solid rgba(61, 61, 61, 0.3);
    border-radius: 8px;
    cursor: default;
}

/* Call Panels Section - w-[220px] scaled */
.app-preview .app-call-section {
    width: 160px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Active Call Panel */
.app-preview .call-panel.active-call {
    height: 180px;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
}

/* Pending Calls Panel */
.app-preview .call-panel.pending-calls {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.app-preview .panel-header {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.app-preview .call-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-preview .call-target {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-preview .call-name {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.app-preview .call-timer {
    font-size: 18px;
    font-family: var(--font-mono);
    color: var(--success);
    margin-top: 8px;
}

.app-preview .call-type-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-top: 4px;
}

.app-preview .call-type-badge.call {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.app-preview .call-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    flex-shrink: 0;
}

.app-preview .call-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    cursor: pointer;
    transition: background 0.15s;
}

.app-preview .call-btn:hover {
    background: var(--surface-hover);
}

.app-preview .call-btn svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.app-preview .call-btn.end {
    background: #dc2626;
}

.app-preview .call-btn.end:hover {
    background: #ef4444;
}

.app-preview .call-btn.end svg {
    color: white;
}

/* Pending Calls */
.app-preview .pending-call {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
}

.app-preview .pending-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.app-preview .pending-callsign {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-preview .pending-type {
    font-size: 10px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 8px;
    border-radius: 9999px;
}

.app-preview .pending-actions {
    display: flex;
    gap: 4px;
}

.app-preview .pending-btn {
    flex: 1;
    padding: 6px 0;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.app-preview .pending-btn.accept {
    background: var(--success);
    color: white;
}

.app-preview .pending-btn.accept:hover {
    background: #16a34a;
}

.app-preview .pending-btn.decline {
    background: #dc2626;
    color: white;
}

.app-preview .pending-btn.decline:hover {
    background: #b91c1c;
}

/* Control Bar - h-[80px] scaled */
.app-preview .app-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-top: 1px solid var(--border);
    background: var(--background);
    height: 56px;
    flex-shrink: 0;
}

.app-preview .control-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mic indicator */
.app-preview .mic-indicator {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 8px;
}

.app-preview .mic-indicator svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
}

/* Volume control */
.app-preview .volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-preview .volume-control svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.app-preview .volume-slider {
    width: 80px;
    height: 4px;
    background: #374151;
    border-radius: 9999px;
    position: relative;
}

.app-preview .volume-slider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 70%;
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
}

/* Settings button */
.app-preview .settings-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.app-preview .settings-btn:hover {
    background: var(--surface-hover);
}

.app-preview .settings-btn svg {
    width: 20px;
    height: 20px;
    color: #d1d5db;
}

/* Position Badge */
.app-preview .position-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-preview .badge-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.app-preview .badge-status.online {
    background: #22c55e;
}

.app-preview .badge-info {
    text-align: right;
}

.app-preview .badge-callsign {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-preview .badge-cid {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--surface);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 144, 164, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 164, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Tech Stack Section
   ============================================ */

.tech-stack {
    padding: 80px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
    padding: 24px;
}

.tech-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tech-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    padding: 120px 24px;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 64px 24px 32px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-version {
    font-family: var(--font-mono);
}

/* ============================================
   Wiki/Documentation Styles
   ============================================ */

.wiki-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

.wiki-sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.wiki-nav-section {
    margin-bottom: 32px;
}

.wiki-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.wiki-nav-list {
    list-style: none;
}

.wiki-nav-list li {
    margin-bottom: 4px;
}

.wiki-nav-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.wiki-nav-list a:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.wiki-nav-list a.active {
    background: rgba(74, 144, 164, 0.15);
    color: var(--primary);
}

.wiki-content {
    flex: 1;
    padding: 48px;
    max-width: 900px;
}

.wiki-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.wiki-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wiki-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.wiki-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.wiki-content ul, .wiki-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.wiki-content li {
    margin-bottom: 8px;
}

.wiki-content code {
    font-family: var(--font-mono);
    background: var(--surface-active);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

.wiki-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.wiki-content pre code {
    background: none;
    padding: 0;
}

.wiki-content .callout {
    background: rgba(74, 144, 164, 0.1);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.wiki-content .callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.wiki-content .callout.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

/* ============================================
   Download Page Styles
   ============================================ */

.download-page {
    padding: calc(var(--nav-height) + 80px) 24px 80px;
    min-height: 100vh;
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 144, 164, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.download-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.download-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-page .subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}

.download-version {
    display: inline-block;
    background: rgba(74, 144, 164, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    margin-bottom: 24px;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.download-btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.download-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 24px;
}

.requirements {
    text-align: left;
    margin-top: 48px;
}

.requirements h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.requirements ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.requirements li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.requirements li svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 48px;
        width: 100%;
        max-width: 500px;
    }

    .app-preview {
        transform: scale(0.85);
        transform-origin: top center;
    }

    .wiki-sidebar {
        display: none;
    }

    .wiki-content {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .hero-visual {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .nav-links .nav-btn {
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .app-preview {
        max-width: 100%;
    }

    .app-preview .app-main {
        flex-direction: column;
        min-height: auto;
    }

    .app-preview .app-grid-section {
        min-height: 200px;
    }

    .app-preview .app-call-section {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        height: auto;
    }

    .app-preview .call-panel.active-call {
        height: auto;
        min-height: 160px;
        border-bottom: none;
        border-right: 1px solid var(--border);
        flex: 1;
    }

    .app-preview .call-panel.pending-calls {
        flex: 1;
        min-height: 100px;
    }

    .app-preview .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-preview .control-left {
        gap: 8px;
    }

    .app-preview .volume-slider {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .download-card {
        padding: 24px;
    }
}
