/* ==========================================================================
   TNT Tech — Modern High-Tech Design System (Light & Dark Theme)
   Clean, fast, responsive, SEO-friendly UI
   ========================================================================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-elevated: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(79, 70, 229, 0.25);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: rgba(79, 70, 229, 0.1);
    --accent: #06b6d4;
    --accent-soft: rgba(6, 182, 212, 0.12);
    --success: #10b981;
    --warning: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-hero: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.12) 0%, transparent 45%),
                     radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1240px;
    --header-h: 76px;
}

[data-theme="dark"] {
    --bg-primary: #060b16;
    --bg-secondary: #0c1426;
    --bg-elevated: rgba(12, 20, 38, 0.85);
    --bg-card: #0f1a30;
    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(99, 102, 241, 0.45);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-soft: rgba(99, 102, 241, 0.16);
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.15);

    --gradient-hero: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
                     radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.16) 0%, transparent 45%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.brand-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-dropdown { position: relative; }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 310px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.65rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 120;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    transition: background 0.18s ease;
}
.dropdown-item:hover { background: var(--primary-soft); }
.dropdown-item-title { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.dropdown-item-sub { font-size: 0.78rem; color: var(--text-muted); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.icon-btn:hover { color: var(--primary); border-color: var(--border-strong); }

.mobile-menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.38);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--primary-soft); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.86rem; border-radius: 9px; }

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    padding: 4.5rem 0 4rem;
    background-image: var(--gradient-hero),
                      linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
    align-items: center;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--border-strong);
    margin-bottom: 1.25rem;
}

.tech-pill .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
    font-size: clamp(2.15rem, 4.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

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

.hero-desc {
    font-size: 1.06rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 1.9rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-visual {
    position: relative;
}

.hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 0.9rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.hero-frame img {
    border-radius: calc(var(--radius-lg) - 8px);
    width: 100%;
    object-fit: cover;
}

.hero-floating-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.chip-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    text-align: center;
}
.chip-stat strong { display: block; font-size: 1rem; color: var(--primary); font-weight: 800; }
.chip-stat span { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Sections & Headers ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background-color: var(--bg-secondary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.section-kicker {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
}

/* ---------- Stats Strip ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: -1.5rem;
    position: relative;
    z-index: 5;
}

.stat-box { text-align: center; }
.stat-num {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.35rem; font-weight: 500; }

/* ---------- Grids & Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

/* ---------- Product Cards ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-thumb-wrap img { transform: scale(1.04); }

.product-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    backdrop-filter: blur(8px);
}

.product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    line-height: 1.35;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.88rem;
}
.link-arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.link-arrow:hover { gap: 0.55rem; }

/* ---------- Article / News Cards ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }

.article-cat-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
}

.article-body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.article-product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.55rem;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.74rem;
}

.article-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-title a:hover { color: var(--primary); }

.article-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

/* ---------- Clients Strip ---------- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}
.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
.client-logo-box {
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
}
.client-logo-box img { max-height: 40px; width: auto; object-fit: contain; }
.client-name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
.client-sector { font-size: 0.76rem; color: var(--primary); font-weight: 600; }

/* ---------- Product Detail Tabs ---------- */
.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.25rem;
}
.tab-btn {
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.check-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.25rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-secondary); }
.check-dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 2px;
}

/* ---------- News Filter Bar & Article Prose ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill {
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-inline {
    display: flex;
    gap: 0.5rem;
    flex: 0 1 320px;
}
.input-control {
    width: 100%;
    padding: 0.68rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.input-control { min-height: 120px; resize: vertical; }

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
    align-items: start;
}

.prose {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 0.85rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.22rem; font-weight: 700; margin: 1.5rem 0 0.65rem; }
.prose p { margin-bottom: 1.15rem; color: var(--text-secondary); }
.prose strong { color: var(--text-primary); }
.prose ul, .prose ol { margin: 0.85rem 0 1.25rem 1.4rem; color: var(--text-secondary); display: grid; gap: 0.5rem; }
.prose blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    padding: 1.15rem 1.4rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}
.prose blockquote p { margin-bottom: 0; color: var(--text-primary); }
.prose img { border-radius: 14px; margin: 1.5rem 0; border: 1px solid var(--border-subtle); }
.prose figure.media { margin: 1.75rem 0; width: 100%; }
.prose .video-embed-wrap,
.prose figure.media > div[data-oembed-url] > div {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding-bottom: 0 !important;
    height: auto !important;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    background: #000;
}
.prose .video-embed-wrap iframe,
.prose figure.media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.75rem;
}
.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.page-btn.active, .page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- CTA Banner ---------- */
.cta-box {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.9rem; }
.cta-box p { max-width: 640px; margin: 0 auto 1.75rem; opacity: 0.92; font-size: 1.03rem; }
.btn-white {
    background: #fff;
    color: #1e1b4b;
    font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); color: #1e1b4b; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #047857;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
[data-theme="dark"] .alert-success { color: #34d399; }

.field-validation-error { color: #ef4444; font-size: 0.82rem; margin-top: 0.3rem; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .feature-split, .article-detail-layout { grid-template-columns: 1fr; }
    .grid-4, .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.25rem 0 0.25rem 1rem;
        background: transparent;
    }
    .mobile-menu-btn { display: inline-flex; }
    .nav-actions .btn-primary { display: none; }
    .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 3rem 0; }
}
