/* ===========================================
   lrx.sh — Terminal meets Pastoral
   =========================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #0A1018;
    color: #C0C8D0;
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(106, 204, 138, 0.25);
    color: #E8D8C0;
}

/* --- Scanline Overlay --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
}

/* --- Terminal Column --- */
.terminal-column {
    max-width: 70ch;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Prompt Styles --- */
.prompt {
    color: #6ACC8A;
    font-weight: 700;
    margin-right: 0.5ch;
}

.command-text {
    color: #C0C8D0;
    font-weight: 400;
}

/* --- Phosphor Glow --- */
.hl-green,
.prompt {
    text-shadow: 0 0 6px rgba(106, 204, 138, 0.3);
}

/* ===========================================
   HERO
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.typing-line {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.typed-command {
    color: #C0C8D0;
    font-weight: 500;
    white-space: pre;
}

.cursor {
    color: #6ACC8A;
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

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

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #E8D8C0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-bottom: 1.5rem;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #8A9AAA;
    font-size: clamp(0.85rem, 1vw, 1rem);
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.hero-subtitle.visible {
    opacity: 1;
}

/* --- Vine Dividers --- */
.vine-divider {
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.vine-divider.visible {
    opacity: 1;
}

.vine-svg {
    width: 100%;
    max-width: 400px;
    height: 40px;
    overflow: visible;
}

.vine-svg-sm {
    width: 100%;
    max-width: 200px;
    height: 24px;
    overflow: visible;
}

.vine-svg-footer {
    width: 100%;
    max-width: 300px;
    height: 30px;
    overflow: visible;
}

.vine-divider-small {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.vine-divider-footer {
    margin: 1rem 0;
}

.vine-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s ease;
}

.vine-divider.visible .vine-path {
    stroke-dashoffset: 0;
}

.leaf {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vine-divider.visible .leaf {
    opacity: 1;
}

.vine-divider.visible .leaf:nth-child(2) { transition-delay: 1.2s; }
.vine-divider.visible .leaf:nth-child(3) { transition-delay: 1.5s; }
.vine-divider.visible .leaf:nth-child(4) { transition-delay: 1.8s; }
.vine-divider.visible .leaf:nth-child(5) { transition-delay: 2.1s; }
.vine-divider.visible .leaf:nth-child(6) { transition-delay: 2.4s; }

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.command-prompt {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Section Headings (Caveat) --- */
.section-heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #E8D8C0;
    margin-bottom: 2rem;
}

.section-description {
    font-family: 'Inter', sans-serif;
    color: #8A9AAA;
    margin-bottom: 2rem;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

/* ===========================================
   OUTPUT BLOCKS
   =========================================== */
.output-block {
    background: rgba(10, 16, 24, 0.8);
    border: 1px solid #8AA0B8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(138, 160, 184, 0.1);
    border-bottom: 1px solid rgba(138, 160, 184, 0.3);
}

.output-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #8A9AAA;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #8A9AAA;
    background: transparent;
    border: 1px solid rgba(138, 160, 184, 0.4);
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
    color: #E8D8C0;
    border-color: #E8D8C0;
}

.copy-btn.copied {
    color: #6ACC8A;
    border-color: #6ACC8A;
}

.output-content {
    padding: 1rem;
}

.line {
    display: flex;
    align-items: baseline;
    min-height: 1.7em;
}

.line-num {
    display: inline-block;
    width: 3ch;
    text-align: right;
    margin-right: 1.5ch;
    color: rgba(138, 154, 170, 0.4);
    user-select: none;
    flex-shrink: 0;
}

/* --- Syntax Highlight Colors --- */
.hl-green {
    color: #6ACC8A;
}

.hl-amber {
    color: #D8A850;
}

.hl-coral {
    color: #D87070;
}

.hl-grey {
    color: #8A9AAA;
}

/* ===========================================
   FEATURE CARDS (Scale-Hover)
   =========================================== */
.feature-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
    border-radius: 6px;
}

.feature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===========================================
   ISOMETRIC 3D CUBES
   =========================================== */
.isometric-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    perspective: 800px;
}

.iso-scene {
    position: relative;
    width: 350px;
    height: 280px;
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(-45deg);
}

.iso-cube {
    position: absolute;
    width: 70px;
    height: 70px;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.iso-cube:hover {
    transform: translateZ(20px);
}

.iso-face {
    position: absolute;
    width: 70px;
    height: 70px;
    backface-visibility: hidden;
}

.iso-top {
    transform: translateZ(70px);
}

.iso-right {
    transform: rotateX(-90deg);
    transform-origin: bottom;
}

.iso-left {
    transform: rotateY(90deg);
    transform-origin: left;
}

/* Cube Positions */
.cube-1 {
    left: 0;
    top: 80px;
}

.cube-2 {
    left: 90px;
    top: 80px;
}

.cube-3 {
    left: 180px;
    top: 80px;
}

.cube-4 {
    left: 45px;
    top: 0;
}

.cube-5 {
    left: 135px;
    top: 0;
}

/* Cube Colors — palette values with transparency */
.cube-1 .iso-top { background: rgba(106, 204, 138, 0.7); }
.cube-1 .iso-right { background: rgba(106, 204, 138, 0.4); }
.cube-1 .iso-left { background: rgba(106, 204, 138, 0.55); }

.cube-2 .iso-top { background: rgba(138, 160, 184, 0.7); }
.cube-2 .iso-right { background: rgba(138, 160, 184, 0.4); }
.cube-2 .iso-left { background: rgba(138, 160, 184, 0.55); }

.cube-3 .iso-top { background: rgba(216, 168, 80, 0.7); }
.cube-3 .iso-right { background: rgba(216, 168, 80, 0.4); }
.cube-3 .iso-left { background: rgba(216, 168, 80, 0.55); }

.cube-4 .iso-top { background: rgba(232, 216, 192, 0.7); }
.cube-4 .iso-right { background: rgba(232, 216, 192, 0.4); }
.cube-4 .iso-left { background: rgba(232, 216, 192, 0.55); }

.cube-5 .iso-top { background: rgba(216, 112, 112, 0.7); }
.cube-5 .iso-right { background: rgba(216, 112, 112, 0.4); }
.cube-5 .iso-left { background: rgba(216, 112, 112, 0.55); }

.cube-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) translateZ(71px);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0A1018;
    text-align: center;
    pointer-events: none;
}

/* ===========================================
   WORKFLOW STEPS
   =========================================== */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.workflow-step {
    border-left: 2px solid #8AA0B8;
    padding-left: 1.5rem;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.workflow-step:hover {
    transform: scale(1.02);
}

.step-prompt {
    margin-bottom: 0.5rem;
}

.step-num {
    color: #D8A850;
    font-weight: 700;
}

.step-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #E8D8C0;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: #8A9AAA;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.6;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(138, 160, 184, 0.2);
}

.footer-prompt {
    margin-bottom: 1rem;
}

.footer-version {
    color: #6ACC8A;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #E8D8C0;
    margin-bottom: 0.5rem;
}

.footer-meta {
    font-family: 'Inter', sans-serif;
    color: #8A9AAA;
    font-size: 0.85rem;
}

/* ===========================================
   SCROLL REVEAL ANIMATION
   =========================================== */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .terminal-column {
        padding: 0 1rem;
    }

    .iso-scene {
        transform: rotateX(55deg) rotateZ(-45deg) scale(0.7);
    }

    .isometric-container {
        padding: 2rem 0;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .iso-scene {
        transform: rotateX(55deg) rotateZ(-45deg) scale(0.5);
    }

    .output-content {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .line-num {
        width: 2ch;
        margin-right: 1ch;
    }
}
