/* ============================================================
   COBRA APPS
   Website v1.0 — Dark Technical Theme
   ============================================================ */

:root {
    --background: #101820;
    --background-alt: #15212b;
    --surface: #1b2933;
    --surface-hover: #223540;
    --accent: #41c98b;
    --accent-hover: #65e3a7;
    --text: #f3f6f8;
    --text-muted: #aebdc7;
    --border: #30414b;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

/* ============================================================
   HEADER AND NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 24, 32, 0.97);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand strong {
    color: var(--accent);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #193b32;
    color: var(--accent);
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: bold;
}

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

.navigation a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navigation a:hover,
.navigation a:focus-visible {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.4rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 115px 0 125px;
    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(65, 201, 139, 0.10),
            transparent 45%
        ),
        var(--background);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 20px 0 22px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 690px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    color: #101820;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 45px;
}

.technology-tags span {
    padding: 6px 13px;
    background: #1b2c34;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--background-alt);
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2,
.about-content h2 {
    margin: 13px 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.25;
}

.section-heading p,
.about-content p {
    max-width: 740px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    min-height: 285px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(65, 201, 139, 0.55);
    transform: translateY(-4px);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-bottom: 23px;
    background: #193b32;
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.7rem;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.card-status {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-content {
    max-width: 850px;
}

.about-content p {
    line-height: 1.9;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: 30px 0;
    background: #0c1319;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   TABLETS
   ============================================================ */

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding: 90px 0;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 650px) {
    .header-inner {
        min-height: 70px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 18px;
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        padding: 75px 0 85px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 70px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        padding: 26px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
