/* Custom styles for TreeSize Public Landing Page */
:root {
    --bg-color: #08090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Harmonized File Category Colors */
    --color-directory: #5a738c;
    --color-image: #f23373;
    --color-media: #994df2;
    --color-code: #0dbff2;
    --color-document: #1acc73;
    --color-archive: #f2801a;
    --color-system: #3373f2;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Glowing Background Orbs */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(30px, -30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1.1); }
}
 
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0dbff2 0%, #994df2 100%);
    top: -200px;
    right: -100px;
    animation: floatGlow1 16s ease-in-out infinite;
}
 
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #994df2 0%, #f23373 100%);
    top: 300px;
    left: -150px;
    animation: floatGlow2 20s ease-in-out infinite alternate;
}

/* Header */
header {
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 11, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

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

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #0dbff2, #994df2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.github-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(13, 191, 242, 0.12);
    color: #0dbff2;
    border: 1px solid rgba(13, 191, 242, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #0dbff2 0%, #994df2 50%, #f23373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #3373f2 0%, #0dbff2 100%);
    color: white;
    padding: 12px 28px;
    box-shadow: 0 10px 30px rgba(51, 115, 242, 0.22);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
 
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(51, 115, 242, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-title {
    font-size: 15px;
    font-weight: 700;
}

.btn-subtitle {
    font-size: 10px;
    opacity: 0.8;
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 16px 24px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.separator {
    opacity: 0.3;
}

/* App Window Mockup */
.hero-preview {
    perspective: 1000px;
}

.app-window {
    background: #0d0e12;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

.app-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.window-titlebar {
    background: #14161d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-lights {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.light.red { background-color: #ff5f56; }
.light.yellow { background-color: #ffbd2e; }
.light.green { background-color: #27c93f; }

.window-path {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.app-layout-mock {
    display: grid;
    grid-template-columns: 1fr 200px;
    height: 280px;
}

.treemap-mock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    padding: 16px;
    background-color: #08090b;
}

@keyframes scaleInMockTile {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tile-mock {
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    border: 0.5px solid rgba(0,0,0,0.15);
    animation: scaleInMockTile 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.tile-mock:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
}

.tile-mock.media { animation-delay: 0.1s; }
.tile-mock.code { animation-delay: 0.2s; }
.tile-mock.image { animation-delay: 0.3s; }
.tile-mock.system { animation-delay: 0.4s; }

.tile-mock.media {
    background: linear-gradient(135deg, var(--color-media) 0%, rgba(153, 77, 242, 0.8) 100%);
}

.tile-mock.code {
    background: linear-gradient(135deg, var(--color-code) 0%, rgba(13, 191, 242, 0.8) 100%);
}

.tile-mock.image {
    background: linear-gradient(135deg, var(--color-image) 0%, rgba(242, 51, 115, 0.8) 100%);
}

.tile-mock.system {
    background: linear-gradient(135deg, var(--color-system) 0%, rgba(51, 115, 242, 0.8) 100%);
}

.tile-mock span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.tile-mock .size {
    font-weight: 300;
    opacity: 0.8;
}

.sidebar-mock {
    background: rgba(20, 22, 29, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-code), var(--color-media));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-mock h3 {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.category-badge {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.sidebar-info {
    width: 100%;
    margin-top: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
}

.info-row span {
    color: var(--text-muted);
}

.sidebar-actions {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-btn {
    border: none;
    border-radius: 4px;
    padding: 6px;
    font-size: 10px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
}

.action-btn.open {
    background-color: #3373f2;
    color: white;
}

.action-btn.reveal {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 24px;
    text-align: center;
}

.features-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
}

/* CLI Section */
.cli-section {
    background: radial-gradient(50% 50% at 50% 50%, rgba(153, 77, 242, 0.05) 0%, rgba(0,0,0,0) 100%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 100px 0;
}

.cli-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.cli-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cli-text p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 30px;
}

.terminal-box {
    background: #050507;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: monospace;
    font-size: 14px;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.terminal-box .prompt { color: #f23373; font-weight: 700; }
.terminal-box .command { color: #0dbff2; }
.terminal-box .argument { color: #1acc73; }

.cli-note {
    font-size: 13px;
    color: var(--text-muted);
}

.cli-code-preview {
    background: #0a0b0d;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.cli-code-preview pre {
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.cli-code-preview .comment { color: var(--text-muted); }

/* Finder Integration Section */
.finder-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 24px;
}

.finder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.finder-image {
    perspective: 1000px;
}

.finder-mock-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.finder-mock-img:hover {
    transform: scale(1.02) rotateY(-2deg);
}

.finder-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.finder-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.finder-text p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 24px;
}

.finder-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.finder-features-list li {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    font-weight: 300;
    line-height: 1.6;
}

.finder-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1acc73;
    font-weight: 800;
    font-size: 16px;
}

.finder-features-list em {
    color: var(--text-primary);
    font-style: normal;
}

.finder-features-list strong {
    color: #0dbff2;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #060708;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .hero, .cli-container, .finder-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 38px;
    }
    .finder-text h2 {
        font-size: 28px;
    }
}
