/* =========================================
   GridBrain - Light Corporate Theme Base
   ========================================= */
* {
    /* box-sizing: border-box; */
    margin: 0;
    padding: 0;
}

:root {
    --gb-bg: #ffffff;
    --gb-bg-2: #f5f7fa;
    --gb-card: #ffffff;
    --gb-text: #2b2f3a;
    --gb-muted: #6b7280;
    --gb-border: rgba(0, 0, 0, 0.08);
    --gb-accent: #1e88e5;
    /* Primary Blue */
    --gb-accent-light: rgba(30, 136, 229, 0.1);
    --gb-radius: 12px;
    --gb-shadow: 0 8px 24px rgba(149, 157, 165, 0.15);
    --gb-shadow-hover: 0 15px 35px rgba(149, 157, 165, 0.25);
}

html {
    scroll-behavior: smooth;

}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(1200px 700px at 15% 10%, rgba(30, 136, 229, 0.04), transparent 60%),
        linear-gradient(180deg, var(--gb-bg), var(--gb-bg-2));
    color: var(--gb-text);

    /* 👇 Global fix for horizontal scroll jumping 👇 */
    /* overflow-x: hidden; */
    width: 100%;
    position: relative;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1565c0;
}

/* =========================================
   Typography & Sections
   ========================================= */
section {
    padding: 4rem 0;
}

.deep-dive,
.spec-section {
    padding: 3rem 0 !important;
    background: #ffffff;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
}

.section-sub {
    color: var(--gb-muted);
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-title {
    font-weight: 700;
    margin: 0.5rem 0;
    color: #111827;
    font-size: 1.2rem;
}

.muted {
    color: var(--gb-muted);
}

.small-note {
    color: var(--gb-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hr-soft {
    border-color: rgba(0, 0, 0, 0.1);
}

/* =========================================
   Buttons
   ========================================= */
.btn-gb {
    background-color: var(--gb-accent);
    color: #fff;
    border: none;
    box-shadow: 0 8px 16px rgba(30, 136, 229, 0.2);
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gb:hover {
    background-color: #1565c0;
    color: #fff;
    transform: translateY(-2px);
}

.btn-gb-outline {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--gb-text);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-gb-outline:hover {
    border-color: var(--gb-accent);
    background: var(--gb-accent-light);
    color: var(--gb-accent);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 6.5rem;
    position: relative;
}

.hero .badge {
    background: var(--gb-accent-light);
    color: var(--gb-accent);
    border: 1px solid rgba(30, 136, 229, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #111827;
}

.hero .lead {
    color: var(--gb-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   Components (Cards, KPIs, Chips)
   ========================================= */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder img {
    width: 100%;
    height: auto;
    max-width: 420px;
    /* mobile */
}

@media (min-width: 768px) {
    .img-placeholder img {
        max-width: 600px;
        /* tablet */
    }
}

@media (min-width: 1200px) {
    .img-placeholder img {
        max-width: 750px;
        /* desktop */
    }
}

.kpi {
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.kpi .v {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gb-accent);
}

.kpi .l {
    color: var(--gb-text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
}

.card-gb {
    background: var(--gb-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.card-gb:hover {
    transform: translateY(-8px);
    box-shadow: var(--gb-shadow-hover);
    border-color: rgba(30, 136, 229, 0.3);
}

.card-gb .card-body {
    padding: 1.8rem;
}

.icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gb-accent-light);
    color: var(--gb-accent);
    margin-bottom: 1rem;
}

.icon-chip svg {
    width: 24px;
    height: 24px;
    stroke: var(--gb-accent);
    stroke-width: 2;
}

/* =========================================
   Architecture / Layer Blocks
   ========================================= */
.arch {
    border-radius: var(--gb-radius);
    border: 1px solid var(--gb-border);
    background: #ffffff;
    padding: 2rem;
    box-shadow: var(--gb-shadow);
}

.layer {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gb-border);
    background: #f8fafc;
    transition: background 0.3s ease;
}

.layer:hover {
    background: #f1f5f9;
}

.layer .n {
    font-weight: 800;
    color: var(--gb-accent);
    margin-bottom: 5px;
}

.layer .d {
    color: var(--gb-text);
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================
   PRO Core Engine Architecture Cards
   ========================================= */
.core-card-pro {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.core-card-pro::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--gb-accent-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.core-card-pro:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 136, 229, 0.2);
    box-shadow: 0 30px 60px rgba(30, 136, 229, 0.08);
}

.core-card-pro:hover::after {
    opacity: 1;
    transform: scale(2.5);
}

.core-icon-pro {
    width: 72px;
    height: 72px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gb-accent);
    margin: 0 auto 2rem auto;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.core-card-pro:hover .core-icon-pro {
    background: var(--gb-accent);
    color: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 15px 25px var(--gb-accent-light);
    border-color: transparent;
}

.core-layer-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    transition: all 0.3s ease;
}

.core-card-pro:hover .core-layer-tag {
    background: var(--gb-accent-light);
    color: var(--gb-accent);
}

/* Technical Blueprint Grid Pattern */
.bg-grid-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 25px 25px;
}
