/* Landing/marketing theme with Light/Dark via CSS variables */
@layer base {
    :root {
        --color-primary: #0f766e;
        /* petrol */
        --bg: #ffffff;
        --bg-muted: #f6f7f8;
        --text: #0b0f13;
        --text-muted: rgba(0, 0, 0, 0.65);
        --surface: rgba(0, 0, 0, 0.04);
        --surface-border: rgba(0, 0, 0, 0.08);
        --ink: #0b0f13;
        /* footer/background ink for dark */
    }

    .theme-dark {
        --bg: #121315;
        --bg-muted: #0f1112;
        --text: #ffffff;
        --text-muted: rgba(255, 255, 255, 0.8);
        --surface: rgba(255, 255, 255, 0.04);
        --surface-border: rgba(255, 255, 255, 0.08);
    }

    .theme-light {
        --bg: #ffffff;
        --bg-muted: #f6f7f8;
        --text: #0b0f13;
        --text-muted: rgba(0, 0, 0, 0.70);
        --surface: rgba(0, 0, 0, 0.03);
        --surface-border: rgba(0, 0, 0, 0.08);
    }
}

/* Page background; dark uses textured look, light uses subtle paper */
.landing {
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 800px at 80% -10%, color-mix(in srgb, var(--text) 6%, transparent) 0%, transparent 60%),
        radial-gradient(1000px 600px at -10% 10%, color-mix(in srgb, var(--text) 5%, transparent) 0%, transparent 50%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 100%, transparent) 0%, color-mix(in srgb, var(--bg) 100%, transparent) 100%);
}

/* Headline display font utility (Knewave) */
.font-display {
    font-family: "Knewave", system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
    letter-spacing: 0.3px;
}

.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2em;
    height: 8px;
    background: radial-gradient(closest-side, rgba(34, 197, 194, 0.8), rgba(34, 197, 194, 0.0)),
        linear-gradient(90deg, rgba(16, 185, 129, 0.4) 0%, rgba(45, 212, 191, 0.7) 60%, rgba(13, 148, 136, 0.9) 100%);
    filter: blur(0.3px);
    border-radius: 9999px;
    opacity: .85;
}

/* Card styling on dark */
.card-dark {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(2px);
}

.badge-pill {
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #115e59;
}

.btn-ghost {
    border: 2px solid color-mix(in srgb, var(--text) 80%, transparent);
    color: var(--text);
    background: transparent;
}

.btn-ghost:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* Pastel brand highlight for active nav items */
.bg-pastel-brand {
    /* soft petrol tint against dark menu and light theme */
    background: color-mix(in srgb, var(--color-primary) 18%, white);
    color: var(--ink);
}

.theme-dark .bg-pastel-brand {
    background: color-mix(in srgb, var(--color-primary) 26%, black);
    color: white;
}

/* Footer ink background adapts: dark uses --ink, light uses --bg-muted */
.footer-surface {
    background: color-mix(in srgb, var(--bg-muted) 100%, transparent);
    color: var(--text-muted);
    border-top: 1px solid var(--surface-border);
}

/* Strap Badge (teal rectangle) — used as background for icon/label badges */
.badge-strap {
    --badge-bg: var(--color-primary);
    --badge-border: color-mix(in srgb, var(--text) 15%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    /* slightly taller like screenshot */
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background: var(--badge-bg);
    color: #fff;
    /* icons/text on strap are white */
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--badge-border);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Small square variant when space is tight */
.badge-strap--sm {
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.4rem;
    font-weight: 700;
}

/* Icon-only variant: square-ish strap for glyphs */
.badge-strap--icon {
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

/* Ensure icons on strap are white via currentColor */
.badge-strap svg {
    color: inherit;
}

/* Mobile dropdown panel (hamburger menu) */
.dropdown-panel {
    /* 20% transparency + blur across themes */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Light theme keeps existing light look with 20% opacity */
.theme-light .dropdown-panel {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
}

/* Dark theme: darker base with 20% opacity to increase contrast */
.theme-dark .dropdown-panel {
    background: color-mix(in srgb, #0b0f13 80%, transparent);
}

/* Light-theme compatibility overrides for legacy Tailwind classes used in content */
.theme-light .text-white {
    color: var(--text) !important;
}

.theme-light .hover\:text-white:hover {
    color: var(--text) !important;
}

.theme-light .text-white\/90 {
    color: var(--text) !important;
}

.theme-light .text-white\/80 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/70 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/60 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/40 {
    color: color-mix(in srgb, var(--text) 50%, transparent) !important;
}

.theme-light .text-white\/20 {
    color: color-mix(in srgb, var(--text) 40%, transparent) !important;
}

.theme-light .border-white\/10 {
    border-color: var(--surface-border) !important;
}

/* Theme-aware logos */
.logo-light {
    display: none;
}

.logo-dark {
    display: inline;
}

.theme-light .logo-light {
    display: inline;
}

.theme-light .logo-dark {
    display: none;
}

/* Petrol color utilities for icon accents */
.text-petrol {
    color: var(--color-primary);
}

.text-petrol-light {
    /* lighter tint of petrol for subtle accent */
    color: color-mix(in srgb, var(--color-primary) 40%, white);
}

.text-petrol-dark {
    /* darker tone of petrol for stronger accent */
    color: color-mix(in srgb, var(--color-primary) 80%, black);
}

/* -------------------------------------------------- */
/* Form field styling (theme-aware)                   */
/* -------------------------------------------------- */
.form-field {
    background: color-mix(in srgb, var(--bg) 92%, var(--surface));
    border: 1px solid var(--surface-border);
    color: var(--text);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.theme-dark .form-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text);
}

.form-field::placeholder {
    color: color-mix(in srgb, var(--text) 55%, transparent);
}

.theme-dark .form-field::placeholder {
    color: color-mix(in srgb, var(--text) 40%, transparent);
}

.form-field:focus {
    outline: none;
}

/* -------------------------------------------------- */
/* Development hint panel (theme-aware)               */
/* -------------------------------------------------- */
.dev-hint {
    border: 1px solid color-mix(in srgb, #facc15 55%, transparent);
    /* amber 400 base */
    background: color-mix(in srgb, #facc15 14%, transparent);
    color: #facc15;
    border-radius: 0.75rem;
}

.theme-light .dev-hint {
    border-color: #d97706;
    /* amber 600 */
    background: #fef3c7;
    /* amber 100 */
    color: #92400e;
    /* amber 700 */
}

.dev-hint code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

.theme-light .dev-hint code {
    background: rgba(0, 0, 0, 0.08);
}

.theme-dark .logo-light {
    display: none;
}

.theme-dark .logo-dark {
    display: inline;
}

/* Ensure both theme logos share identical sizing and baseline behavior */
.logo-img {
    height: 2rem;
    /* matches h-8 */
    width: auto;
    display: block;
    /* avoid baseline/descender gaps */
    object-fit: contain;
}

.logo-wrap {
    display: grid;
    place-items: center;
    height: 2rem;
    line-height: 0;
    /* remove inline baseline artifacts */
}