/* ─── Hero Section ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(91, 184, 241, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: gradientShift 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(91, 184, 241, 0.08);
    border: 1px solid rgba(91, 184, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--green-light);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero h1 .accent {
    background: linear-gradient(90deg, var(--green-light), #3B82F6, var(--green-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

/* ─── Voice Visualizer (Hero centerpiece) ─── */
.voice-viz {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
    opacity: 0;
    animation: fadeUp 1s 1s forwards;
}

.voice-viz-container {
    position: relative;
    width: min(800px, 90vw);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.voice-viz-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(91, 184, 241, 0.2), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.viz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.viz-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--green-light);
    font-weight: 500;
}

.viz-status .dot {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.viz-timer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

#waveformCanvas {
    width: 100%;
    height: 120px;
    border-radius: 12px;
}

.viz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.viz-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.transcript-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
}

.transcript-line.visible {
    animation: fadeUp 0.5s forwards;
}

.transcript-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 0.1rem;
}

.label-ai {
    background: rgba(91, 184, 241, 0.15);
    color: var(--green-light);
}

.label-user {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
}

.transcript-text {
    color: var(--text-secondary);
}

/* ─── Floating Particles ─── */
.particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-light);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
}

/* ─── Problem Stats ─── */
.problem-section {
    background: linear-gradient(180deg, #0d1220 0%, var(--bg-dark) 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

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

.problem-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.problem-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── How It Works ─── */
.how-it-works {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1220 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(91, 184, 241, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(91, 184, 241, 0.15), rgba(91, 184, 241, 0.05));
    border: 1px solid rgba(91, 184, 241, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-light);
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    color: rgba(91, 184, 241, 0.3);
    animation: gentleFloat 3s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon { animation-delay: -1s; }
.step-card:nth-child(3) .step-icon { animation-delay: -2s; }

/* ─── Features Teaser (Home page) ─── */
.features-teaser {
    background: var(--bg-dark);
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.teaser-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(20px);
}

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

.teaser-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(91, 184, 241, 0.12);
    transform: translateY(-2px);
}

.teaser-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(91, 184, 241, 0.15), rgba(91, 184, 241, 0.05));
    color: var(--green-light);
}

.teaser-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teaser-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    color: var(--green-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.2s;
}

.teaser-link:hover {
    gap: 0.75rem;
}

/* ─── CTA Section ─── */
.cta-section {
    background: var(--bg-dark);
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 184, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section-title {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.cta-section .section-subtitle {
    max-width: 500px;
    margin: 0 auto 2.5rem;
}
