/* SpringBees Hub - Wiki Style */
:root {
    --navy: #1B2B48;
    --navy-light: #2A3F64;
    --navy-dark: #0F1A2E;
    --gold: #EAA924;
    --gold-light: #EAA924;
    --gold-dark: #EAA924;
    --bg: #FAFBFD;
    --bg-white: #FFFFFF;
    --bg-sidebar: #F4F6FA;
    --text: #2C3E50;
    --text-light: #6B7C93;
    --text-muted: #95A5B6;
    --border: #E2E8F0;
    --border-light: #EDF2F7;
    --card-shadow: 0 2px 12px rgba(27,43,72,0.06);
    --card-shadow-hover: 0 4px 20px rgba(27,43,72,0.12);
    --nav-height: 60px;
    --sidebar-width: 240px;
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

/* ===== Top Nav ===== */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 100;
    gap: 36px;
    box-shadow: 0 2px 8px rgba(15,26,46,0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-name .gold { color: #FFB800; }

.nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s;
    margin-right: 4px;
}
.nav-links a.nav-badge {
    border-radius: 999px !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    background: var(--gold);
}

.nav-links a.active {
    background: var(--gold);
}

/* ===== Layout ===== */
.main-layout {
    display: flex;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section h4 {
    padding: 10px 24px 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 900;
}

.sidebar-link {
    display: block;
    padding: 7px 24px 7px 32px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background: var(--bg-sidebar);
    color: var(--navy);
}

.sidebar-link.active {
    color: var(--navy);
    border-left-color: var(--gold);
    background: rgba(234,169,36,0.06);
    font-weight: 500;
}

.sidebar-sub {
    padding-left: 44px;
}

.sidebar-sub .sidebar-link {
    font-size: 12.5px;
    padding: 5px 24px 5px 12px;
    border-left: none;
    color: var(--text-light);
    font-weight: 600;
}

.sidebar-sub .sidebar-link:hover { color: var(--navy); }
.sidebar-sub .sidebar-link.active { color: var(--navy); font-weight: 500; }

/* ===== Content ===== */
.content {
    flex: 1;
    max-width: 100%;
    padding: 36px 32px 36px 32px;
    margin-right: 90px;
}

.content h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    color: var(--navy);
}

.content h2 .emoji { margin-right: 8px; }

.content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--navy);
}

.content p {
    margin-bottom: 14px;
    color: var(--text);
}

.content ul, .content ol {
    margin: 8px 0 16px 20px;
}

.content li {
    margin-bottom: 4px;
    color: var(--text);
}

/* ===== Search in Nav ===== */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    margin-left: 0;
    transition: border-color 0.2s, background 0.2s;
}
.nav-search:focus-within {
    border-color: rgba(234,169,36,0.6);
    background: rgba(255,255,255,0.15);
}
.nav-search-icon {
    font-size: 13px;
    margin-right: 6px;
    flex-shrink: 0;
}
.nav-search input {
    width: 140px;
    border: none;
    outline: none;
    font-size: 12px;
    font-family: inherit;
    color: #FFB800;
    background: transparent;
}
.nav-search input::placeholder {
    color: rgba(255,255,255,0.6);
}
.nav-search-clear {
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
    display: none;
    transition: color 0.15s;
}
.nav-search-clear:hover {
    color: #fff;
}
.nav-search-clear.visible {
    display: block;
}
.hex-card.search-hidden {
    display: none;
}
.hex-grid.search-empty::after {
    content: "No matching sensors found.";
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== Hero ===== */
.hero {
    padding: 40px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.hero-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    min-width: 220px;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px !important;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn-primary:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(27,43,72,0.3);
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s;
}

.feature-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--navy);
}

.feature-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

/* Hexagonal honeycomb grid */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.hex-card {
    position: relative;
    width: 112px;
    height: 128px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    overflow: hidden;
}

.hex-card-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.hex-card-inner svg {
    width: 100%;
    height: 100%;
}

.hex-card .hex-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28% 16% 20%;
}

.hex-card .product-img {
    font-size: 26px;
    margin-bottom: 4px;
    line-height: 1;
}

.hex-card h3 {
    margin: 0;
    font-size: 11px;
    color: var(--navy);
    text-align: center;
    line-height: 1.2;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

.hex-card:hover .hex-fill {
    fill: var(--navy);
}

.hex-card:hover h3 {
    color: #fff;
}

.hex-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: all 0.25s;
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-img {
    font-size: 40px;
    margin-bottom: 14px;
}

.product-card h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 17px;
}

.product-desc {
    color: var(--text-light);
    font-size: 13px;
    margin: 0 0 14px !important;
}

.product-card ul {
    list-style: none;
    padding: 0;
}

.product-card li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0 4px 18px;
    position: relative;
}

.product-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
}

/* ===== Workflow ===== */
.workflow {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: auto;
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #FFB800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 8px;
}

.workflow-arrow {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
    align-self: center;
}

.workflow-step h3 {
    font-size: 14px;
    margin: 0;
    color: var(--navy);
    display: inline;
    vertical-align: middle;
}

.workflow-step p {
    display: none;
}

/* ===== Topology Diagram ===== */
.topology-container {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 67px 32px 47px;
    margin: 24px 0;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
}

.topology-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

/* Default: vertical layout */
.topology-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Horizontal (left-to-right) layout */
.topology-diagram.topology-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-left: 47px;
    min-width: max-content;
}

.topo-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topo-stage-label {
    order: 99;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--navy);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 3px 14px;
    white-space: nowrap;
}

.topo-stage-nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.topo-stage-gateway {
    padding-top: 8px;
    margin-left: -10px;
}

/* Arrow connector between stages - always centers vertically */
.topo-arrow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    min-width: 90px;
    flex-shrink: 0;
    position: relative;
}

.topo-arrow-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    position: relative;
}

/* Integrated arrowhead via CSS triangle */
.topo-arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--gold);
}

.topo-arrow-head {
    display: none;
}

.topo-arrow-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    margin-top: 8px;
    text-align: center;
}

.topo-arrow-sub {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.topo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topo-node {
    background: var(--bg-sidebar);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    min-width: 90px;
    transition: all 0.2s;
}

.topo-node.topo-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.topo-node.topo-img-circle {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topo-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.topo-node.topo-img-node {
    width: 120px;
    min-width: 120px;
    padding: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.topo-arrow-backhaul {
    margin-left: -3px;
}

.topo-arrow-lora {
    margin-left: -10px;
}

.topo-banner-img {
    width: 300px;
    height: auto;
    display: block;
    margin-left: 8px;
}

.topo-node:hover {
    border-color: var(--gold);
    box-shadow: var(--card-shadow);
}

.topo-node .topo-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.topo-node .topo-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
}

.topo-node .topo-desc {
    font-size: 9px;
    color: var(--text-muted);
}

.topo-node.highlight {
    border-color: var(--border);
    background: #fff;
    border-radius: 12px;
}

.topo-arrow {
    font-size: 20px;
    color: var(--gold);
    font-weight: 700;
}

.topo-arrow-down {
    font-size: 20px;
    color: var(--gold);
    font-weight: 700;
    transform: rotate(90deg);
}

.topo-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 20px;
}

.topo-branch {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topo-branch-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
}

/* ===== Compatibility Table ===== */
.compat-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 24px 0;
}

.compat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.compat-header .brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.compat-placeholder {
    background: repeating-linear-gradient(
        45deg,
        var(--bg-sidebar),
        var(--bg-sidebar) 10px,
        var(--bg-white) 10px,
        var(--bg-white) 20px
    );
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.compat-placeholder .placeholder-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* ===== Download Section ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.download-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.download-card:hover {
    border-color: var(--gold);
    box-shadow: var(--card-shadow);
}

.download-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.download-info h4 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
}

.download-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.download-arrow {
    margin-left: auto;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list {
    margin: 24px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-white);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    user-select: none;
}

.faq-question .q-badge {
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.faq-toggle {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ===== Steps ===== */
.steps {
    margin: 24px 0;
}

/* Sub-section numbered titles (under Sensor Product Knowledge) */
.sub-section-title {
    font-size: 18px !important;
    border-bottom: 1px solid var(--border) !important;
    margin-top: 32px !important;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #FFB800;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 10px;
    line-height: 1;
    text-align: center;
    padding: 0;
}

.step {
    background: var(--bg-white);
    border-left: 4px solid var(--gold);
    padding: 18px 22px;
    margin-bottom: 12px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--card-shadow);
}

.step h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--navy);
}

.step p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-light);
}

/* ===== Network Tabs ===== */
.net-tabs {
    display: flex;
    gap: 8px;
    margin: 24px 0 16px;
}

.net-tab {
    padding: 10px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-white);
    color: var(--text);
    transition: all 0.2s;
}

.net-tab.active {
    border-color: var(--gold);
    background: #fff;
    color: var(--navy);
}

.net-tab:hover:not(.active) {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.net-panel {
    display: none;
}

.net-panel.active {
    display: block;
}

/* ===== Footer ===== */
.footer {
    margin-top: 60px;
    padding: 28px 0;
    border-top: 2px solid var(--gold);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

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

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin-top: 24px;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(234,169,36,0.15);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    margin-top: 4px;
    padding: 12px 36px;
    font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .content { padding: 24px 18px; }
    .feature-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow { flex-direction: column; }
    .workflow-arrow { display: none; }
    .nav-links { display: none; }
    .topo-branch { flex-direction: column; gap: 12px; }
    .topo-divider { display: none; }
    .net-tabs { flex-direction: column; }
    .hero-cta { flex-direction: column; }
}

/* ============================================ */
/* Floating Contact Button & Modal             */
/* ============================================ */
.contact-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(234,169,36,0.4);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(234,169,36,0.5);
}

/* Header badge link */
.nav-badge {
    background: transparent !important;
    color: #fff !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    border: 3px double #EAA924 !important;
    font-weight: 800 !important;
    font-style: italic !important;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1.6;
    box-shadow: 4px 4px 0 #EAA924 !important;
    margin-left: auto;
}
.nav-badge:hover {
    background: rgba(234,169,36,0.1) !important;
    color: #fff !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #EAA924 !important;
}

.contact-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,26,46,0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 12px 48px rgba(27,43,72,0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}
.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.contact-modal-header h2 {
    font-size: 20px;
    margin: 0;
}
.contact-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}
.contact-modal-close:hover {
    background: var(--border-light);
    color: var(--text);
}

.contact-modal-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .contact-modal { padding: 20px; width: 95%; }
    .contact-fab { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 18px; }
}
