/* reasr.one — Neomorphic Design System */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg:          #e8e8e8;
    --surface:     #e8e8e8;
    --shadow-dark: #d1d1d1;
    --shadow-light:#ffffff;
    --text-primary:#2d3436;
    --text-muted:  #636e72;
    --accent-green:#00b894;
    --accent-violet:#6c5ce7;
    --accent-soft: #a29bfe;
    --white:       #ffffff;

    /* Shadow presets */
    --shadow-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --shadow-inset:  inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --shadow-pressed:inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --shadow-sm:     4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --shadow-glow:   8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light), 0 0 20px rgba(108, 92, 231, 0.2);

    --radius-card:  20px;
    --radius-sm:    12px;
    --radius-pill:  999px;

    --font-display: 'Nunito', sans-serif;
    --font-body:    'Nunito Sans', sans-serif;
    --font-mono:    'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
#main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ============================================================
   CARD SYSTEM
   ============================================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.card-raised {
    box-shadow: var(--shadow-raised);
}

.card-inset {
    box-shadow: var(--shadow-inset);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    text-align: center;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Breathing pulse animation */
@keyframes breathe {
    0%, 100% {
        box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    }
    50% {
        box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light),
                    0 0 30px rgba(108, 92, 231, 0.08);
    }
}

.breathing-hero {
    animation: breathe 4s ease-in-out infinite;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title-accent {
    color: var(--accent-violet);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.neo-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    background: var(--surface);
    color: var(--text-primary);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
}

.btn-primary {
    box-shadow: var(--shadow-raised);
    color: var(--accent-violet);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    box-shadow: var(--shadow-pressed);
    transform: translateY(0);
}

.btn-ghost {
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
}

.btn-ghost:hover {
    box-shadow: var(--shadow-raised);
    color: var(--text-primary);
}

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

/* ============================================================
   HERO PROGRESS RING
   ============================================================ */
.hero-progress-ring {
    margin-top: 1rem;
}

.progress-ring {
    overflow: visible;
}

.ring-bg {
    stroke: var(--shadow-dark);
    opacity: 0.5;
}

.ring-fill {
    stroke: var(--accent-violet);
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s ease;
}

.ring-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    fill: var(--text-muted);
    letter-spacing: 0.1em;
}

.ring-pct {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    fill: var(--accent-violet);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.neo-icon-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-raised);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.neo-icon-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.feature-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   TOGGLES
   ============================================================ */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-raised);
    transition: box-shadow 0.2s ease;
}

.toggle-row:hover {
    box-shadow: var(--shadow-glow);
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toggle-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toggle-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Neo Toggle Switch */
.neo-toggle {
    width: 58px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease;
}

.neo-toggle[data-active="false"] {
    box-shadow: var(--shadow-inset);
}

.neo-toggle[data-active="true"] {
    box-shadow: var(--shadow-glow);
}

.toggle-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface);
    position: absolute;
    top: 4px;
    left: 4px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.neo-toggle[data-active="true"] .toggle-knob {
    transform: translateX(28px);
    background: var(--surface);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light),
                0 0 10px rgba(108, 92, 231, 0.3);
}

/* ============================================================
   STATS / RINGS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.neo-stat {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: box-shadow 0.25s ease;
}

.neo-stat:hover {
    box-shadow: var(--shadow-glow);
}

.stat-ring-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-ring {
    overflow: visible;
}

.stat-ring .ring-fill {
    stroke: var(--accent-green);
}

.stat-pct {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.stat-unit {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    right: -2px;
    bottom: 14px;
}

.stat-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.03em;
}

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-connector {
    height: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--shadow-dark), transparent);
    margin: 0.25rem 0 0.25rem 19px;
}

.neo-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent-violet);
    letter-spacing: 0.05em;
}

.step-content {
    flex: 1;
    padding-bottom: 0.5rem;
}

.step-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.step-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Mono blocks */
.mono-block {
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-inset);
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    gap: 0.6em;
    overflow: hidden;
}

.mono-prompt {
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

.mono-text {
    color: var(--text-muted);
}

.mono-accent {
    color: var(--accent-violet);
    font-weight: 700;
}

/* Typing cursor */
.typed-text::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--accent-green);
}

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

/* ============================================================
   CTA SECTION
   ============================================================ */
#cta-section {
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cta-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 420px;
}

.cta-input-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin-top: 0.5rem;
}

.neo-input-wrap {
    flex: 1;
    min-width: 200px;
}

.neo-input {
    width: 100%;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-inset);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.neo-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.neo-input:focus {
    box-shadow: var(--shadow-pressed), 0 0 0 2px rgba(108, 92, 231, 0.15);
}

.cta-footnote {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent-violet);
}

.footer-sub {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    #main-container {
        padding: 2rem 1rem 3rem;
        gap: 2rem;
    }

    .card {
        padding: 1.75rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cta-input-row {
        flex-direction: column;
    }

    .neo-input-wrap {
        width: 100%;
    }
}
