/* =============================================
   ACTUATORS — DESIGN SYSTEM
   ============================================= */

:root {
    --bg:           #0B1A2A;
    --bg-alt:       #0d1f33;
    --cyan:         #00B7C2;
    --orange:       #FF6A2A;
    --white:        #FFFFFF;
    --muted:        rgba(255, 255, 255, 0.55);
    --dim:          rgba(255, 255, 255, 0.08);
    --grid-line:    rgba(0, 183, 194, 0.08);
    --border:       rgba(0, 183, 194, 0.2);

    /* Legacy variables kept for dashboard components */
    --bg-color:         #0B1A2A;
    --cyan-primary:     #00B7C2;
    --orange-accent:    #FF6A2A;
    --text-primary:     #FFFFFF;
    --text-secondary:   rgba(255, 255, 255, 0.55);
    --block-bg:         rgba(255, 255, 255, 0.05);

    --font-main:   'Inter', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', monospace;
    --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
    --snap: 0.3s cubic-bezier(1, 0, 0, 1);
}

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

html { scroll-behavior: smooth; font-size: 20px; /* 16px × 1.25 — scales all rem values +25% */ }

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =============================================
   GRID OVERLAY
   ============================================= */

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* =============================================
   HEADER
   ============================================= */

#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    border-bottom: 1px solid rgba(0, 183, 194, 0.15);
    background: rgba(11, 26, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.4s;
}

#site-header.scrolled {
    border-bottom-color: var(--cyan);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

/* Icon mark */
.logo-icon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.logo-icon-wrap .li-default,
.logo-icon-wrap .li-hover {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s cubic-bezier(1, 0, 0, 1);
}

.logo-icon-wrap .li-hover { opacity: 0; }

.logo-container:hover .logo-icon-wrap .li-default { opacity: 0; }
.logo-container:hover .logo-icon-wrap .li-hover   { opacity: 1; }

/* Wordmark — viewBox cropped to "40 100 920 145", so at height:33 → width:210 */
.logo-wordmark-wrap {
    position: relative;
    width: 210px;
    height: 33px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-wordmark-wrap .lw-default,
.logo-wordmark-wrap .lw-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s cubic-bezier(1, 0, 0, 1);
}

.logo-wordmark-wrap .lw-hover { opacity: 0; }

.logo-container:hover .logo-wordmark-wrap .lw-default { opacity: 0; }
.logo-container:hover .logo-wordmark-wrap .lw-hover   { opacity: 1; }

.nav-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.main-nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    transition: color var(--snap);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width var(--snap);
}

.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }

.btn-header-cta {
    background: var(--orange);
    color: #fff;
    padding: 9px 18px;
    font-size: 0.68rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: background var(--snap), transform var(--snap);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header-cta:hover {
    background: #ff8552;
    transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    padding: 5px 10px;
    transition: border-color var(--snap);
}

.lang-toggle:hover {
    border-color: var(--cyan);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0 3px;
    transition: color var(--snap);
    line-height: 1;
}

.lang-btn.active { color: var(--cyan); }
.lang-btn:hover:not(.active) { color: var(--white); }

.lang-sep {
    color: var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    pointer-events: none;
    user-select: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--cyan);
}

/* =============================================
   HERO
   ============================================= */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 68px;
}

#hero-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px 40px;
    width: 100%;
}

.hero-tag {
    font-size: 0.68rem;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.3s;
}

.hero-title {
    font-size: clamp(4.5rem, 11vw, 11rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.55s;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--muted);
    max-width: 560px;
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.72s;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.9s;
}

.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 13px 26px;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: background var(--snap), transform var(--snap);
}

.btn-primary:hover {
    background: #ff8552;
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--cyan);
    padding: 13px 26px;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all var(--snap);
}

.btn-ghost:hover {
    background: rgba(0, 183, 194, 0.07);
    border-color: var(--cyan);
}

/* Hero stats bar */
.hero-stats {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 40px 60px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 183, 194, 0.15);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 1.05s;
}

.stat-block {
    flex: 1;
    padding: 0 36px;
}

.stat-block:first-child { padding-left: 0; }

.stat-num {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-unit {
    font-size: 0.5em;
    color: var(--orange);
}

.stat-label {
    font-size: 0.58rem;
    color: var(--muted);
    line-height: 1.6;
}

.stat-sep {
    width: 1px;
    height: 48px;
    background: rgba(0, 183, 194, 0.15);
    flex-shrink: 0;
}

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

/* =============================================
   SHARED SECTION STYLES
   ============================================= */

.section {
    padding: 120px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.22) 100%);
}

.section-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-tag {
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.75;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.04;
    margin-bottom: 20px;
}

.section-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--muted);
    max-width: 680px;
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 60px;
}

.text-cyan   { color: var(--cyan); }
.text-orange { color: var(--orange); }

/* Scroll reveal */
.sr {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   PROBLEM SECTION
   ============================================= */

.problem-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    margin-bottom: 56px;
    background: rgba(0, 183, 194, 0.12);
    border: 1px solid var(--border);
}

.pm-block {
    background: var(--bg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.pm-block:hover {
    background: rgba(0, 183, 194, 0.03);
}

.pm-block::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: rgba(0, 183, 194, 0.25);
}

.pm-large::after  { background: var(--cyan); }
.pm-accent::after { background: var(--orange); }

.pm-label {
    font-size: 0.62rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.pm-value {
    font-family: var(--font-mono);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 10px;
}

.pm-large .pm-value {
    font-size: clamp(4rem, 8vw, 8rem);
}

.pm-accent .pm-value {
    color: var(--orange);
}

.pm-value span { font-size: 0.48em; opacity: 0.7; }

.pm-source {
    font-size: 0.58rem;
    color: var(--muted);
    opacity: 0.65;
}

/* Failure grid */
.failure-grid {
    border: 1px solid var(--border);
    padding: 40px;
}

.fg-header {
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.fg-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.fg-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fg-num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--cyan);
}

.fg-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 300;
}

/* =============================================
   PRODUCT SECTION
   ============================================= */

.product-layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 56px;
    background: rgba(0, 183, 194, 0.1);
    border: 1px solid var(--border);
}

.layer-card {
    background: var(--bg);
    padding: 40px;
    position: relative;
    transition: background 0.3s;
    overflow: hidden;
}

.layer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(1, 0, 0, 1);
}

.layer-card:hover { background: rgba(0, 183, 194, 0.04); }
.layer-card:hover::before { transform: scaleX(1); }

.lc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lc-num {
    font-size: 0.6rem;
    color: var(--muted);
}

.lc-icon { opacity: 0.9; }

.lc-title {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.lc-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 24px;
}

.lc-tag {
    font-size: 0.58rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 183, 194, 0.25);
    padding: 4px 8px;
    display: inline-block;
}

/* =============================================
   DASHBOARD DEMO EMBED
   ============================================= */

.demo-wrap {
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.demo-topbar {
    background: rgba(0, 183, 194, 0.08);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    color: var(--cyan);
    font-size: 0.65rem;
}

.demo-status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.6rem;
}

.demo-nav-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.dnav-link {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    transition: color var(--snap);
    text-transform: uppercase;
}

.dnav-link:hover { color: var(--cyan); }
.dnav-link.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.demo-view {
    display: none;
    padding: 20px;
}

.demo-view.active { display: block; }

/* Hero visual inside demo */
.hero-visual {
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

#system-visualization {
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#connections-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.center-content {
    text-align: left;
    max-width: 480px;
    z-index: 5;
    background-color: var(--bg-color);
    padding: 32px 36px;
    border: 2px solid var(--cyan-primary);
    position: relative;
    box-shadow: 16px 16px 0 rgba(0, 183, 194, 0.08);
}

.center-content::before {
    content: '[CORE_SYSTEM_01]';
    position: absolute;
    top: -13px; left: 16px;
    background: var(--bg-color);
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.system-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.1;
}

.system-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

/* System logs */
.system-logs-container {
    background: rgba(0, 183, 194, 0.04);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
}

.logs-header {
    background: rgba(0, 183, 194, 0.08);
    padding: 7px 14px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    color: var(--cyan-primary);
    font-size: 0.65rem;
}

#logs-output {
    flex: 1;
    overflow: hidden;
    padding: 8px 14px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.35;
    display: flex;
    flex-direction: column-reverse;
}

.log-entry { opacity: 0.7; margin: 1px 0; }

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.data-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--snap);
    position: relative;
    overflow: hidden;
}

.data-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--cyan-primary);
    transition: height var(--snap);
}

.data-block:hover::before { height: 100%; }
.data-block:hover { border-color: var(--cyan-primary); }
.data-block.double { grid-column: span 2; }

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
}

.block-icon { stroke: var(--cyan-primary); }
.label { font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.value { font-size: 1.4rem; font-family: var(--font-mono); font-weight: 700; color: var(--cyan-primary); }

.progress-container {
    width: 100%; height: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--cyan-primary);
    transition: width 0.5s linear;
}

.topo-visual {
    height: 120px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    overflow: hidden;
}

.node-grid-small { display: flex; gap: 6px; }

.mini-node {
    width: 20px; height: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.mini-node.active {
    border-color: var(--cyan-primary);
    background: rgba(0,183,194,0.18);
}

.btn-action {
    background: var(--orange-accent);
    color: #fff;
    border: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 11px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--snap), transform var(--snap);
    width: 100%;
}

.btn-action:hover { background: #ff8552; transform: translateY(-1px); }
.btn-action:active { transform: translateY(0); }

.block-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 10px;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

/* View header (nodes/logs) */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.view-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.view-actions { display: flex; gap: 12px; }

.btn-outline-cyan {
    background: transparent;
    border: 1px solid var(--cyan-primary);
    color: var(--cyan-primary);
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.68rem;
    transition: background var(--snap);
}

.btn-outline-cyan:hover { background: rgba(0,183,194,0.08); }

.btn-outline-orange {
    background: transparent;
    border: 1px solid var(--orange-accent);
    color: var(--orange-accent);
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.68rem;
    transition: background var(--snap);
}

.btn-outline-orange:hover { background: rgba(255,106,42,0.08); }

.log-search {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 7px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    width: 260px;
    outline: none;
    transition: border-color 0.2s;
}

.log-search:focus { border-color: var(--cyan); }

/* Nodes table */
.nodes-table-container { padding: 0; }

.technical-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.72rem;
}

.technical-table th {
    color: var(--muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--cyan-primary);
    font-size: 0.65rem;
}

.technical-table td { padding: 10px 14px; }

.node-row {
    cursor: pointer;
    transition: background var(--snap);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.node-row:hover { background: rgba(0,183,194,0.04); }
.node-row:hover td:first-child { color: var(--cyan-primary); font-weight: 700; }

.status-tag {
    display: inline-block;
    padding: 3px 7px;
    font-size: 0.58rem;
    font-weight: 700;
}

.status-tag.online  { color: var(--cyan-primary);   border: 1px solid var(--cyan-primary); }
.status-tag.offline { color: var(--muted);           border: 1px solid var(--muted); }
.status-tag.warning { color: var(--orange-accent);   border: 1px solid var(--orange-accent); }

/* Full logs */
.full-logs-container {
    padding: 16px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    height: 320px;
    overflow-y: auto;
    font-size: 0.65rem;
    line-height: 1.5;
}

.full-logs-container::-webkit-scrollbar { width: 4px; }
.full-logs-container::-webkit-scrollbar-thumb { background: var(--cyan); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,26,42,0.92);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-color);
    border: 2px solid var(--cyan-primary);
    width: 380px;
    padding: 24px;
    box-shadow: 18px 18px 0 rgba(0,183,194,0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--cyan-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    color: var(--cyan-primary);
    font-weight: 700;
    font-size: 0.75rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.72rem;
}

.detail-row span:first-child { color: var(--muted); }

.visual-placeholder {
    margin: 16px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 8px;
}

.modal-footer { padding-top: 16px; }

/* Status dot */
.status-dot {
    width: 7px; height: 7px;
    background: var(--cyan);
    border-radius: 0;
    animation: blink 1.2s infinite linear;
    display: inline-block;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* =============================================
   IMPACT / 5Rs SECTION
   ============================================= */

.rs-table {
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 56px;
}

.rs-thead {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    background: rgba(0,183,194,0.06);
    border-bottom: 1px solid var(--border);
    font-size: 0.62rem;
    color: var(--muted);
}

.rs-thead > div {
    padding: 14px 24px;
    border-right: 1px solid rgba(0,183,194,0.08);
}

.rs-thead > div:last-child { border-right: none; }

.rs-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    border-bottom: 1px solid rgba(0,183,194,0.08);
    transition: background 0.25s;
}

.rs-row:last-child { border-bottom: none; }
.rs-row:hover { background: rgba(0,183,194,0.03); }

.rs-dim {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0,0,0,0.12);
    border-right: 1px solid rgba(0,183,194,0.08);
}

.rs-label {
    font-size: 0.6rem;
    color: var(--cyan);
}

.rs-before {
    padding: 24px;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    border-right: 1px solid rgba(0,183,194,0.08);
    font-weight: 300;
}

.rs-after {
    padding: 24px;
    font-size: 0.875rem;
    color: var(--white);
    line-height: 1.55;
    font-weight: 400;
}

.rs-after-highlight { color: var(--cyan); }

.rs-row-final .rs-before { color: rgba(255,255,255,0.35); }

.impact-quote {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.iq-line {
    width: 4px;
    min-height: 100%;
    background: var(--cyan);
    flex-shrink: 0;
    align-self: stretch;
}

.impact-quote blockquote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
    max-width: 800px;
}

/* =============================================
   TRACTION SECTION
   ============================================= */

.traction-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(0,183,194,0.1);
    border: 1px solid var(--border);
    margin-bottom: 48px;
}

.ts-block {
    background: var(--bg);
    padding: 48px 40px;
    transition: background 0.3s;
}

.ts-block:hover { background: rgba(0,183,194,0.03); }
.ts-featured { background: rgba(0,183,194,0.04); }

.ts-num {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 14px;
}

.ts-num span { font-size: 0.48em; color: var(--orange); }

.ts-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.ts-desc {
    font-size: 0.62rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Milestones */
.milestones {
    border: 1px solid var(--border);
    padding: 40px;
}

.ml-header {
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.ml-list {
    display: flex;
    flex-direction: column;
}

.ml-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ml-item:last-child { border-bottom: none; }

.ml-dot {
    width: 9px; height: 9px;
    background: var(--cyan);
    flex-shrink: 0;
    margin-top: 5px;
}

.ml-dot-next {
    background: transparent;
    border: 1px solid var(--orange);
    opacity: 0.6;
}

.ml-body {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
}

.ml-tag {
    font-size: 0.58rem;
    color: var(--cyan);
    border: 1px solid rgba(0,183,194,0.3);
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ml-tag-next {
    color: var(--orange);
    border-color: rgba(255,106,42,0.3);
}

.ml-text {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 300;
}

.ml-done .ml-text { color: rgba(255,255,255,0.7); }

/* =============================================
   TEAM SECTION
   ============================================= */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.team-card {
    border: 1px solid var(--border);
    padding: 36px;
    position: relative;
    transition: border-color 0.3s;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.team-card:hover { border-color: var(--cyan); }

.tc-meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.tc-avatar {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.tc-avatar-cyan   { background: rgba(0,183,194,0.1); border: 1px solid var(--cyan); color: var(--cyan); }
.tc-avatar-orange { background: rgba(255,106,42,0.1); border: 1px solid var(--orange); color: var(--orange); }

.tc-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.tc-role { font-size: 0.58rem; color: var(--cyan); }

.tc-bio {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 20px;
}

.tc-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tc-tag {
    font-size: 0.58rem;
    border: 1px solid rgba(0,183,194,0.22);
    color: var(--muted);
    padding: 3px 8px;
}

.team-evidence {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    padding: 28px 32px;
    background: rgba(0,0,0,0.12);
}

.te-bracket {
    font-size: 2.5rem;
    color: var(--cyan);
    opacity: 0.4;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}

.te-text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* =============================================
   BUSINESS MODEL SECTION
   ============================================= */

.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(0,183,194,0.1);
    border: 1px solid var(--border);
    margin-bottom: 48px;
}

.model-card {
    background: var(--bg);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
}

.model-institutional { background: rgba(0,183,194,0.03); }

.mc-layer {
    font-size: 0.6rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.mc-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.mc-users {
    font-size: 0.58rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.mc-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 18px;
    line-height: 1;
}

.model-free .mc-price { color: rgba(255,255,255,0.5); }
.model-institutional .mc-price { color: var(--orange); }

.mc-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.62;
    font-weight: 300;
}

/* Projections */
.projections {
    border: 1px solid var(--border);
    padding: 40px;
}

.proj-header {
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.proj-rows { display: flex; flex-direction: column; gap: 20px; }

.proj-row {
    display: grid;
    grid-template-columns: 90px 1fr 260px;
    align-items: center;
    gap: 20px;
}

.pr-label { font-size: 0.65rem; color: var(--muted); }

.pr-track {
    height: 3px;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.pr-bar {
    height: 100%;
    background: var(--cyan);
    transition: width 1.2s ease;
}

.pr-bar-highlight { background: var(--orange); }

.pr-data { font-size: 0.62rem; color: var(--muted); text-align: right; }

/* =============================================
   CTA SECTION
   ============================================= */

.cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-title { max-width: 900px; }
.cta-sub   { text-align: center; }

.cta-box {
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border);
    padding: 36px;
    margin-bottom: 28px;
    text-align: left;
}

.cta-box-tag {
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,183,194,0.18);
    color: var(--white);
    padding: 12px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--cyan); }

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300B7C2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option { background: var(--bg); }

.form-submit { margin-top: 4px; }

.form-success {
    display: none;
    color: var(--cyan);
    font-size: 0.65rem;
    padding: 12px;
    border: 1px solid rgba(0,183,194,0.3);
    background: rgba(0,183,194,0.05);
    margin-top: 8px;
    text-align: center;
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    color: var(--muted);
    flex-wrap: wrap;
    justify-content: center;
}

.cta-contact a {
    color: var(--cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

.cta-contact a:hover { opacity: 0.75; }
.cc-sep { opacity: 0.4; }

/* =============================================
   FOOTER
   ============================================= */

#site-footer {
    border-top: 1px solid rgba(0,183,194,0.2);
    padding: 36px 40px;
    background: rgba(0,0,0,0.2);
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--white);
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.6rem;
    color: var(--muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .fg-items { grid-template-columns: repeat(2, 1fr); }
    .problem-mosaic { grid-template-columns: 1fr 1fr; }
    .pm-large { grid-column: span 2; }
    .rs-thead { display: none; }
    .rs-row { grid-template-columns: 140px 1fr; }
    .rs-after { display: none; }
    .proj-row { grid-template-columns: 80px 1fr; }
    .pr-data { display: none; }
}

@media (max-width: 900px) {
    .hero-stats { flex-wrap: wrap; gap: 28px; padding: 28px 40px 50px; }
    .stat-sep   { display: none; }
    .stat-block { flex: 1 1 42%; padding: 0; }

    .product-layers { grid-template-columns: 1fr; }
    .traction-stats { grid-template-columns: 1fr; }
    .team-grid      { grid-template-columns: 1fr; }
    .model-grid     { grid-template-columns: 1fr; }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .data-block.double { grid-column: span 2; }

    .rs-row { grid-template-columns: 1fr; }
    .rs-dim { border-right: none; flex-direction: row; align-items: center; }

    .section { padding: 80px 0; }
    .section-inner { padding: 0 24px; }
}

@media (max-width: 640px) {
    .header-inner { padding: 0 20px; }
    .main-nav     { display: none; }
    .hamburger    { display: flex; }
    .btn-header-cta { display: none; }

    .hero-content { padding: 60px 20px 20px; }
    .hero-stats   { padding: 28px 20px 40px; }
    .stat-block   { flex: 1 1 100%; }

    .problem-mosaic { grid-template-columns: 1fr; }
    .pm-large { grid-column: span 1; }

    .fg-items   { grid-template-columns: 1fr; gap: 28px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .data-block.double { grid-column: span 1; }

    .section-inner { padding: 0 20px; }
    .failure-grid  { padding: 24px 20px; }
    .milestones    { padding: 24px 20px; }
    .projections   { padding: 24px 20px; }
    .cta-box       { padding: 24px 20px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-nav   { flex-wrap: wrap; gap: 16px; }
    .lang-toggle  { display: none; }
}

/* =============================================
   RTL OVERRIDES (Arabic mode)
   ============================================= */

[dir="rtl"] body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-tag {
    text-align: right;
}

[dir="rtl"] .hero-actions {
    justify-content: flex-end;
}

[dir="rtl"] .hero-sub {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-sub,
[dir="rtl"] .section-tag {
    text-align: right;
}

[dir="rtl"] .stat-label {
    text-align: center;
}

[dir="rtl"] .pm-block {
    text-align: right;
}

[dir="rtl"] .lc-title,
[dir="rtl"] .lc-desc,
[dir="rtl"] .lc-tag {
    text-align: right;
}

[dir="rtl"] .rs-dim {
    flex-direction: row-reverse;
}

[dir="rtl"] .rs-label {
    text-align: right;
}

[dir="rtl"] .ml-body {
    text-align: right;
}

[dir="rtl"] .tc-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .tc-bio,
[dir="rtl"] .tc-tags {
    text-align: right;
}

[dir="rtl"] .mc-title,
[dir="rtl"] .mc-desc {
    text-align: right;
}

[dir="rtl"] .te-text {
    text-align: right;
}

[dir="rtl"] .cta-center {
    text-align: right;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-nav {
    flex-direction: row-reverse;
}

/* =============================================
   ECOSYSTEM SECTION
   ============================================= */

.ecosystem-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.es-sep { opacity: 0.35; }

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
    background: rgba(0, 183, 194, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 40px;
    min-height: 80px;
}

.company-card {
    background: var(--bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background var(--snap);
    position: relative;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--border);
    transition: background 0.3s;
}

.company-card:hover { background: rgba(0, 183, 194, 0.03); }
.company-card:hover::after { background: var(--cyan); }

.cc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.company-logo {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo-img { width: 100%; height: 100%; object-fit: contain; }

.company-logo-initials {
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}

.cc-stage-badge {
    font-size: 0.55rem;
    padding: 3px 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.08em;
}

.cc-stage-badge.mvp    { border-color: var(--cyan); color: var(--cyan); }
.cc-stage-badge.growth { border-color: var(--orange); color: var(--orange); }
.cc-stage-badge.scale  { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }

.cc-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-main);
}

.cc-sector {
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.08em;
}

.cc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.cc-visit {
    font-size: 0.65rem;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: opacity var(--snap);
}

.cc-visit:hover { opacity: 0.7; }

.cc-visit-disabled {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.cc-location {
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.eco-empty {
    grid-column: 1 / -1;
    padding: 48px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.ecosystem-cta {
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .company-grid { grid-template-columns: 1fr; }
    .ecosystem-stats { flex-wrap: wrap; gap: 10px; }
}
