/* ============================================
   FOLDER X — Custom Marketing Site
   Unique visual language, NOT a Monolog clone
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Teal palette from brand */
    --teal-900: #0d9488;
    --teal-500: #14b8a6;
    --teal-300: #2dd4bf;
    --teal-100: #5eead4;
    
    /* Neutrals */
    --charcoal: #1a1a1a;
    --gray-900: #2a2a2a;
    --gray-700: #4a4a4a;
    --gray-500: #6a6a6a;
    --gray-300: #9a9a9a;
    --gray-100: #e5e5e5;
    --white: #ffffff;
    
    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 32px rgba(20, 184, 166, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 0;
    transition: transform 0.3s ease;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-x {
    color: var(--teal-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-500);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal-500);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    background: var(--teal-500);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, #f8fffe 0%, #ecfdf9 50%, #f0fdfa 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-900);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-500) 50%, var(--teal-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--teal-500);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover {
    background: var(--teal-900);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--teal-900);
    border: 2px solid var(--teal-500);
}

.btn-secondary:hover {
    background: var(--teal-500);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-lg small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.hero-meta {
    font-size: 0.9375rem;
    color: var(--gray-500);
    display: flex;
    gap: 1.5rem;
}

/* === FLOATING FOLDERS ANIMATION === */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-folders {
    position: relative;
    width: 100%;
    height: 100%;
}

.folder {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.folder svg {
    width: 160px;
    height: auto;
}

.folder-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.folder-2 {
    top: 50%;
    right: 10%;
    animation-delay: 0.8s;
}

.folder-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 1.6s;
}

.folder-4 {
    top: 30%;
    right: 30%;
    animation-delay: 2.4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--teal-900);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* === FEATURES SECTION === */
.features {
    padding: var(--space-2xl) 0;
    background: white;
}

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

.feature-card {
    padding: 2.5rem;
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--teal-500);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--gray-700);
    line-height: 1.7;
}

/* === TEMPLATES SECTION === */
.templates {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, white 0%, #f8fffe 100%);
}

.templates-header {
    margin-bottom: var(--space-lg);
}

.templates-intro {
    max-width: 600px;
    color: var(--gray-700);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.templates-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.template-preview {
    position: sticky;
    top: 120px;
    padding: 3rem;
    background: var(--charcoal);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.template-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.template-badge.academic {
    background: rgba(20, 184, 166, 0.2);
    color: var(--teal-300);
    border: 1px solid var(--teal-300);
}

.template-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
}

.tree-item {
    color: var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.tree-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tree-icon {
    font-size: 1rem;
}

.tree-sub {
    padding-left: 2rem;
}

.tree-sub2 {
    padding-left: 4rem;
}

.tree-sub3 {
    padding-left: 6rem;
}

.template-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.template-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--teal-500);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.template-card-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.template-card-badge.design {
    background: rgba(147, 51, 234, 0.1);
    color: #7c3aed;
}

.template-card-badge.dev {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.template-card-badge.office {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.template-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.template-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.template-card small {
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* === GALLERY SECTION === */
.gallery {
    padding: var(--space-2xl) 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* === DOWNLOAD SECTION === */
.download {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, #0f766e 100%);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.download-box {
    position: relative;
    z-index: 2;
}

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

.download-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--teal-100);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.download-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-buttons .btn-primary {
    background: var(--teal-500);
}

.download-buttons .btn-primary:hover {
    background: var(--teal-300);
}

.download-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.download-buttons .btn-secondary:hover {
    background: white;
    color: var(--teal-900);
}

.download-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* === FOOTER === */
.footer {
    padding: 4rem 0 2rem;
    background: var(--charcoal);
    color: var(--gray-300);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-icon path {
    fill: var(--teal-500);
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--teal-300);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal,
.reveal-left,
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-up.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .templates-showcase {
        grid-template-columns: 1fr;
    }
    
    .template-preview {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
