:root {
    /* Friendly Dark Mode - Less "Hacker", More "Product" */
    --bg-main: #0F1115; /* Sligthly warmer/softer black */
    --bg-secondary: #16181D;
    --bg-glass: rgba(22, 24, 29, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-primary: #F0F4F8;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Accents - Orange Primary */
    --accent-primary: #F97316; /* Orange 500 */
    --accent-primary-glow: rgba(249, 115, 22, 0.3);
    
    --accent-secondary: #22C55E; /* Green 500 - Use sparingly */
    --accent-blue: #38BDF8;

    /* Spacing */
    --container-max: 1100px;
    --nav-height: 80px;
    
    /* Effects */
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.3);
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 18px; /* Larger base font for readability */
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Shorter nav */
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.center-nav {
    display: flex;
    justify-content: center !important;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-emoji { font-size: 1.8rem; }

/* Hero Adjustments for Shorter Nav */
/* Hero Adjustments for Full Height */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* Polished Soil Section (Replacing zigzag) */
.planting-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.soil-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #121419; /* Distinct card background */
    border: 1px solid var(--border-glass);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    /* No reverse layout logic needed anymore, consistent left-right */
}

.soil-text {
    order: 1;
}

.soil-code {
    order: 2;
}

.soil-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.soil-block h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
}

.soil-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-window {
    background: #0D1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Animations */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.pill-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.display-title {
    font-size: 4.5rem; /* Larger as requested */
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(120deg, var(--accent-primary) 0%, #FB923C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 540px;
    font-weight: 300;
}

.lead-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.btn.primary:hover {
    background: #EA580C; /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-primary-glow);
}

.btn.secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
}

.btn.secondary:hover {
    background: rgba(255,255,255,0.12);
}

.btn.text {
    background: none;
    color: var(--text-secondary);
    padding: 0;
}

.btn.text:hover {
    color: var(--text-primary);
}

/* Hero Visual */
.hero-visual-col {
    position: relative;
    perspective: 1000px;
}

.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hero-card {
    position: relative;
    box-shadow: var(--shadow-soft);
    transform: rotateY(-5deg);
    transition: transform 0.6s ease;
    border-radius: var(--radius-lg);
}

.hero-card:hover {
    transform: rotateY(0deg);
}

.hero-img {
    width: 100%;
    display: block;
    mix-blend-mode: overlay; /* Softens the image into the background */
    opacity: 0.8;
}

.code-preview {
    background: #0D1117;
    padding: 24px;
    border-top: 1px solid var(--border-glass);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.filename {
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Concept Section */
.section-block {
    padding: 100px 0;
}

.text-center { text-align: center; }
.max-w-700 { max-width: 700px; margin: 0 auto; }

.mb-large { margin-bottom: 80px; }
.mb-huge { margin-bottom: 120px; }

.section-heading {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.comparison-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.compare-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 320px;
    border: 1px solid var(--border-glass);
}

.compare-card h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.compare-card ul {
    list-style: none;
}

.compare-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.compare-card li:last-child { border-bottom: none; }

.compare-card.new {
    border-color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.03);
}

.compare-card.new h3 { color: var(--accent-primary); }
.compare-card.new li strong { color: var(--text-primary); }

.arrow-connector {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Phases Scrolling Narrative */
.phases-container {
    padding-bottom: 0px; 
}

.phase-row {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.icon-stage {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phase-row:last-child {
    border-bottom: none;
}

.phase-content {
    max-width: 800px; /* Constrain reading width */
    width: 100%;
    margin: 0 auto;
}

.glow-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-secondary); /* Green for 'Grow' */
    filter: blur(80px); /* Soft glow behind icon */
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
}

.glow-effect.orange { background: var(--accent-primary); }
.glow-effect.orange-strong { background: var(--accent-primary); opacity: 0.3; }

/* Removed icon-stage, phase-3d-icon, glow-effect */

.phase-label {
    display: inline-block;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.phase-name {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.phase-description {
    font-size: 1.3rem; 
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.feature-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08); /* More subtle border */
    border-radius: 16px;
    padding: 40px;
    text-align: left; /* Keep code/feature details left-aligned for readability */
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-box h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.code-snippet {
    background: #0D1117;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #30363d;
}

/* Infrastructure Grid */
.dark-bg {
    background: #0a0c10;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.infra-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.file-icon {
    font-size: 1.8rem;
    margin-right: 12px;
}

.tag {
    margin-left: auto;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.infra-card h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
}

.infra-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.infra-card ul {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.infra-card li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Centered Hero Fixes */
.center-hero {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead-text.large {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero-actions.center {
    justify-content: center;
}

.btn.large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Prompt Box */
.copy-prompt-btn {
    background: var(--accent-primary);
}

/* Scroll Animations */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Footer Section */
.cta-box {
    padding: 80px 40px;
    margin-bottom: 100px;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.center { justify-content: center; }

.main-footer.centered-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    gap: 12px;
}

.footer-credit {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.text-white { color: #fff; }

.footer-bio {
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.5;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #fb923c;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-layout, .phase-row, .comparison-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions { justify-content: center; }
    .hero-layout { gap: 60px; }
    
    .phase-row { margin-bottom: 100px; gap: 40px; }
    .phase-row.reverse { direction: ltr; }
    .phase-name { justify-content: center; }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .display-title { font-size: 2.8rem; }
}

/* Prompt Box Styles */
.mb-medium {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.prompt-wrapper {
    background: #0D1117;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.prompt-header {
    background: #161B22;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-prompt-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.copy-prompt-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.prompt-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap; /* Preserve newlines */
}
/* Real Life Workflow Timeline */
/* Real Life Workflow Timeline (Centered Redesign) */
.timeline-container {
    position: relative;
    max-width: 700px;
    margin: 80px auto 0;
    text-align: center;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    z-index: 0;
}

.timeline-step {
    position: relative;
    margin-bottom: 80px;
    z-index: 1;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    width: 40px;
    height: 40px;
    background: #0D1117;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 auto 24px; /* Center horizontally */
    box-shadow: 0 0 15px rgba(0,0,0,0.5); /* Pop out from bg */
}

.step-marker.orange {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.step-content {
    background: #0D1117; /* Opaque background to hide line */
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    padding: 30px; /* Restore padding */
    border-radius: 16px;
    transition: transform 0.3s ease;
    position: relative; /* Ensure z-index works */
    z-index: 2; /* Sit ABOVE the timeline line */
    max-width: 600px; /* Constrain width for readability */
    margin: 0 auto; /* Keep centered */
}

.step-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.step-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
    justify-content: center; /* Center the flex items */
    gap: 12px;
}

.step-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

.step-cmd {
    margin-top: 20px;
    display: inline-block;
    background: rgba(255,255,255,0.05); /* Softer background */
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 0;
    }
    .timeline-line {
        display: none; /* Hide line on very small screens if it gets messy */
    }
}
/* Soil Specifications - Academic Layout */
.specs-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.spec-block {
    display: grid;
    /* 2 Columns: Info (Header+Content) | Code */
    grid-template-columns: 1fr 380px; 
    background: #0D1117;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spec-block:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* Info Column Wrapper */
.spec-info-column {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 24px;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: none;
    padding: 0;
    background: transparent;
}

.spec-icon {
    font-size: 2.2rem;
    background: rgba(255,255,255,0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    margin-bottom: 0;
}

.spec-meta h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

/* ... badges ... */

/* Content */
.spec-content {
    padding: 0; /* Remove padding as it is in wrapper */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.spec-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spec-details h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.spec-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.spec-details li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start; /* Fix for multi-line text */
    line-height: normal;
    margin-bottom: 8px;
}

.spec-details li::before {
    content: "•";
    color: var(--accent-primary);
    margin-right: 12px;
    font-size: 1.2rem;
    line-height: 1; 
    flex-shrink: 0;
    margin-top: 3px; 
}

/* Ensure consistent width for the "Label" part of the list item */
.spec-details strong, 
.spec-details code {
    font-weight: 600;
    color: #fff;
    min-width: 140px; /* Force alignment column */
    display: inline-block;
}

.spec-details code {
    color: #E2E8F0;
    background: rgba(255,255,255,0.08); /* Restore code bg */
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-right: 4px; /* Space after code block if followed by text */
}

/* Specific fix for the grid layout to avoid weird wrapping */
.grid-list.two-col li {
    flex-direction: column; /* Stack label and desc in grid view for cleaner look */
    align-items: flex-start;
    gap: 4px;
}

.grid-list.two-col li strong, 
.grid-list.two-col li code {
    min-width: auto; /* Remove fixed width in grid view */
    margin-bottom: 4px;
}

/* Specific adjustment for the Grid List (Agents/Audits) */
.grid-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

/* Code (Right) */
.spec-code {
    background: #0D1117;
    padding: 24px;
    font-size: 0.8rem;
    overflow-x: auto;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border-glass);
}

/* Responsive */
@media (max-width: 960px) { /* Lowered breakpoint */
    .spec-block {
        grid-template-columns: 1fr;
    }
    
    .spec-header {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 16px 24px;
        background: rgba(255,255,255,0.03); /* Slight contrast for header */
    }
    
    .spec-icon { margin-bottom: 0; font-size: 1.8rem; }
    
    .spec-meta h3 { margin-bottom: 4px; }
    
    .spec-content {
        padding: 24px;
    }
    
    .spec-code {
        border-left: none;
        border-top: 1px solid var(--border-glass);
        padding: 20px 24px;
    }
}
/* Tools & Tech Section */
.tools-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-glass);
}

.tools-heading {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tool-card {
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

.tool-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 1.8rem;
}

.tool-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.tool-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.tool-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
}

/* Two Column List Grid for Agents */
.grid-list.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

@media (max-width: 768px) {
    .grid-list.two-col {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        flex-direction: column;
    }
    
    .tool-card {
        width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .spec-block {
        grid-template-columns: 1fr; /* Stack code below info */
    }
    
    .spec-code {
        border-left: none;
        border-top: 1px solid var(--border-glass);
        padding: 24px;
        order: 2; /* Ensure code is visually last if needed */
    }
    
    .spec-info-column {
        padding: 24px;
        order: 1;
    }
}

@media (max-width: 900px) {
    .phase-row { 
        min-height: auto;
        padding: 100px 24px;
    }
    
    .phase-name {
        font-size: 2.8rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .phase-description {
        font-size: 1.1rem;
    }
    
    .spec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .spec-icon {
        margin-bottom: 0;
    }

    /* Stack soil blocks if using old classes anywhere */
    .soil-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 0 16px;
    }
    
    .display-title {
        font-size: 2.5rem; /* Smaller title on mobile */
    }
    
    .grid-list.two-col {
        grid-template-columns: 1fr; /* Stack columns on tiny screens */
    }
    
    .spec-block {
        border-radius: 8px;
    }
}

/* Mobile Full Width Fix */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent code blocks from causing horizontal overflow */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

.code-snippet pre {
    max-width: 100%;
}

/* Ensure prompt box doesn't overflow */
.prompt-content {
    word-break: break-word;
}

@media (max-width: 768px) {
    /* Force spec-block to stack */
    .spec-block {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce container padding on mobile */
    .container {
        padding: 0 16px;
    }
    
    /* Smaller feature box on mobile */
    .feature-box {
        padding: 24px;
        max-width: 100%;
    }
    
    /* Full width code snippets */
    .code-snippet {
        margin: 0 -16px;
        border-radius: 0;
    }
}

/* Phase Cards Mobile Fix */
@media (max-width: 480px) {
    .phase-row {
        padding: 60px 16px;
        min-height: auto;
    }
    
    .phase-name {
        font-size: 2rem;
    }
    
    .phase-description {
        font-size: 1rem;
    }
    
    .feature-box {
        padding: 20px;
        border-radius: 12px;
    }
    
    .feature-box h4 {
        font-size: 1rem;
    }
    
    .feature-box p {
        font-size: 0.9rem;
    }
    
    .code-snippet {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .code-snippet pre {
        font-size: 0.75rem;
    }
    
    /* Smaller hero title */
    .display-title {
        font-size: 2rem;
    }
    
    /* Reduce spec-block padding */
    .spec-info-column {
        padding: 20px;
        gap: 16px;
    }
    
    .spec-desc {
        font-size: 0.9rem;
    }
    
    .spec-details li {
        font-size: 0.85rem;
    }
    
    .spec-code {
        padding: 16px;
    }
    
    .spec-code pre {
        font-size: 0.75rem;
    }
}

/* Scrollable Prompt Box */
.prompt-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Simplified Spec List */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-list li {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.spec-list.compact li {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.spec-list code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}
