/* ===============================
   STYLES-HOME.CSS
   Styles for index.html pages:
   hero, earbuds, action steps,
   grids, features, signals,
   validation, problem, connection,
   heart demo, app gentle, phone mockup
   =============================== */

/* Hero */
.hero {
    display: flex;
    align-items: center;
    padding: 140px 0 40px;
    position: relative;
    overflow: hidden;
}

.amber-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 182, 39, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Hero Visual - Earbuds Demo */
.hero-visual {
    display: none;
}

.earbuds-demo {
    position: relative;
    width: 280px;
    height: 280px;
}

.earbud {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.earbud.left {
    left: 30%;
    top: 40%;
    transform: translateX(-50%);
}

.earbud.right {
    right: 30%;
    top: 40%;
    transform: translateX(50%);
}

.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: wave 3s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 1s;
}

.wave:nth-child(3) {
    animation-delay: 2s;
}

@keyframes wave {
    0% {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Action Steps - Horizontal Flow */
.action-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.action-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-num {
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    color: var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
}

.step-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.action-arrow {
    color: var(--color-accent);
}

.final-step {
    background: rgba(16, 185, 129, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
}

.final-step .step-num {
    background: var(--color-success);
    color: white;
}

/* Not Needed Grid */
.not-needed-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.not-needed-item {
    padding: 12px 24px;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid rgba(255, 182, 39, 0.2);
}

.strike {
    text-decoration: line-through;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Changes Grid */
.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.change-card {
    background: var(--color-bg);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
}

.change-before {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.change-arrow {
    color: var(--color-accent);
    margin-bottom: 8px;
}

.change-after {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: 12px;
}

.change-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 182, 39, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 182, 39, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent-dark);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}


/* Signal Grid */
.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.signal-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.signal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 182, 39, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-accent-dark);
}

.signal-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.signal-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.metronome-analogy {
    font-size: 1.15rem;
    color: var(--color-text);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How List */
.how-list {
    max-width: 400px;
    margin: 0 auto;
}

.how-list p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 182, 39, 0.1);
}

.how-list p:last-child {
    border-bottom: none;
}

/* Founder Block */
.founder-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-bg);
    border-radius: 16px;
    border-left: 4px solid var(--color-accent);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.founder-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.founder-content p {
    font-size: 1.15rem;
    color: var(--color-text);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.founder-signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.founder-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.founder-role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Validation Block - from V8 */
.validation-block {
    max-width: 600px;
    margin: 0 auto;
}

.validation-block h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

.validation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.validation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255, 182, 39, 0.08);
}

.validation-check {
    width: 32px;
    height: 32px;
    background: rgba(255, 182, 39, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-dark);
    flex-shrink: 0;
}

.validation-item p {
    font-size: 1.0625rem;
    line-height: 1.6;
    padding-top: 4px;
}


/* Problem Section */
.section-problem {
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.08) 0%, rgba(255, 254, 245, 1) 100%);
}

.problem-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.problem-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--color-text);
}

.problem-symptoms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.symptom {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding-left: 24px;
    position: relative;
}

.symptom::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.problem-consequence {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.problem-consequence strong {
    color: var(--color-accent-dark);
}

/* Connection Demo - from V8 */
.connection-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.demo-before, .demo-after {
    text-align: center;
}

.demo-before span, .demo-after span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-top: 12px;
}

.signal-chaotic, .signal-coherent {
    width: 120px;
    height: 50px;
}

.signal-chaotic, .signal-stressed {
    color: #dc3545;
}

.signal-coherent {
    color: var(--color-accent);
}

.signal-coherent path {
    animation: wave-move 3s ease-in-out infinite;
}

@keyframes wave-move {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.demo-arrow {
    color: var(--color-accent);
}

/* Heart Demo */
.heart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.heart-icon {
    width: 64px;
    height: 64px;
}

.heart-icon svg {
    width: 100%;
    height: 100%;
}

.heart-stressed .heart-icon {
    color: #dc3545;
    animation: pulse-fast 0.5s ease-in-out infinite;
}

.heart-coherent .heart-icon {
    color: var(--color-accent);
    animation: pulse-slow 1.2s ease-in-out infinite;
}

.heart-bpm {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
}

.heart-stressed .heart-bpm {
    color: #dc3545;
}

.heart-coherent .heart-bpm {
    color: var(--color-accent-dark);
}

.heart-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

@keyframes pulse-fast {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* App Gentle - from V8 */
.app-gentle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 32px;
}

.phone-mockup {
    width: 220px;
    height: 440px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    margin: 0 auto;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    margin: 0 auto 16px;
}

.phone-screen {
    height: calc(100% - 40px);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
}

.gentle-greeting {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Phone mockup breathing circle (scoped to avoid conflict with breathe page) */
.phone-screen .breathing-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent), var(--color-accent-dark));
    animation: breathe 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 182, 39, 0.4);
}

@keyframes breathe {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.gentle-prompt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.gentle-btn {
    font-size: 0.875rem;
    padding: 10px 24px;
    background: var(--color-accent);
    color: #FFFFFF;
    border-radius: 12px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-point {
    display: flex;
    gap: 16px;
}

.feature-point .feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 182, 39, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-dark);
    flex-shrink: 0;
}

.feature-point h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-point p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.hero-label {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* ===============================
   RESPONSIVE - Home
   =============================== */

@media (max-width: 900px) {
    .app-gentle {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 40px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .earbuds-demo {
        width: 200px;
        height: 200px;
    }

    .action-flow {
        gap: 16px;
    }

    .action-arrow {
        display: none;
    }

    .connection-demo {
        flex-direction: column;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }
}
