﻿/* Shared base styles for all marketing pages.
   Page-specific layout stays in each page stylesheet. */

:root {
    --font-display: "Outfit", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --edge-gap: 24px;
    --bg: #0f172a;
    --bg-soft: #111827;
    --paper: #1e293b;
    --ink: #f8fafc;
    --ink-muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #0078ff;
    --brand-2: #38bdf8;
    --shadow: 0 24px 55px rgba(2, 6, 23, 0.45);
}

body[data-theme="light"] {
    --bg: #f8fafc;
    --bg-soft: #e2e8f0;
    --paper: #ffffff;
    --ink: #0f172a;
    --ink-muted: #475569;
    --line: rgba(71, 85, 105, 0.22);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 120, 255, 0.24), transparent 38%),
        radial-gradient(circle at 85% 5%, rgba(56, 189, 248, 0.22), transparent 28%),
        linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
    line-height: 1.5;

    /* Keep parallax-like background fixed even when
       page-level background shorthands are applied later. */
    background-attachment: fixed, fixed, fixed !important;
}

.noise::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(rgba(148, 163, 184, 0.4) 0.6px, transparent 0.6px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    z-index: -1;
}

.theme-glow {
    position: fixed;
    inset: -28% -12% auto;
    height: 68vh;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 120, 255, 0.32), transparent 42%),
        radial-gradient(circle at 80% 14%, rgba(56, 189, 248, 0.28), transparent 40%);
    filter: blur(34px);
    opacity: 0.9;
}

body[data-theme="light"] .theme-glow {
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 120, 255, 0.2), transparent 42%),
        radial-gradient(circle at 80% 14%, rgba(34, 197, 94, 0.18), transparent 40%);
    opacity: 0.62;
}

body.theme-switching,
body.theme-switching * {
    transition:
        background 0.28s ease,
        background-color 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

main {
    flex: 1 0 auto;
}

.wrap {
    width: min(var(--max), 94vw);
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    width: min(var(--max), 94vw);
    margin: auto auto var(--edge-gap);
    text-align: center;
    padding: 24px 16px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
}

body[data-theme="light"] .site-footer {
    background: rgba(255, 255, 255, 0.82);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-link {
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.8rem;
    background: rgba(30, 41, 59, 0.58);
}

.footer-link:hover {
    text-decoration: none;
    filter: brightness(1.12);
}

body[data-theme="light"] .footer-link {
    background: rgba(255, 255, 255, 0.9);
}

.footer-copy {
    color: var(--ink);
    font-size: 0.85rem;
}

.footer-company-link {
    color: var(--brand-2);
    text-decoration: none;
    font-weight: 600;
}

.footer-company-link:hover {
    text-decoration: underline;
}

/* Language selector */
.lang-select {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.72);
    color: var(--ink);
    padding: 0 10px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
}

body[data-theme="light"] .lang-select {
    background: rgba(255, 255, 255, 0.8);
}

/* Theme icon */
.theme-icon {
    width: 20px;
    height: 20px;
    display: block;
    overflow: visible;
}

.theme-icon .sun-core {
    transform-origin: 12px 12px;
    fill: #f59e0b;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        fill 0.28s ease;
}

.theme-icon .sun-rays {
    stroke: #fbbf24;
    stroke-width: 1.8;
    stroke-linecap: round;
    transform-origin: 12px 12px;
    transition:
        transform 0.34s ease,
        opacity 0.28s ease,
        stroke 0.28s ease;
}

.theme-icon .moon-shape {
    fill: #cbd5e1;
    transform-origin: 12px 12px;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        fill 0.28s ease;
}

body[data-theme="dark"] .theme-icon .sun-core,
body[data-theme="dark"] .theme-icon .sun-rays {
    opacity: 0;
    transform: scale(0.55) rotate(-55deg);
}

body[data-theme="dark"] .theme-icon .moon-shape {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body[data-theme="light"] .theme-icon .sun-core,
body[data-theme="light"] .theme-icon .sun-rays {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body[data-theme="light"] .theme-icon .moon-shape {
    opacity: 0;
    transform: scale(0.45) rotate(50deg);
}

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

/* Shared header and button primitives */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top {
    padding: var(--top-padding, 26px 0 14px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-display);
}

.logo-mark {
    width: var(--logo-mark-size, 34px);
    height: var(--logo-mark-size, 34px);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btn {
    border: 0;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: var(--btn-min-height, 38px);
    padding: var(--btn-padding, 0 12px);
    font-size: var(--btn-font-size, 0.83rem);
    transition: var(--btn-transition, none);
    cursor: pointer;
}

.btn-ghost {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid var(--line);
    color: var(--ink);
}

body[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    background: linear-gradient(125deg, var(--brand), #3296ff);
    color: #eaf4ff;
}

.actions {
    display: flex;
    gap: var(--actions-gap, 8px);
    flex-wrap: var(--actions-wrap, wrap);
    justify-content: flex-end;
}

.lead {
    color: var(--ink-muted);
    margin: var(--lead-margin, 10px 0 0);
}

.panel {
    margin-top: var(--panel-margin-top, 12px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--panel-radius, 20px);
    box-shadow: var(--shadow);
    padding: var(--panel-padding, 24px);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --edge-gap: 16px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-group,
    .actions {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .site-footer {
        padding: 20px 12px 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --edge-gap: 12px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-link {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .footer-copy {
        font-size: 0.78rem;
        line-height: 1.5;
    }
}