/* ==========================================================================
   Hero Section, Why RedRing Comparison, Terminal Demo, Features
   ========================================================================== */

/* ── Hero ── */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
}

.hero h1 { max-width: 900px; margin: 0 auto var(--space-xl); }

.hero p {
    max-width: 650px; margin: 0 auto var(--space-3xl);
    font-size: 1.25rem; line-height: 1.7;
}

.hero-dev-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto var(--space-xl);
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(255, 62, 51, 0.3);
    border-radius: 999px;
    background: rgba(255, 62, 51, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgba(255, 62, 51, 0.08), 0 10px 30px rgba(255, 62, 51, 0.12);
    animation: alphaPulse 2.4s ease-in-out infinite;
}

.hero-dev-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 62, 51, 0.7);
    animation: dotPulse 1.6s infinite;
}

.hero-dev-status__text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-dev-status__text strong {
    color: var(--accent);
    font-weight: 600;
}

.hero-dev-status__text span {
    color: var(--text-main);
}

.hero-btns {
    display: flex; gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-5xl);
}

/* ==========================================================================
   "Why RedRing?" Comparison Section
   ========================================================================== */
.why-section { padding: var(--space-6xl) 0; }

.why-section .section-header {
    text-align: center; margin-bottom: var(--space-4xl);
}

.why-section .section-header h2 { margin-bottom: var(--space-md); }

.comparison-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 960px; margin: 0 auto;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    position: relative; overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.comparison-card:hover {
    transform: translateY(-4px);
}

.comparison-card--traditional { opacity: 0.75; }

.comparison-card--traditional::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(113, 113, 122, 0.05), transparent);
    pointer-events: none;
}

.comparison-card--redring {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.comparison-card--redring::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent-glow-subtle), transparent);
    pointer-events: none;
}

.comparison-card h3 {
    margin-bottom: var(--space-xl);
    font-size: 1.25rem;
    display: flex; align-items: center; gap: var(--space-sm);
}

.comparison-card--traditional h3 { color: var(--text-muted); }
.comparison-card--redring h3 { color: var(--accent); }

.comparison-list {
    display: flex; flex-direction: column;
    gap: var(--space-lg);
}

.comparison-item {
    display: flex; align-items: flex-start;
    gap: var(--space-md);
    font-size: 1rem; color: var(--text-muted); line-height: 1.6;
}

.comparison-item .icon { flex-shrink: 0; font-size: 1.125rem; margin-top: 0.1em; }
.comparison-card--traditional .icon { color: var(--text-dark); }
.comparison-card--redring .icon { color: var(--accent); }

/* ==========================================================================
   Interactive Terminal Demo
   ========================================================================== */
.terminal-demo { padding: var(--space-5xl) 0; }

.terminal-demo .section-header {
    text-align: center; margin-bottom: var(--space-3xl);
}

.terminal-demo .section-header h2 { margin-bottom: var(--space-md); }

.terminal-container {
    max-width: 720px; margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.terminal-header {
    background: #1e1e1e;
    padding: 0.75rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem; color: var(--text-dark);
}

.terminal-body {
    background: #0d0d0d;
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.875rem; color: #d4d4d8;
    line-height: 1.8; min-height: 280px;
    position: relative;
}

.terminal-line {
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}

.terminal-line.visible { opacity: 1; transform: translateY(0); }

.terminal-line .prompt   { color: var(--accent); }
.terminal-line .command  { color: #e2e8f0; }
.terminal-line .success  { color: #27c93f; }
.terminal-line .info     { color: #71717a; }
.terminal-line .highlight { color: #facc15; }
.terminal-line .fix      { color: #60a5fa; }

.terminal-cursor {
    display: inline-block; width: 8px; height: 16px;
    background: var(--accent);
    animation: cursorBlink 1s step-end infinite;
    vertical-align: text-bottom; margin-left: 2px;
}

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

@keyframes alphaPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 1px rgba(255, 62, 51, 0.08), 0 10px 30px rgba(255, 62, 51, 0.12); }
    50% { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 62, 51, 0.16), 0 14px 36px rgba(255, 62, 51, 0.18); }
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 51, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 62, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 51, 0); }
}

.terminal-replay {
    display: flex; justify-content: center;
    padding: var(--space-lg) 0 0;
}

.btn-replay {
    font-family: var(--font-mono);
    font-size: 0.8rem; color: var(--text-dark);
    background: none; border: 1px solid var(--border);
    padding: 0.4rem 1rem; border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition-base);
}

.btn-replay:hover {
    color: var(--text-main); border-color: var(--border-light);
}

/* ── Features Grid ── */
.features-section .section-header {
    text-align: center; margin-bottom: var(--space-3xl);
}

.features-section .section-header h2 { margin-bottom: var(--space-md); }

.features-section .section-header p {
    max-width: 600px; margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}
