/* CORROGO Landing Page — corrogo.com */

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

:root {
    --bg:           #0a0a0f;
    --bg-card:      #12121a;
    --bg-dark:      #08080d;
    --border:       #1e1e2e;
    --text:         #e0e0e8;
    --text-dim:     #8585a0;
    --accent:       #4ade80;
    --accent-dim:   #22543d;
    --accent-light: #6ee7b7;
    --danger:       #f87171;
    --cyan:         #22d3ee;
    --radius:       8px;
    --radius-lg:    16px;
    --font:         "SF Mono", "Fira Code", "JetBrains Mono", "Cascadia Code", monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 60px;
    font-size: 1rem;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
}
.nav-cta:hover {
    background: var(--accent-light);
    color: var(--bg) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-wide {
    display: block;
}
.hero-bg-square {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 700px;
}

.hero-symbol {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 24px rgba(74, 222, 128, 0.15));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
    line-height: 1;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-sub {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== Download ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.download-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
}

.download-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--accent);
}
.download-icon svg {
    width: 100%;
    height: 100%;
}

.download-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.download-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-card .btn {
    width: 100%;
}

/* ===== Install Guide ===== */
.install-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.install-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.install-step strong {
    display: block;
    margin-bottom: 2px;
}

.install-step p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.key-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    vertical-align: middle;
}

/* ===== How It Works ===== */
.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    flex: 1;
    max-width: 260px;
    transition: border-color 0.3s;
}
.step-card:hover {
    border-color: var(--accent-dim);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 12px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.7;
}

.step-connector {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: var(--border);
    margin-top: 60px;
}

/* ===== CTA ===== */
.section-cta {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
    padding: 120px 0;
}

.cta-content {
    text-align: center;
}

.cta-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 auto 32px;
    font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--text);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.download-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.download-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.steps-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.steps-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.steps-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.steps-grid .reveal:nth-child(7) { transition-delay: 0.48s; }

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    .steps-grid {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: none;
        flex-basis: calc(50% - 8px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }

    /* Nav mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .nav-toggle {
        display: flex;
    }

    /* Hero mobile */
    .hero-bg-wide {
        display: none;
    }
    .hero-bg-square {
        display: block;
    }

    .hero-symbol {
        width: 80px;
        height: 80px;
    }

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

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    /* Stats mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Download mobile */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Install mobile */
    .install-grid {
        grid-template-columns: 1fr;
    }

    /* Steps mobile */
    .step-card {
        flex-basis: 100%;
    }

    /* CTA mobile */
    .section-cta {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    /* Footer mobile */
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Small phone */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
