/* telomere.digital - Neomorphism Soft UI */

/* ===== Custom Properties ===== */
:root {
    --bg-soft-cloud: #E8ECF1;
    --shadow-dark: #D1D9E6;
    --shadow-light: #FFFFFF;
    --text-bio-dark: #2D3748;
    --text-gentle-ink: #5A6577;
    --accent-helix-violet: #6C63FF;
    --accent-cell-teal: #4ECDC4;
    --accent-alert-coral: #FF6B6B;
    --neo-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neo-inset: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --neo-raised-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --neo-pressed: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
    --radius: 24px;
    --radius-sm: 16px;
    --radius-pill: 50px;
}

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

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-soft-cloud);
    color: var(--text-bio-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Neomorphic Utilities ===== */
.neo-raised {
    background: var(--bg-soft-cloud);
    border-radius: var(--radius);
    box-shadow: var(--neo-raised);
    transition: box-shadow 0.3s ease;
}

.neo-raised:hover {
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.neo-inset {
    background: var(--bg-soft-cloud);
    border-radius: var(--radius);
    box-shadow: var(--neo-inset);
}

/* ===== Section Heading ===== */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: var(--text-bio-dark);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* ===== Section Marker (DNA icon) ===== */
.section-marker {
    text-align: center;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero Section ===== */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
}

.hero-inner {
    text-align: center;
}

.hero-card {
    padding: 3rem 2.5rem 2.5rem;
    margin-bottom: 2rem;
}

.helix-svg {
    display: block;
    margin: 0 auto 2rem;
}

.helix-strand {
    animation: helixPulse 4s ease-in-out infinite;
}

.helix-back {
    animation-delay: 2s;
}

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

.helix-rung {
    animation: rungFade 3s ease-in-out infinite;
}

.helix-rung:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes rungFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: var(--text-bio-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-gentle-ink);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Stat Pods ===== */
.stat-pods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.stat-pod {
    padding: 1.5rem 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-pod:hover {
    transform: translateY(-2px);
}

.pod-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 28px;
    color: var(--accent-helix-violet);
    display: inline;
    line-height: 1.2;
}

.pod-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    color: var(--accent-helix-violet);
    opacity: 0.7;
    margin-left: 2px;
}

.pod-label {
    font-size: 13px;
    color: var(--text-gentle-ink);
    display: block;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* ===== Features Section ===== */
.features {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.feature-pods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-pod {
    padding: 2rem 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-pod:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.feature-icon {
    margin-bottom: 1rem;
}

.pod-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-bio-dark);
    margin-bottom: 0.75rem;
}

.pod-desc {
    font-size: 15px;
    color: var(--text-gentle-ink);
    line-height: 1.7;
}

/* ===== Comparison Chart Section ===== */
.comparison {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.chart-card {
    padding: 2.5rem 2rem;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar-group {
    display: grid;
    grid-template-columns: 60px 1fr 70px;
    align-items: center;
    gap: 1rem;
}

.chart-bar-label {
    font-size: 13px;
    color: var(--text-gentle-ink);
    font-family: 'Inter', sans-serif;
    text-align: right;
}

.chart-bar-track {
    height: 18px;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-helix-violet), rgba(108, 99, 255, 0.6));
    border-radius: 9px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chart-bar-fill.highlight {
    background: linear-gradient(90deg, var(--accent-cell-teal), rgba(78, 205, 196, 0.7));
}

.chart-bar-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-bio-dark);
}

/* ===== Calculator Section ===== */
.calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.calc-card {
    padding: 2.5rem 2rem;
}

.calc-row {
    display: grid;
    grid-template-columns: 160px 1fr 70px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.calc-label {
    font-size: 14px;
    color: var(--text-gentle-ink);
    text-align: right;
}

.slider-wrapper {
    position: relative;
    height: 18px;
}

.neo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 18px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    margin: 0;
}

.neo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-soft-cloud);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: box-shadow 0.2s ease;
}

.neo-slider::-webkit-slider-thumb:hover {
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light), inset 0 0 8px rgba(108, 99, 255, 0.15);
}

.neo-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-soft-cloud);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    cursor: pointer;
    border: none;
}

.slider-track-visual {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    pointer-events: none;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-helix-violet), rgba(108, 99, 255, 0.5));
    border-radius: 6px;
    transition: width 0.15s ease;
}

.calc-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-bio-dark);
    text-align: right;
}

.calc-result {
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    border-radius: var(--radius);
}

.result-label {
    font-size: 14px;
    color: var(--text-gentle-ink);
    display: block;
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 56px;
    color: var(--accent-helix-violet);
    display: block;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.result-value.aging-fast {
    color: var(--accent-alert-coral);
}

.result-value.aging-slow {
    color: var(--accent-cell-teal);
}

.result-note {
    font-size: 14px;
    color: var(--accent-cell-teal);
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.result-note.warning {
    color: var(--accent-alert-coral);
}

/* ===== Health Scores Section ===== */
.scores {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.score-pods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.score-pod {
    padding: 1.75rem 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.score-pod:hover {
    transform: translateY(-2px);
}

.ring {
    display: block;
    margin: 0 auto 0.75rem;
}

.ring-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-val {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 20px;
    color: var(--text-bio-dark);
    display: block;
}

.score-label {
    font-size: 12px;
    color: var(--text-gentle-ink);
    display: block;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

/* ===== Testimonials Section ===== */
.testimonials {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.testimonial-pods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.testimonial-pod {
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-bio-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-size: 13px;
    color: var(--accent-helix-violet);
    font-weight: 450;
}

/* ===== Footer ===== */
.footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

.footer-inner {
    text-align: center;
}

/* ===== Newsletter ===== */
.newsletter {
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.newsletter-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-bio-dark);
    margin-bottom: 0.5rem;
}

.newsletter-desc {
    font-size: 14px;
    color: var(--text-gentle-ink);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
    align-items: stretch;
}

.newsletter-input-wrap {
    flex: 1;
    border-radius: var(--radius-pill);
    padding: 2px;
    display: flex;
    align-items: center;
}

.newsletter-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-bio-dark);
    padding: 0.65rem 1.25rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-gentle-ink);
    opacity: 0.6;
}

.newsletter-btn {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-helix-violet);
    background: var(--bg-soft-cloud);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.75rem;
    cursor: pointer;
    box-shadow: var(--neo-raised-sm);
    transition: box-shadow 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    color: var(--accent-cell-teal);
}

.newsletter-btn:active {
    box-shadow: var(--neo-pressed);
}

.newsletter-btn.subscribed {
    color: var(--accent-cell-teal);
    box-shadow: var(--neo-pressed);
}

.newsletter-status {
    font-size: 13px;
    margin-top: 0.75rem;
    min-height: 1.2em;
    color: var(--accent-cell-teal);
    transition: opacity 0.3s ease;
}

/* ===== Footer Links ===== */
.footer-links {
    margin-bottom: 1.5rem;
}

.footer-pods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-pod {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--accent-helix-violet);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    display: inline-block;
    border-radius: var(--radius-pill);
    box-shadow: var(--neo-raised-sm);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.footer-pod:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.footer-pod:active {
    box-shadow: var(--neo-pressed);
    transform: translateY(0);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-gentle-ink);
    opacity: 0.8;
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-soft-cloud: #2D3440;
        --shadow-dark: #232830;
        --shadow-light: #374050;
        --text-bio-dark: #E8ECF1;
        --text-gentle-ink: #A0AABB;
    }

    .newsletter-input {
        color: var(--text-bio-dark);
    }

    .newsletter-input::placeholder {
        color: var(--text-gentle-ink);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .hero-card {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-heading {
        font-size: 22px;
    }

    .stat-pods {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .feature-pods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .score-pods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .testimonial-pods {
        grid-template-columns: 1fr;
    }

    .calc-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .calc-label {
        text-align: left;
    }

    .calc-value {
        text-align: left;
    }

    .chart-bar-group {
        grid-template-columns: 50px 1fr 60px;
        gap: 0.75rem;
    }

    .features,
    .comparison,
    .calculator,
    .scores,
    .testimonials,
    .footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stat-pods {
        grid-template-columns: 1fr;
    }

    .score-pods {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 24px;
    }

    .pod-value {
        font-size: 24px;
    }

    .result-value {
        font-size: 44px;
    }
}
