/* ============================================================
   BluTek Consulting — Global Stylesheet
   Palette: Navy → Royal Blue → Signal Red
   ============================================================ */

:root {
    /* Brand */
    --navy-950: #050b1f;
    --navy-900: #0a1533;
    --navy-800: #0f1f4a;
    --navy-700: #152a63;
    --blue-700: #1e3a8a;
    --blue-600: #2040c4;
    --blue-500: #3b5ef0;
    --blue-400: #5b7cff;
    --blue-300: #8ea6ff;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-400: #f87171;

    /* Neutrals */
    --ink-900: #0b1222;
    --ink-800: #1a2238;
    --ink-700: #2a3450;
    --ink-500: #5b6781;
    --ink-400: #8b95ad;
    --ink-300: #c3cad9;
    --ink-200: #e4e8f1;
    --ink-100: #f2f5fb;
    --ink-50: #f8fafc;
    --white: #ffffff;

    /* Surfaces */
    --bg: var(--white);
    --bg-alt: var(--ink-50);
    --surface: rgba(255, 255, 255, 0.75);
    --border: rgba(10, 21, 51, 0.08);
    --border-strong: rgba(10, 21, 51, 0.14);

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #1e3a8a 0%, #2040c4 45%, #dc2626 100%);
    --grad-brand-soft: linear-gradient(135deg, #1e3a8a 0%, #2040c4 60%, #ef4444 100%);
    --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(59, 94, 240, 0.35), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(220, 38, 38, 0.25), transparent 55%),
        linear-gradient(180deg, #050b1f 0%, #0a1533 100%);
    --grad-card: linear-gradient(160deg, rgba(30, 58, 138, 0.06), rgba(220, 38, 38, 0.05));
    --grad-text: linear-gradient(90deg, #2040c4 0%, #ef4444 100%);

    /* Typography */
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Radii & Shadows */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(10, 21, 51, 0.06), 0 1px 3px rgba(10, 21, 51, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 21, 51, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 21, 51, 0.14);
    --shadow-brand: 0 18px 40px rgba(32, 64, 196, 0.28);

    /* Layout */
    --container: 1200px;
    --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue-600);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--red-600);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 .6em;
    color: var(--navy-900);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
    color: var(--ink-700);
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-600);
    background: linear-gradient(135deg, rgba(32, 64, 196, 0.1), rgba(220, 38, 38, 0.1));
    padding: .4rem .9rem;
    border-radius: var(--r-pill);
    margin-bottom: 1rem;
}

.section-title {
    max-width: 780px;
}

.section-title p {
    font-size: 1.08rem;
    color: var(--ink-500);
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .97rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--grad-brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    color: var(--white);
    box-shadow: 0 22px 50px rgba(220, 38, 38, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.btn-sm {
    padding: .6rem 1.1rem;
    font-size: .9rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--navy-900);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand small {
    color: var(--ink-500);
    font-weight: 500;
    font-size: .72rem;
    display: block;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-800);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--navy-900);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: var(--white);
}

.nav-links a.btn::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .25s ease;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links .btn {
        align-self: flex-start;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    background: var(--grad-hero);
    overflow: hidden;
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    opacity: .35;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    margin-bottom: 1.2rem;
}

.hero h1 .accent {
    background: linear-gradient(90deg, #8ea6ff 0%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lede {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .9rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: .85rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-500);
    box-shadow: 0 0 12px var(--red-500);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    max-width: 520px;
}

.hero-stat {
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    padding-left: 1rem;
}

.hero-stat b {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.6);
    font-size: .85rem;
}

/* Hero visual panel */
.hero-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-panel .panel-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.hero-panel .panel-head .dots {
    display: flex;
    gap: 6px;
}

.hero-panel .panel-head .dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.hero-panel .panel-head .dots i:nth-child(1) {
    background: var(--red-500);
}

.hero-panel .panel-head .dots i:nth-child(2) {
    background: #f59e0b;
}

.hero-panel .panel-head .dots i:nth-child(3) {
    background: #10b981;
}

.hero-panel .panel-body {
    padding: 1rem 0 .2rem;
    display: grid;
    gap: .65rem;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: .92rem;
}

.panel-row .tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    padding: .2rem .55rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, rgba(59, 94, 240, 0.22), rgba(220, 38, 38, 0.22));
    color: #c7d2fe;
    border: 1px solid rgba(59, 94, 240, 0.35);
}

.panel-row .tag.red {
    color: #fecaca;
    border-color: rgba(220, 38, 38, 0.4);
}

/* ---------- Domains (industries) ---------- */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.domain-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.domain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(32, 64, 196, 0.12), rgba(220, 38, 38, 0.12));
    color: var(--blue-600);
    margin-bottom: 1rem;
}

.domain-card h3 {
    font-size: 1.1rem;
    margin-bottom: .35rem;
}

.domain-card p {
    margin: 0;
    font-size: .92rem;
    color: var(--ink-500);
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.service-card {
    padding: 2rem;
    border-radius: var(--r-lg);
    background: var(--grad-card), var(--white);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card .num {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--red-600);
    letter-spacing: .2em;
}

.service-card h3 {
    margin-top: .6rem;
    margin-bottom: .5rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: .95rem;
    margin: 0;
}

/* ---------- Products (SaaS) ---------- */
.product-stack {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.25rem;
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.product-card.reverse .product-visual {
    order: -1;
}

@media (max-width: 820px) {

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

    .product-card.reverse .product-visual {
        order: 0;
    }
}

.product-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: .8rem;
}

.product-logo .mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}

.product-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red-600);
    margin-bottom: .5rem;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: .7rem;
}

.product-card ul {
    padding: 0;
    margin: 1rem 0 1.2rem;
    list-style: none;
    display: grid;
    gap: .55rem;
}

.product-card li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ink-700);
    font-size: .95rem;
}

.product-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--grad-brand);
    box-shadow: 0 2px 6px rgba(32, 64, 196, 0.4);
}

.product-visual {
    position: relative;
    min-height: 260px;
    border-radius: var(--r-lg);
    padding: 1.2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.product-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.product-visual.qp {
    background: linear-gradient(135deg, #0f1f4a 0%, #2040c4 60%, #ef4444 120%);
}

.product-visual.tc {
    background: linear-gradient(135deg, #052e16 0%, #1e3a8a 55%, #dc2626 120%);
}

.product-visual.fc {
    background: linear-gradient(135deg, #0a1533 0%, #4c1d95 55%, #ef4444 120%);
}

.product-visual .metric-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

.product-visual .metric {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: .8rem;
    backdrop-filter: blur(10px);
}

.product-visual .metric b {
    font-family: var(--font-display);
    font-size: 1.4rem;
    display: block;
}

.product-visual .metric span {
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.65);
}

.product-visual .live {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-visual .live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
}

/* ---------- About ---------- */
.about {
    background: var(--ink-50);
    background-image: radial-gradient(600px 300px at 0% 0%, rgba(32, 64, 196, 0.07), transparent 60%),
        radial-gradient(500px 280px at 100% 100%, rgba(220, 38, 38, 0.06), transparent 55%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.value {
    padding: 1.2rem;
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.value h4 {
    margin: 0 0 .3rem;
    font-size: 1rem;
    color: var(--navy-900);
}

.value p {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-500);
}

/* ---------- Contact ---------- */
.contact {
    background: var(--grad-hero);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact h2 {
    color: var(--white);
}

.contact .section-eyebrow {
    background: rgba(255, 255, 255, 0.08);
    color: #c7d2fe;
}

.contact p {
    color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.contact-info .info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
}

.contact-info .info .ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.contact-info .info b {
    display: block;
    color: var(--white);
    margin-bottom: 3px;
}

.contact-info .info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: .92rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-xl);
    padding: 2rem;
    backdrop-filter: blur(14px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: .4rem;
    font-weight: 500;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: .95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--r-md);
    color: var(--white);
    transition: border-color .15s ease, background .15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.field select option {
    color: var(--ink-800, #1f2937);
    background: #ffffff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.08);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.form-status {
    margin-top: .8rem;
    padding: .7rem 1rem;
    border-radius: var(--r-md);
    font-size: .9rem;
    display: none;
}

.form-status.ok {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.err {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.65);
    padding: 3.5rem 0 1.5rem;
    font-size: .92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.site-footer h5 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer .brand {
    color: var(--white);
    margin-bottom: 1rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.45);
    font-size: .85rem;
}

/* ---------- Admin ---------- */
.admin-body {
    background: var(--ink-50);
    min-height: 100vh;
    font-family: var(--font-body);
}

.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: var(--grad-hero);
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.admin-login-card .brand {
    margin-bottom: 2rem;
}

.admin-login-card .field label {
    color: var(--ink-800);
}

.admin-login-card .field input {
    background: var(--white);
    color: var(--ink-900);
    border-color: var(--border-strong);
}

.admin-login-card .field input::placeholder {
    color: var(--ink-400);
}

.admin-login-card .field input:focus {
    border-color: var(--blue-500);
    background: var(--white);
}

.admin-login-card .btn-primary {
    width: 100%;
    justify-content: center;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-sidebar .brand {
    color: #fff;
    margin-bottom: 2rem;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .3rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    border-radius: var(--r-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: .92rem;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 2rem clamp(1.2rem, 3vw, 2.5rem);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-topbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.3rem 1.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.stat-card .label {
    font-size: .8rem;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: var(--font-mono);
}

.stat-card .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-top: .4rem;
}

.messages-list {
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.messages-list .head,
.message-row {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 2fr .9fr 60px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: center;
}

.messages-list .head {
    background: var(--ink-50);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-500);
}

.message-row {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s ease;
}

.message-row:hover {
    background: var(--ink-50);
}

.message-row:last-child {
    border-bottom: 0;
}

.message-row.unread {
    background: #f0f5ff;
}

.message-row.unread:hover {
    background: #e6edff;
}

.message-row strong {
    color: var(--navy-900);
}

.message-row .snippet {
    color: var(--ink-500);
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-row .time {
    font-size: .85rem;
    color: var(--ink-500);
}

.message-row .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-500);
    opacity: 0;
}

.message-row.unread .dot {
    opacity: 1;
}

.empty {
    padding: 3rem;
    text-align: center;
    color: var(--ink-500);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 31, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    place-items: center;
    padding: 2rem;
    z-index: 100;
}

.modal-backdrop.open {
    display: grid;
}

.modal {
    background: var(--white);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    max-height: 90vh;
    overflow: auto;
}

.modal h3 {
    margin-bottom: .2rem;
}

.modal .meta {
    color: var(--ink-500);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.modal .meta a {
    color: var(--blue-600);
}

.modal .body {
    white-space: pre-wrap;
    background: var(--ink-50);
    padding: 1.2rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    color: var(--ink-800);
}

.modal .actions {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-sm {
    gap: .5rem;
}

.mt-lg {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}