/* FlexCala - The Obsidian Instrument */
:root {
    --surface: #131315;
    --surface-low: #1B1B1D;
    --surface-container: #1F1F21;
    --surface-highest: #353437;
    
    --primary: #ADC6FF;
    --primary-container: #4B8EFF;
    --secondary: #53E16F;
    --error: #FFB4AA;
    
    --on-surface: #E4E2E4;
    --on-surface-variant: #C1C6D7;
    --outline-variant: rgba(65, 71, 85, 0.2);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', monospace;
    --font-mono: 'SF Mono', 'Space Grotesk', monospace;
    
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 32px rgba(173, 198, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--on-surface);
}

p, a {
    color: var(--on-surface-variant);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateY(-8deg) rotateX(7deg); }
    100% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
}

@keyframes pulse-glow {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    background: rgba(19, 19, 21, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    color: var(--on-surface);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lang-switch {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
}

.lang-switch a {
    color: var(--on-surface-variant);
}

.lang-switch a:hover {
    color: var(--primary);
}

.lang-switch .active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--on-surface);
}

.cta-link {
    background-color: var(--primary);
    color: var(--surface) !important;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600 !important;
}

.cta-link:hover {
    background-color: var(--on-surface);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 64px 80px;
    gap: 120px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: radial-gradient(circle at center right, rgba(75, 142, 255, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    flex: 0 1 650px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--surface-low);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(173, 198, 255, 0.1);
}

.hero-title {
    font-size: 84px;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 56px;
    max-width: 600px;
    color: var(--on-surface-variant);
}

.store-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(31, 31, 33, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--on-surface);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-button:hover:not(.disabled) {
    background-color: var(--surface-highest);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(173, 198, 255, 0.2);
}

.store-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    letter-spacing: 1px;
}

.btn-large {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-sans);
}

/* Hero Visual / Phone */
.hero-visual {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1200px;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.2;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(60px);
}

.phone-mockup-wrapper {
    animation: float 8s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1200px;
    z-index: 1;
}

.phone-mockup {
    width: 360px;
    height: 720px;
    background-color: #000;
    border-radius: 46px;
    padding: 14px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s linear;
    transform-style: preserve-3d;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--surface);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-scroll-area {
    padding: 48px 24px;
    height: 100%;
    overflow-y: hidden;
}

.phone-screen-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.5s ease, transform 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.phone-screen-content.fade-out {
    opacity: 0;
}

/* Steps logic inside screen */
.calculation-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    border-left: 2px solid var(--primary);
}
.step-val {
    font-family: var(--font-mono);
    color: var(--on-surface);
    font-weight: 600;
}

/* Marquee Section */
.marquee-section {
    padding: 40px 0;
    background: var(--surface-low);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-section::before, .marquee-section::after {
    content: '';
    position: absolute;
    top: 0; width: 200px; height: 100%;
    z-index: 2;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-low), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-low), transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll-x 40s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--on-surface-variant);
    margin: 0 40px;
}

.marquee-item .highlight {
    color: var(--primary);
    font-weight: 800;
}

/* Main Sections Layout */
.scenarios, .how-it-works, .features {
    padding: 160px 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 56px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 22px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* Reuse Showcase */
.reuse-showcase {
    padding: 160px 64px;
    background-color: var(--surface-low);
    position: relative;
    overflow: hidden;
}
.reuse-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 120px;
}
.reuse-content {
    flex: 1;
}
.reuse-content .section-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(75, 142, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(75, 142, 255, 0.15);
}
.reuse-content h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 32px;
}
.reuse-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--on-surface-variant);
}
.reuse-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}
.library-mockup {
    width: 440px;
    height: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 0;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(40px);
    overflow: hidden;
}
.lib-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 32px 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}
.lib-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.lib-screen-list { transform: translateX(-20px); }
.lib-screen-list.active { transform: translateX(0); }
.lib-screen-list.exit { transform: translateX(-100%); opacity: 0; }
.lib-screen-run { transform: translateX(100%); }
.lib-screen-run.active { transform: translateX(0); }
.lib-screen-run.exit { transform: translateX(20px); }

/* Run View Styles */
.lib-run-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.back-btn {
    width: 24px; height: 24px;
    color: var(--primary);
}
.lib-run-title {
    font-size: 18px; font-weight: 700;
}
.lib-run-vars {
    display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
.lib-run-var label {
    font-size: 13px; color: var(--on-surface-variant); margin-bottom: 8px; display: block;
}
.lib-input {
    height: 48px; background: rgba(255,255,255,0.05); border-radius: 12px;
    display: flex; align-items: center; padding: 0 16px; font-family: var(--font-mono); font-size: 16px;
    color: var(--on-surface);
    position: relative;
}
.lib-input.focus {
    box-shadow: 0 0 0 2px var(--primary);
}
.lib-input.focus::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.lib-run-result {
    background: var(--surface-container); padding: 20px; border-radius: 16px;
    text-align: center; border: 1px solid rgba(255,255,255,0.05);
}
.res-label { font-size: 13px; color: var(--on-surface-variant); margin-bottom: 8px; }
.res-val { font-size: 32px; font-weight: 800; font-family: var(--font-mono); color: var(--primary); transition: color 0.3s; }
.res-val.highlight { color: #fff; text-shadow: 0 0 20px rgba(75, 142, 255, 0.8); }

/* Mock Cursor */
.mock-cursor {
    position: absolute; width: 36px; height: 36px; z-index: 100;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    opacity: 0; pointer-events: none;
    top: 0; left: 0;
    background: rgba(150, 150, 150, 0.4);
    border: 2px solid rgba(180, 180, 180, 0.6);
    border-radius: 50%;
}
.app-lib-card.clicked {
    transform: scale(0.96);
    background: rgba(75, 142, 255, 0.1);
}
.app-search-bar {
    height: 44px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--on-surface-variant);
    font-size: 14px;
}
.app-search-bar svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}
.app-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.filter-chip {
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: var(--on-surface-variant);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.filter-chip svg {
    width: 14px;
    height: 14px;
}
.filter-chip.active {
    background: var(--primary);
    color: var(--surface);
}
.app-lib-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-lib-card {
    background: var(--surface-low);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.app-lib-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 142, 255, 0.2);
}
.card-left {
    flex: 1;
}
.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--on-surface);
}
.card-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    opacity: 0.8;
    margin-bottom: 12px;
    padding-left: 20px;
    line-height: 1.4;
}
.card-meta {
    display: flex;
    gap: 16px;
    padding-left: 20px;
}
.meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--on-surface-variant);
    opacity: 0.8;
}
.meta-chip svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}
.card-right {
    margin-left: 12px;
}
.card-right svg {
    width: 24px;
    height: 24px;
    color: var(--on-surface-variant);
    opacity: 0.3;
}

/* Scenarios Cards */
.scenario-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--surface-container);
    border-radius: 24px;
    padding: 32px 48px;
    border: 1px solid rgba(255,255,255,0.02);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.scenario-card:hover {
    transform: translateX(8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    border-color: rgba(173, 198, 255, 0.2);
    border-left-color: var(--primary);
}

.scenario-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-container);
    opacity: 0.4;
    margin-right: 32px;
    min-width: 60px;
}

.scenario-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scenario-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.scenario-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--on-surface-variant);
    max-width: 600px;
}

.mini-formula {
    background-color: var(--surface-low);
    padding: 16px 24px;
    border-radius: 12px;
    margin-left: 48px;
    min-width: 250px;
}

.mini-formula code {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* How It Works Steps */
.how-it-works {
    background-color: var(--surface-low);
    max-width: 100%;
}

.steps-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.step p {
    font-size: 16px;
    line-height: 1.7;
}

.step.divider {
    flex: 0 0 60px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 40px;
}

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

.feature-card {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--surface-low);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(75, 142, 255, 0.15), inset 0 0 0 1px rgba(75, 142, 255, 0.2);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.7;
}

/* Bottom CTA */
.bottom-cta {
    padding: 160px 64px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(75, 142, 255, 0.1) 0%, transparent 60%);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 56px;
    margin-bottom: 24px;
}

.cta-inner p {
    font-size: 20px;
    margin-bottom: 48px;
    color: var(--on-surface-variant);
}

.primary-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--surface);
    font-weight: 700;
    text-decoration: none;
    padding: 20px 48px;
    border-radius: 40px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(173, 198, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(173, 198, 255, 0.6);
    background-color: #fff;
    color: #000;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 64px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 15px;
    color: var(--on-surface-variant);
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-links a {
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--on-surface);
}

.copyright {
    font-size: 14px;
    color: var(--on-surface-variant);
    opacity: 0.5;
    text-align: center;
}

/* Base phone elements mimicking FormulaExecutionPage */
.app-header-real {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 8px 24px;
}
.app-header-real svg { width: 24px; height: 24px; color: var(--on-surface); cursor: pointer; }
.app-header-real svg.fav-icon { color: var(--on-surface-variant); }
.app-header-real svg.fav-icon.active { fill: #E91E63; color: #E91E63; }
.formula-title-real { font-family: var(--font-sans); font-weight: 700; font-size: 18px; color: var(--on-surface); }

.exec-block {
    background-color: var(--surface-container-low);
    border-radius: 16px; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1.5px solid transparent;
}
.exec-block.active {
    border: 1.5px solid rgba(83, 225, 111, 0.5);
    box-shadow: 0 0 16px rgba(83, 225, 111, 0.1);
}
.exec-block-top { display: flex; flex-direction: column; gap: 4px; }
.exec-type { font-size: 10px; font-weight: 700; color: #53E16F; letter-spacing: 1.0px; font-family: var(--font-sans); }
.step-type { color: var(--primary); }
.result-type { color: var(--primary); }
.exec-name { font-size: 14px; font-weight: 600; color: var(--on-surface); }

.exec-val { font-family: var(--font-mono); font-size: 20px; font-weight: 800; color: var(--on-surface); }
.step-val { font-size: 22px; color: var(--primary); }
.result-val { font-size: 32px; color: var(--primary); transition: color 0.3s, text-shadow 0.3s; }
.result-val.highlight { color: #fff; text-shadow: 0 0 20px rgba(75, 142, 255, 0.8); }

.run-scroll-area { flex: 1; overflow-y: auto; padding-bottom: 30px; scrollbar-width: none; -ms-overflow-style: none; }
.run-scroll-area::-webkit-scrollbar { display: none; }

.save-record-btn {
    background-color: var(--surface-container);
    border-radius: 24px; padding: 14px 0;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    color: var(--on-surface); font-weight: 600; font-size: 14px;
    margin-top: 14px;
}
.save-record-btn svg { width: 18px; height: 18px; }

/* Mock List Scroll animation */
.lib-screen-list {
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .scenarios, .how-it-works, .features, .hero { padding: 120px 40px; }
    .hero-title { font-size: 64px; }
    .section-header h2 { font-size: 48px; }
}

@media (max-width: 900px) {
    .reuse-container {
        flex-direction: column-reverse;
        gap: 60px;
    }
    .library-mockup {
        width: 100%;
        max-width: 440px;
    }
    .scenario-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
    }
    
    .scenario-number {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .mini-formula {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 160px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    
    .store-buttons { justify-content: center; }
    
    .phone-mockup { transform: rotateY(0) rotateX(0); animation: none; }
    
    .navbar { padding: 20px 24px; }
    
    .steps-container { flex-direction: column; }
    .step.divider { width: 1px; height: 40px; margin: 20px auto; }
    .step { text-align: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 48px; }
    .section-header h2 { font-size: 36px; }
    .nav-links { display: none; }
    .store-buttons { flex-direction: column; width: 100%; max-width: 320px; }
    .footer-content { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 20px; }
    .scenarios, .how-it-works, .features, .hero { padding: 80px 24px; }
}
