/* ===========================================================
   Huntech ICT Solutions — Design system
   Tecnico-minimal. IBM Plex Sans + IBM Plex Mono.
   =========================================================== */

:root {
    /* Palette neutra warm */
    --bg:        oklch(98.5% 0.004 80);
    --bg-soft:   oklch(96.5% 0.005 80);
    --bg-card:   #ffffff;
    --ink:       oklch(18% 0.01 270);
    --ink-soft:  oklch(38% 0.01 270);
    --ink-mute:  oklch(58% 0.01 270);
    --line:      oklch(90% 0.005 270);
    --line-strong: oklch(82% 0.008 270);

    /* Accento — viola misurato, eredita lo spirito del logo */
    --accent:    oklch(52% 0.18 290);
    --accent-ink: #ffffff;
    --accent-soft: oklch(96% 0.04 290);

    /* Dark companions (per sezioni dark e per il tema scuro) */
    --dark-bg:   oklch(16% 0.01 270);
    --dark-bg-2: oklch(20% 0.012 270);
    --dark-ink:  oklch(96% 0.005 80);
    --dark-line: oklch(28% 0.015 270);

    /* Tipografia */
    --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* Scala */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    --maxw: 1180px;
    --pad-x: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
    --bg:        oklch(15% 0.01 270);
    --bg-soft:   oklch(19% 0.012 270);
    --bg-card:   oklch(21% 0.012 270);
    --ink:       oklch(96% 0.005 80);
    --ink-soft:  oklch(78% 0.008 270);
    --ink-mute:  oklch(60% 0.01 270);
    --line:      oklch(28% 0.015 270);
    --line-strong: oklch(35% 0.015 270);
    --accent-soft: oklch(28% 0.06 290);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "cv11";
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Tipografia base */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 .4em;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p  { margin: 0 0 1em; text-wrap: pretty; color: var(--ink-soft); }

.mono { font-family: var(--font-mono); }
.eyebrow {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-mute);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

/* ===========================================================
   NAV
   =========================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px var(--pad-x);
    max-width: var(--maxw);
    margin: 0 auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.brand-mark {
    width: 30px;
    height: 30px;
    color: var(--ink);
    display: inline-grid;
    place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name b { font-weight: 700; }
.brand-name span { color: var(--ink-mute); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    color: var(--ink);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform .08s ease, background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover { background: oklch(46% 0.18 290); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-link {
    padding: 0;
    background: transparent;
    color: var(--ink);
    border: none;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    padding-bottom: 2px;
}
.btn-link:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow {
    transition: transform .15s;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
    padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 85%);
    opacity: .55;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero-copy h1 {
    margin-bottom: 24px;
}
.hero-copy h1 .accent {
    color: var(--accent);
}
.hero-lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: oklch(70% 0.18 145);
    box-shadow: 0 0 0 4px color-mix(in srgb, oklch(70% 0.18 145) 25%, transparent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: .7; }
}

/* Hero visual: terminal-style monitoring mock */
.hero-visual {
    background: var(--dark-bg);
    border: 1px solid var(--dark-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    color: var(--dark-ink);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.25), 0 8px 24px -12px rgba(0,0,0,.18);
}
.hv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-line);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: oklch(70% 0.005 80);
}
.hv-dots { display: inline-flex; gap: 6px; }
.hv-dots i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: oklch(35% 0.02 270);
}
.hv-body {
    padding: 18px 20px 22px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.85;
}
.hv-row {
    display: grid;
    grid-template-columns: 14ch 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--dark-line);
}
.hv-row:last-child { border-bottom: none; }
.hv-label { color: oklch(72% 0.005 80); }
.hv-bar-meter {
    background: var(--dark-bg-2);
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
    position: relative;
}
.hv-bar-meter > i {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, oklch(70% 0.18 145), oklch(78% 0.16 145));
}
.hv-bar-meter.warn > i { background: linear-gradient(90deg, oklch(75% 0.16 75), oklch(82% 0.14 75)); }
.hv-status {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: oklch(28% 0.06 145);
    color: oklch(85% 0.13 145);
    letter-spacing: 0.04em;
}
.hv-status.warn {
    background: oklch(30% 0.06 75);
    color: oklch(86% 0.13 75);
}
.hv-foot {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--dark-line);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: oklch(60% 0.005 80);
}

/* ===========================================================
   SECTIONS shared
   =========================================================== */
section {
    padding: clamp(60px, 8vw, 110px) 0;
    border-bottom: 1px solid var(--line);
}
section.dark {
    background: var(--dark-bg);
    color: var(--dark-ink);
    border-bottom-color: var(--dark-line);
}
section.dark h2, section.dark h3 { color: var(--dark-ink); }
section.dark p { color: oklch(75% 0.005 80); }
section.dark .eyebrow { color: oklch(65% 0.02 290); }
section.soft { background: var(--bg-soft); }

.section-head {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { max-width: 22ch; }
.section-head p { font-size: 1.05rem; max-width: 60ch; }

/* PILLARS — 3 punti forti */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.pillar {
    background: var(--bg-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pillar .num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-mute);
}
.pillar h3 { margin: 0; }
.pillar p { margin: 0; font-size: 0.95rem; }

/* SERVICES grid (dark) */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service {
    background: var(--dark-bg-2);
    border: 1px solid var(--dark-line);
    border-radius: var(--r-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s, transform .2s;
}
.service:hover { border-color: oklch(45% 0.12 290); transform: translateY(-2px); }
.service-icon {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: oklch(82% 0.12 290);
    display: grid;
    place-items: center;
}
.service h3 { color: var(--dark-ink); margin: 0; font-size: 1.1rem; }
.service p { color: oklch(72% 0.005 80); margin: 0; font-size: 0.92rem; }
.service .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: oklch(68% 0.02 290);
    margin-top: auto;
    padding-top: 6px;
    letter-spacing: 0.02em;
}

/* APPROACH (numerate) */
.approach {
    display: grid;
    gap: 0;
}
.appr-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.2fr;
    gap: clamp(20px, 4vw, 60px);
    padding: clamp(28px, 4vw, 48px) 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.appr-row:last-child { border-bottom: 1px solid var(--line); }
.appr-num {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--ink-mute);
}
.appr-title h3 { margin: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.appr-title .sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-top: 8px;
}
.appr-body p { margin: 0; font-size: 1rem; }

/* IMAGE PLACEHOLDER (for missing real photos) */
.imgholder {
    background:
        repeating-linear-gradient(135deg,
            var(--bg-soft) 0, var(--bg-soft) 10px,
            var(--bg) 10px, var(--bg) 20px);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 24px;
    aspect-ratio: 4/3;
}
.imgholder.dark {
    background:
        repeating-linear-gradient(135deg,
            var(--dark-bg-2) 0, var(--dark-bg-2) 10px,
            var(--dark-bg) 10px, var(--dark-bg) 20px);
    border-color: var(--dark-line);
    color: oklch(60% 0.005 80);
}
.imgholder span {
    display: block;
    max-width: 30ch;
}
.imgholder b {
    display: block;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.imgholder.dark b { color: oklch(80% 0.005 80); }

.aspect-photo { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); }
.aspect-wide  { aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-md); }

/* CTA strip */
.cta-strip {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: clamp(40px, 5vw, 72px);
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--r-lg);
}
.cta-strip h2 { color: var(--bg); margin: 0 0 16px; }
.cta-strip p  { color: oklch(75% 0.005 80); margin: 0; }
.cta-strip .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cta-strip .btn-ghost {
    color: var(--bg);
    border-color: oklch(40% 0.01 270);
}
.cta-strip .btn-ghost:hover { background: oklch(25% 0.012 270); }

/* TRUST strip */
.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.trust-cell {
    background: var(--bg-card);
    padding: 28px 20px;
    text-align: left;
}
.trust-cell .big {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 8px;
}
.trust-cell .lbl {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

/* PAGE HEAD (sub-pages) */
.page-head {
    padding: clamp(60px, 8vw, 100px) 0 clamp(24px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.page-head p {
    max-width: 60ch;
    font-size: 1.1rem;
    margin-top: 18px;
}

/* TWO COL service detail (cosa-facciamo) */
.servlist { display: grid; gap: 0; }
.serv-item {
    display: grid;
    grid-template-columns: 60px 1.1fr 1.4fr;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(36px, 5vw, 64px) 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.serv-item:last-child { border-bottom: 1px solid var(--line); }
.serv-num { font-family: var(--font-mono); color: var(--ink-mute); font-size: 0.95rem; padding-top: 4px; }
.serv-head h3 { font-size: 1.5rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.serv-head .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.serv-body p { font-size: 1rem; margin: 0 0 16px; }
.serv-body ul {
    list-style: none;
    padding: 0; margin: 0 0 16px;
    display: grid;
    gap: 8px;
}
.serv-body ul li {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding-left: 18px;
    position: relative;
}
.serv-body ul li::before {
    content: "→";
    position: absolute; left: 0;
    color: var(--accent);
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(32px, 4vw, 56px);
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-card h3 { margin: 0; font-size: 1.05rem; }
.contact-card .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.contact-card .value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--ink);
    word-break: break-word;
}
.contact-card .value a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.contact-card .value a:hover { color: var(--accent); border-color: var(--accent); }
.contact-card p { margin: 0; font-size: 0.95rem; }
.contact-stack { display: grid; gap: 20px; }

/* TEAM placeholders (chi-siamo) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.team-card .imgholder { aspect-ratio: 1/1; border: none; border-radius: 0; border-bottom: 1px dashed var(--line-strong); }
.team-card .meta { padding: 18px 20px; }
.team-card h3 { margin: 0; font-size: 1.05rem; }
.team-card .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); margin-top: 4px; }

/* PRIVACY content */
.prose {
    max-width: 70ch;
    margin: 0 auto;
}
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }

/* FOOTER */
.site-footer {
    background: var(--dark-bg);
    color: oklch(75% 0.005 80);
    padding: 56px var(--pad-x) 28px;
    margin-top: 0;
    font-size: 0.92rem;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    color: oklch(60% 0.005 80);
    letter-spacing: 0.04em;
    font-weight: 500;
    margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: oklch(85% 0.005 80); }
.footer-col a:hover { color: #fff; }
.footer-brand .brand { color: var(--dark-ink); }
.footer-brand .brand-mark { color: var(--dark-ink); }
.footer-tag {
    margin-top: 16px;
    max-width: 36ch;
    color: oklch(70% 0.005 80);
    font-size: 0.9rem;
}
.footer-bot {
    max-width: var(--maxw);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--dark-line);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: oklch(55% 0.005 80);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .pillars { grid-template-columns: 1fr; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .cta-strip { grid-template-columns: 1fr; }
    .cta-strip .actions { justify-content: flex-start; }
    .trust { grid-template-columns: repeat(2, 1fr); }
    .appr-row { grid-template-columns: 60px 1fr; }
    .appr-row .appr-body { grid-column: 2 / 3; }
    .serv-item { grid-template-columns: 40px 1fr; }
    .serv-item .serv-body { grid-column: 2 / 3; }
    .contact-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px var(--pad-x);
        gap: 2px;
    }
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn-ghost { display: none; }
    .services { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===========================================================
   TWEAKS PANEL
   =========================================================== */
.tweaks {
    position: fixed;
    bottom: 16px; right: 16px;
    z-index: 100;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.2);
    padding: 16px;
    width: 260px;
    font-family: var(--font-sans);
    color: var(--ink);
    display: none;
}
.tweaks.show { display: block; }
.tweaks h4 {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
}
.tw-row { display: grid; gap: 8px; margin-bottom: 14px; }
.tw-row > label {
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-family: var(--font-mono);
}
.tw-swatches { display: flex; gap: 6px; }
.tw-swatch {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .1s, border-color .15s;
}
.tw-swatch:hover { transform: scale(1.1); }
.tw-swatch.active { border-color: var(--ink); }
.tw-seg {
    display: flex;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    overflow: hidden;
    font-size: 0.82rem;
}
.tw-seg button {
    flex: 1;
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: var(--ink-soft);
}
.tw-seg button.active { background: var(--ink); color: var(--bg); }
.tw-close {
    position: absolute;
    top: 8px; right: 8px;
    background: transparent;
    border: none;
    color: var(--ink-mute);
    font-size: 18px;
    padding: 4px 8px;
}
