/* ==========================================================================
   SaaS.my - Infinite Logix Core Stylesheet
   Modern Polish Edition (SEO, AEO & High-UX Design)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
  -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --brand-green: #10b981;
    --brand-green-hover: #059669;
    --brand-green-dark: #047857;
    --brand-green-light: #f0fdf4;
    --brand-green-surface: #ecfdf5;
    --brand-green-border: #a7f3d0;

    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-blue-dark: #1e40af;
    --brand-blue-light: #eff6ff;

    --hs-navy: #0f172a;
    --hs-navy-dark: #020617;
    --hs-slate: #1e293b;
    --hs-body: #334155;

    --bg-canvas: #f8fafc;
    --bg-card: #ffffff;
    --bg-secondary: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 32px -8px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-emerald: 0 20px 40px -10px rgba(16, 185, 129, 0.18);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
  -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    font-size: 16px;
    color-scheme: light;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--hs-navy);
    letter-spacing: -0.025em;
    font-weight: 700;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-blue-hover);
}

/* Reusable Utility Links */
.link-emerald {
    color: var(--brand-green-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.link-emerald:hover {
    color: var(--brand-green-hover);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--brand-green-dark);
    color: #ffffff;
    padding: 12px 20px;
    z-index: 9999;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* --------------------------------------------------------------------------
   3. Header Navigation (Glassmorphic)
  -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.site-header.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-brand img {
    width: 32px;
    height: auto;
    display: block;
}

.logo-text-green {
    color: var(--hs-navy);
}

.logo-dot {
    color: var(--brand-green);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--hs-navy);
    background: rgba(241, 245, 249, 0.8);
}

.nav-link.active {
    color: var(--brand-green-dark);
    background: var(--brand-green-light);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    color: var(--hs-navy);
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   4. Hero Section & BLUF Knowledge Box
  -------------------------------------------------------------------------- */
.hero-section {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.96) 100%),
        url('image/hero-building.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-green-light);
    border: 1px solid var(--brand-green-border);
    color: var(--brand-green-dark);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Sleek & Compact BLUF Answer Box (AEO Knowledge Container) */
.bluf-answer-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--brand-green);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin: 24px auto 32px;
    max-width: 760px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bluf-answer-box h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hs-navy);
    margin: 0;
    line-height: 1.3;
}

.bluf-subheading {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--hs-navy);
    margin-top: 10px;
    margin-bottom: 2px;
}

.bluf-answer-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-green-border);
}

.bluf-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-green-dark);
    background: var(--brand-green-light);
    border: 1px solid var(--brand-green-border);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.bluf-text {
    font-size: 0.95rem;
    color: var(--hs-body);
    line-height: 1.6;
}

.bluf-text strong {
    color: var(--hs-navy);
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    margin-top: 56px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-green-dark);
    display: block;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Section Styling & Grid Cards
  -------------------------------------------------------------------------- */
.section {
    padding: 88px 0;
}

.section-alt {
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}

.section-header h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* HowTo Guide Section Polish */
.overview-howto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 36px;
    margin: 0 auto 64px;
    max-width: 860px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.overview-howto-card h2 {
    font-size: 1.4rem;
    color: var(--hs-navy);
    margin-bottom: 8px;
}

.howto-intro {
    font-size: 1rem;
    color: var(--hs-body);
    margin-bottom: 20px;
}

.howto-steps-list {
    list-style: none;
    counter-reset: step-counter;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.howto-step-item {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-card);
    padding: 22px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--hs-body);
    line-height: 1.65;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.howto-step-item:hover {
    border-color: var(--brand-green-border);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.howto-step-item::before {
    content: counter(step-counter, decimal-leading-zero);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--brand-green-dark);
    background: var(--brand-green-light);
    border: 1px solid var(--brand-green-border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    line-height: 1;
}

/* Entity Definitions Section Polish */
.def-list-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 32px 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.def-term {
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--hs-navy);
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.def-term:first-of-type {
    margin-top: 0;
}

.def-term::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--brand-green);
    border-radius: var(--radius-pill);
}

.def-desc {
    color: var(--text-muted);
    margin: 6px 0 20px 14px;
    line-height: 1.65;
    font-size: 0.98rem;
}

.def-desc:last-of-type {
    margin-bottom: 0;
}

/* Products Grid Catalog */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-emerald);
}

.product-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--hs-navy);
}

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.card-action-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-green-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--brand-green-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-green-border);
    transition: var(--transition);
    width: fit-content;
}

.card-action-link:hover {
    background: var(--brand-green-dark);
    color: #ffffff;
    border-color: var(--brand-green-dark);
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Structured Data Tables & Overview Feature Showcase (HubSpot Style)
  -------------------------------------------------------------------------- */
.overview-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 72px;
}

.overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.overview-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: #ffffff;
    transition: var(--transition);
}

.overview-media:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-emerald);
    border-color: var(--brand-green-border);
}

.overview-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.overview-media:hover img {
    transform: scale(1.02);
}

.overview-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-green-surface);
    color: var(--brand-green-dark);
    border: 1px solid var(--brand-green-border);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.overview-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--hs-navy);
    margin-bottom: 16px;
}

.overview-content p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.overview-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overview-highlights li {
    font-size: 0.95rem;
    color: var(--hs-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-highlights li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--brand-green-light);
    border: 1px solid var(--brand-green-border);
    color: var(--brand-green-dark);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.comparison-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 960px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--hs-navy);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--hs-body);
    vertical-align: middle;
    font-size: 0.96rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(16, 185, 129, 0.04);
}

.table-link {
    color: var(--brand-green-dark);
    font-weight: 700;
    text-decoration: underline;
}

.table-link:hover {
    color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   7. FAQ Accordion (<details> Tag Styling)
  -------------------------------------------------------------------------- */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

details.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 26px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

details.faq-item[open] {
    border-color: var(--brand-green-border);
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

summary.faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hs-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    -webkit-user-select: none;
    user-select: none;
}

summary.faq-question h3 {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    display: inline;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--brand-green-dark);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

details.faq-item[open] summary.faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Buttons
  -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--brand-green-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--hs-navy);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--hs-navy);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   9. Footer & Forms
  -------------------------------------------------------------------------- */
.site-footer {
    background: var(--hs-navy);
    color: #ffffff;
    padding-top: 88px;
}

.site-footer h2, 
.site-footer h4 {
    color: #ffffff;
}

.site-footer p {
    color: #94a3b8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: flex-start;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item address {
    font-style: normal;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info-item a {
    color: #cbd5e1;
    text-decoration: underline;
}

.contact-info-item a:hover {
    color: var(--brand-green);
}

.contact-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.contact-card h2,
.contact-card h3,
.contact-card h4 {
    color: #ffffff;
}

.contact-card .form-group label {
    color: #cbd5e1; 
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #64748b;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.footer-bottom {
    margin-top: 72px;
    padding: 28px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}

.footer-links-row {
    margin-bottom: 12px;
}

.footer-link {
    color: #cbd5e1;
    margin: 0 8px;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   10. Responsiveness
  -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .overview-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .overview-row.reverse .overview-media {
        order: -1;
    }
    .overview-showcase {
        gap: 56px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 130px 0 60px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
        gap: 12px;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 10px 16px;
    }
    .stats-banner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stat-item::after {
        display: none !important;
    }
    .bluf-answer-box {
        padding: 24px 20px;
    }
    .def-list-card {
        padding: 24px 20px;
    }
    .contact-card {
        padding: 24px 20px;
    }
}

:root {
  --gap: 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.card {
  flex: 0 0 calc((100% - (2 * var(--gap))) / 3);
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 768px) {
  .card {
    flex: 0 0 calc((100% - (1 * var(--gap))) / 2);
  }
}

@media (max-width: 480px) {
  .card {
    flex: 0 0 100%;
  }
}

.custom-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.custom-carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-md);
}

.custom-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-carousel-slide {
    min-width: calc(33.333% - 16px);
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--hs-navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--brand-green);
    color: #ffffff;
    border-color: var(--brand-green);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 992px) {
    .custom-carousel-slide {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .custom-carousel-slide {
        min-width: 100%;
    }
    .custom-carousel-wrapper {
        padding: 0 30px;
    }
}