/* ================================================================
   COMPONENTS
   ================================================================ */


/* ── Navbar ─────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 213, 225, .4);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Language Switcher ──────────────────────────────────────── */

.lang-switcher {
    background: transparent;
    border: 1px solid var(--ink-200);
    color: var(--ink-500);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--sans);
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all var(--ease);
    line-height: 1;
    height: 30px;
}

.lang-switcher:hover {
    color: var(--ink-900);
    border-color: var(--ink-400);
    background: rgba(15, 23, 42, .04);
}

.header-logo {
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-900);
    text-decoration: none;
    letter-spacing: -0.2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    color: var(--ink-500);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    transition: all var(--ease);
}

.site-nav a:hover {
    color: var(--ink-900);
    background: rgba(15, 23, 42, .05);
}


/* ── Team Badge ─────────────────────────────────────────────── */

.team-badge {
    gap: 0.5rem;
    background: rgba(15, 23, 42, .05);
    backdrop-filter: blur(2px);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.2px;
    border: 0.5px solid rgba(0, 0, 0, .05);
    margin-bottom: 2rem;
}

.oxygen-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}


/* ── Hero — Layout ──────────────────────────────────────────── */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    min-height: 520px;
}


/* ── Hero — Brand (left) ────────────────────────────────────── */

.hero-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
}

.product-badge {
    gap: 0.4rem;
    background: rgba(0, 0, 0, .04);
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-800);
    border: 0.5px solid var(--ink-200);
    width: fit-content;
}

h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.brand-tagline {
    font-size: 1.15rem;
    color: var(--ink-500);
    line-height: 1.65;
    max-width: 420px;
    border-left: 3px solid var(--sky);
    padding-left: 1rem;
}

.brand-tagline strong {
    color: var(--ink-900);
    font-weight: 600;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.4rem;
}

.btn-outline {
    background: transparent;
    color: var(--ink-800);
    padding: 0.75rem 1.7rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--ink-200);
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, .04);
    border-color: var(--ink-300);
}


/* ── Hero — Code Editor (right) ─────────────────────────────── */

.hero-editor {
    background: #0d1117;
    border-radius: 1.4rem;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(255, 255, 255, .06);
}

.editor-titlebar {
    background: #161b22;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

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

.editor-dot.red {
    background: #ff5f57;
}

.editor-dot.yellow {
    background: #febc2e;
}

.editor-dot.green {
    background: #28c840;
}

.editor-filename {
    margin-left: 0.6rem;
    font-size: 0.72rem;
    color: #8b949e;
}

.editor-body {
    padding: 1.2rem 1.4rem;
    overflow-x: auto;
}

.editor-body pre {
    margin: 0;
    white-space: pre;
    color: #c9d1d9;
}

.editor-lines {
    display: flex;
    gap: 1.2rem;
}

.line-nums {
    color: #3d444d;
    text-align: right;
    user-select: none;
    min-width: 1.4rem;
    flex-shrink: 0;
    counter-reset: ln;
}

.line-nums span {
    display: block;
    counter-increment: ln;
}

.line-nums span::before {
    content: counter(ln);
}

.code-content {
    flex: 1;
    overflow-x: auto;
}

/* Syntax tokens */
.t-comment {
    color: #6e7681;
    font-style: italic;
}

.t-keyword {
    color: #ff7b72;
}

.t-fn {
    color: #d2a8ff;
}

.t-string {
    color: #a5d6ff;
}

.t-var {
    color: #ffa657;
}

.t-num {
    color: #79c0ff;
}

.t-punct {
    color: #8b949e;
}

.t-tag {
    color: #7ee787;
}

.t-attr {
    color: #ffa657;
}

.t-val {
    color: #a5d6ff;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #58a6ff;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


/* ── Why Oxygen ─────────────────────────────────────────────── */

.why-oxygen {
    margin: 5rem 0 4rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.why-card {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(6px);
    border-radius: 1.2rem;
    padding: 1.4rem;
    border: 1px solid rgba(203, 213, 225, .5);
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--sky), #818cf8);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.why-card:hover {
    background: #fff;
    border-color: var(--ink-200);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover .why-card-icon {
    background: #e0f2fe;
}

.why-card-icon {
    width: 36px;
    height: 36px;
    background: var(--ink-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    transition: background 0.22s;
}

.why-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.why-card p {
    font-size: 0.8rem;
    color: var(--ink-500);
    line-height: 1.55;
}


/* ── Products ───────────────────────────────────────────────── */

.products-section {
    margin: 5rem 0 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(203, 213, 225, .5);
    display: flex;
    gap: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: #fff;
    border-color: var(--ink-200);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.product-card.coming-soon {
    overflow: hidden;
}

.product-card.coming-soon .product-icon,
.product-card.coming-soon .product-content {
    filter: blur(5px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.coming-soon-badge {
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ink-900), var(--ink-800));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .2);
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.product-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-400);
    margin: 0;
}

.product-description {
    font-size: 0.9rem;
    color: var(--ink-500);
    line-height: 1.65;
    margin: 0.4rem 0 1rem;
}

.product-link {
    gap: 0.4rem;
    background: var(--ink-900);
    color: #fff;
    padding: 0.65rem 1.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
    transition: all var(--ease);
}

.product-link:hover {
    background: var(--ink-800);
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .25);
}


/* ── Footer ─────────────────────────────────────────────────── */

footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #dee4ed;
    font-size: 0.8rem;
    color: var(--ink-500);
}

footer p+p {
    margin-top: 0.5rem;
}