/* rational.business - Styles */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Mono (monospace for all text), Inter (secondary) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: #f5f0e8;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== SCROLL REVEAL ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-card,
.tutorial-step,
.quiz-card,
.contact-content,
.contact-iso {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.process-card.visible,
.tutorial-step.visible,
.quiz-card.visible,
.contact-content.visible,
.contact-iso.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-card:nth-child(2).visible { transition-delay: 0.1s; }
.process-card:nth-child(3).visible { transition-delay: 0.2s; }
.process-card:nth-child(4).visible { transition-delay: 0.3s; }

.tutorial-step:nth-child(2).visible { transition-delay: 0.15s; }
.tutorial-step:nth-child(3).visible { transition-delay: 0.3s; }

/* ===== FLOATING LABEL PULSE ===== */
@keyframes labelPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.floating-label {
    animation: labelPulse 3s ease-in-out infinite;
}

.floating-label.label-2 { animation-delay: 1s; }
.floating-label.label-3 { animation-delay: 2s; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    font-size: 1.25rem;
    color: #e8b84b;
}

.nav-logo-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #f5f0e8;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #f5f0e8;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    opacity: 1;
    color: #e8b84b;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 6rem 4rem 4rem;
    background-color: #1a1a2e;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: #e8b84b;
    opacity: 0.12;
    top: -100px;
    left: -100px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: #4a90d9;
    opacity: 0.08;
    bottom: -50px;
    right: -50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: #f5f0e8;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a2e;
    background-color: #e8b84b;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
    background-color: #d4a63e;
    transform: translateY(-2px);
}

.hero-isometric {
    position: relative;
    z-index: 2;
    width: 500px;
    flex-shrink: 0;
}

.iso-diagram {
    width: 100%;
    height: auto;
}

.iso-cube {
    transition: transform 0.3s ease;
}

.iso-line {
    animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
    to { stroke-dashoffset: -16; }
}

/* ===== SECTION COMMON ===== */
.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #6c757d;
    max-width: 550px;
    line-height: 1.7;
}

/* ===== BLOB BACKGROUNDS ===== */
.section-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.process-blob {
    width: 600px;
    height: 600px;
    background: #e8b84b;
    opacity: 0.06;
    top: -200px;
    right: -200px;
}

.systems-blob {
    width: 500px;
    height: 500px;
    background: #4a90d9;
    opacity: 0.06;
    bottom: -150px;
    left: -150px;
}

/* ===== PROCESS SECTION ===== */
.process {
    position: relative;
    padding: 6rem 4rem;
    overflow: hidden;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header .section-desc {
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-card {
    position: relative;
    background: white;
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.process-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

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

.process-card-step {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #e8b84b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.process-card-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.process-card-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.7;
}

/* ===== TUTORIAL SECTION ===== */
.tutorial {
    position: relative;
    padding: 6rem 4rem;
    background-color: #1a1a2e;
}

.tutorial .section-title {
    color: #f5f0e8;
}

.tutorial .section-desc {
    color: #6c757d;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tutorial-header .section-desc {
    margin: 0 auto;
}

.tutorial-steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.tutorial-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8b84b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-step-number span {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.tutorial-step-content {
    flex: 1;
}

.tutorial-step-iso {
    width: 120px;
    height: 90px;
    margin-bottom: 1rem;
}

.tutorial-step-iso svg {
    width: 100%;
    height: 100%;
}

.tutorial-step-content h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 0.5rem;
}

.tutorial-step-content p {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tutorial-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 184, 75, 0.1);
    border-left: 3px solid #e8b84b;
    padding: 0.5rem 1rem;
    border-radius: 0 4px 4px 0;
}

.callout-arrow {
    color: #e8b84b;
    font-size: 0.7rem;
}

.tutorial-callout span:last-child {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #e8b84b;
}

/* ===== SYSTEMS / QUIZ SECTION ===== */
.systems {
    position: relative;
    padding: 6rem 4rem;
    overflow: hidden;
}

.systems-header {
    text-align: center;
    margin-bottom: 4rem;
}

.systems-header .section-desc {
    margin: 0 auto;
}

.systems-quiz {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quiz-card {
    background: white;
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 8px;
    padding: 2rem;
}

.quiz-question {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #1a1a2e;
    background: #f5f0e8;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.quiz-option:hover {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.05);
}

.quiz-option.selected.correct {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
}

.quiz-option.selected.incorrect {
    border-color: #c0392b;
    background: rgba(192, 57, 43, 0.05);
    color: #c0392b;
}

.quiz-option:disabled {
    cursor: default;
    opacity: 0.5;
}

.quiz-option.selected:disabled {
    opacity: 1;
}

.quiz-feedback {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.quiz-feedback.show {
    max-height: 60px;
    padding-top: 0.75rem;
}

.quiz-feedback.correct {
    color: #4a90d9;
}

.quiz-feedback.incorrect {
    color: #c0392b;
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
    padding: 6rem 4rem;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.contact .section-title {
    color: #f5f0e8;
}

.contact .section-desc {
    color: #6c757d;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 450px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form.submitted .form-group,
.contact-form.submitted .form-submit {
    opacity: 0.3;
    pointer-events: none;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #f5f0e8;
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(245, 240, 232, 0.3);
}

.form-input:focus {
    border-color: #4a90d9;
}

.form-error {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #c0392b;
    margin-top: 0.3rem;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error .form-input {
    border-color: #c0392b;
}

.form-submit {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a2e;
    background: #e8b84b;
    border: none;
    border-radius: 4px;
    padding: 0.9rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    background-color: #d4a63e;
    transform: translateY(-2px);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #4a90d9;
    padding: 1rem 0;
}

.form-success.show {
    display: flex;
}

.success-icon {
    font-size: 1.5rem;
    color: #e8b84b;
}

.contact-iso {
    width: 300px;
    flex-shrink: 0;
}

.contact-iso svg {
    width: 100%;
    height: auto;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 4rem;
    background-color: #1a1a2e;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f5f0e8;
}

.footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #6c757d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 8rem 2rem 4rem;
        gap: 2rem;
    }

    .hero-isometric {
        width: 100%;
        max-width: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .process {
        padding: 4rem 2rem;
    }

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

    .tutorial {
        padding: 4rem 2rem;
    }

    .systems {
        padding: 4rem 2rem;
    }

    .contact {
        flex-direction: column;
        padding: 4rem 2rem;
    }

    .contact-iso {
        width: 100%;
        max-width: 250px;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .tutorial-step {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
