/* ============================================
   EntityLink — Mini Site Styles
   Apple-inspired, professional, animated
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
button, [type="button"] { cursor: pointer; border: none; background: none; font: inherit; touch-action: manipulation; }

:root {
    --primary: #E8612D;
    --primary-dark: #c94f1f;
    --primary-light: #ff7a45;
    --dark: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;
    --na-color: #3b82f6;
    --emea-color: #8b5cf6;
    --apac-color: #06b6d4;
    --cala-color: #f59e0b;
    --israel-color: #10b981;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-he: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 32px 80px rgba(0,0,0,0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-en);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] body { font-family: var(--font-he); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
}

.nav.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.footer-logo-img {
    height: 28px;
    filter: brightness(0) invert(1);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
    transition: all var(--transition);
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(232,97,45,0.05);
}

.nav-cta {
    padding: 10px 22px;
    background: var(--dark);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,97,45,0.3);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(232,97,45,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line { display: block; }

.title-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(232,97,45,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,97,45,0.35);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-lg { padding: 18px 42px; font-size: 1.1rem; }

/* Active states for touch feedback */
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(232,97,45,0.25); }
.btn-secondary:active { transform: translateY(0); background: var(--gray-200); }
.btn-ghost:active { background: rgba(255,255,255,0.15); }
.feature-card:active { transform: translateY(-2px); }
.org-node:active { transform: translateY(-1px); }

/* Focus-visible for keyboard navigation */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

/* --- Hero Visual (App Preview) --- */
.hero-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 60px auto 0;
    perspective: 1000px;
}

.hero-screen {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    transform: rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-screen:hover { transform: rotateX(0deg); }

.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.screen-dots { display: flex; gap: 6px; }
.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.screen-dots span:nth-child(1) { background: #ff5f57; }
.screen-dots span:nth-child(2) { background: #febc2e; }
.screen-dots span:nth-child(3) { background: #28c840; }

.screen-content {
    display: flex;
    min-height: 280px;
}

.screen-sidebar {
    width: 200px;
    padding: 16px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-item {
    height: 14px;
    border-radius: 6px;
    background: var(--gray-200);
    width: 80%;
    transition: all 0.4s ease;
}
.sb-item.active {
    background: var(--primary);
    opacity: 0.6;
    width: 90%;
}
.sb-item:nth-child(2) { width: 65%; animation: shimmer 3s infinite 0.2s; }
.sb-item:nth-child(3) { width: 75%; animation: shimmer 3s infinite 0.4s; }
.sb-item:nth-child(4) { width: 55%; animation: shimmer 3s infinite 0.6s; }
.sb-item:nth-child(5) { width: 70%; animation: shimmer 3s infinite 0.8s; }

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.screen-main {
    flex: 1;
    padding: 16px;
}

.screen-topbar {
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--gray-100) 30%, var(--gray-200) 50%, var(--gray-100) 70%);
    background-size: 200% 100%;
    animation: loading-bar 2s infinite;
    margin-bottom: 16px;
}

@keyframes loading-bar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton org tree in hero */
.screen-org {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 0 4px; flex: 1;
}

.sorg-level {
    display: flex; justify-content: center; gap: 20px;
}

.sorg-node {
    width: 100px; height: 32px; border-radius: 8px;
    background: var(--gray-200);
    animation: row-appear 0.6s ease both;
}
.sorg-node.root {
    width: 120px; height: 36px;
    background: var(--dark); opacity: 0.15; border-radius: 8px;
}
.sorg-node.small { width: 80px; height: 26px; border-radius: 6px; }
.sorg-node:nth-child(1) { animation-delay: 0s; }
.sorg-node:nth-child(2) { animation-delay: 0.1s; }
.sorg-node:nth-child(3) { animation-delay: 0.2s; }
.sorg-node:nth-child(4) { animation-delay: 0.3s; }
.sorg-node:nth-child(5) { animation-delay: 0.4s; }

/* Connectors */
.sorg-connector {
    display: flex; flex-direction: column; align-items: center;
    height: 28px; position: relative;
}
.sorg-connector .sorg-vline {
    width: 1.5px; height: 100%; background: var(--gray-300);
}
.sorg-connector .sorg-hline {
    position: absolute; top: 50%;
    height: 1.5px; background: var(--gray-300);
    width: 240px; left: 50%; transform: translateX(-50%);
}
.sorg-connector.triple {
    flex-direction: row; justify-content: center;
    gap: 118px; height: 22px;
}
.sorg-connector.triple .sorg-vline {
    width: 1.5px; height: 100%; background: var(--gray-300);
}


@keyframes row-appear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.trust-bar .container { text-align: center; }

.trust-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.trust-regions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.region-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition);
}

.region-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,97,45,0.1);
}

.region-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.region-dot.na { background: var(--na-color); }
.region-dot.emea { background: var(--emea-color); }
.region-dot.apac { background: var(--apac-color); }
.region-dot.cala { background: var(--cala-color); }
.region-dot.israel { background: var(--israel-color); }

/* --- Section Common --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* --- Features --- */
.features {
    padding: 120px 0;
    background: var(--gray-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,97,45,0.08);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Tree Section --- */
.tree-section { padding: 120px 0; background: var(--white); }



/* --- Shared filter elements --- */
.oc-filters-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); margin-right: 4px; }
.oc-filter-pill {
    padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 500;
    border: 1px solid var(--gray-300); color: var(--gray-600); cursor: pointer;
    transition: all var(--transition);
}
.oc-filter-pill:hover { border-color: var(--dark); color: var(--dark); }
.oc-filter-pill.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.oc-filter-reset { font-size: 0.8rem; color: var(--primary); cursor: pointer; font-weight: 500; margin-left: 4px; }

/* --- Org Chart — Light Premium --- */
.org-showcase {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

.org-chart { display: none; }
.org-chart.active { display: flex; flex-direction: column; }

.oc-canvas {
    position: relative;
    padding: 56px 24px 48px;
    overflow: hidden;
    flex: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Ambient glow blobs */
.oc-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(90px); opacity: 0.5;
}
.oc-glow-1 { width: 400px; height: 400px; top: -100px; left: 25%; background: rgba(232,97,45,0.1); }
.oc-glow-2 { width: 320px; height: 320px; bottom: -80px; right: 10%; background: rgba(59,130,246,0.08); }
.oc-glow-3 { width: 250px; height: 250px; top: 30%; left: 0%; background: rgba(16,185,129,0.07); }

.org-chart-inner {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}

/* SVG connector lines */
.org-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.org-line {
    stroke: #d1d5db; stroke-width: 1.5; stroke-linecap: round;
}

/* Levels */
.org-level {
    position: relative; z-index: 1;
    display: flex; justify-content: center; flex-wrap: nowrap;
}
.org-level.level-0 { margin-bottom: 40px; }
.org-level.level-1 { gap: 20px; margin-bottom: 52px; }
.org-level.level-2 { gap: 10px; }

/* --- Node cards --- */
.org-node {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0; min-width: 165px; max-width: 200px;
    display: flex; flex-direction: column;
    cursor: pointer; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: node-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.org-node:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(232,97,45,0.2);
    border-color: var(--primary);
}
.org-node.small { min-width: 125px; max-width: 155px; }
.org-node.small .node-name { font-size: 0.78rem; }
.org-node.small .node-meta { font-size: 0.67rem; }
.org-node.small .node-body { padding: 14px 14px; }

/* Top region color bar */
.node-region-bar {
    height: 3px; width: 100%;
    background: var(--primary);
}
.node-region-bar.na { background: var(--na-color); }
.node-region-bar.emea { background: var(--emea-color); }
.node-region-bar.apac { background: var(--apac-color); }
.node-region-bar.cala { background: var(--cala-color); }
.node-region-bar.israel { background: var(--israel-color); }

.node-body {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 18px;
}
.node-icon { color: var(--gray-400); flex-shrink: 0; }
.node-text { flex: 1; min-width: 0; }
.node-name { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); line-height: 1.35; }
.node-meta { display: block; font-size: 0.74rem; color: var(--gray-400); margin-top: 4px; }

/* Region badge — inline inside node-body */
.node-badge {
    flex-shrink: 0; align-self: flex-start; margin-top: 2px;
    font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 6px; white-space: nowrap;
    background: rgba(232,97,45,0.1); color: var(--primary);
}
.na-badge { background: rgba(59,130,246,0.08); color: #3b82f6; }
.emea-badge { background: rgba(168,85,247,0.08); color: #a855f7; }
.israel-badge { background: rgba(16,185,129,0.08); color: #10b981; }
.apac-badge { background: rgba(245,158,11,0.08); color: #f59e0b; }

/* Root node */
.root-node {
    border-color: rgba(232,97,45,0.3);
    background: linear-gradient(135deg, rgba(232,97,45,0.04) 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(232,97,45,0.08), 0 0 0 1px rgba(232,97,45,0.1);
}
.root-node { min-width: 240px; max-width: 260px; }
.root-node .node-region-bar { background: linear-gradient(90deg, var(--primary), #f59e0b); }
.root-node .node-body { padding: 20px 20px; }

@keyframes node-pop {
    from { opacity: 0; transform: scale(0.85) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.level-0 .org-node { animation-delay: 0s; }
.level-1 .org-node:nth-child(1) { animation-delay: 0.15s; }
.level-1 .org-node:nth-child(2) { animation-delay: 0.3s; }
.level-1 .org-node:nth-child(3) { animation-delay: 0.45s; }
.level-1 .org-node:nth-child(4) { animation-delay: 0.6s; }
.level-2 .org-node:nth-child(1) { animation-delay: 0.55s; }
.level-2 .org-node:nth-child(2) { animation-delay: 0.65s; }
.level-2 .org-node:nth-child(3) { animation-delay: 0.75s; }
.level-2 .org-node:nth-child(4) { animation-delay: 0.85s; }
.level-2 .org-node:nth-child(5) { animation-delay: 0.95s; }
.level-2 .org-node:nth-child(6) { animation-delay: 1.05s; }
.level-2 .org-node:nth-child(7) { animation-delay: 1.15s; }

/* Legend bar */
.org-legend {
    display: flex; align-items: center; gap: 16px; padding: 14px 24px;
    background: var(--gray-100); border-top: 1px solid var(--gray-200);
    font-size: 0.78rem; flex-wrap: wrap;
}
.legend-title { font-weight: 600; color: var(--gray-600); }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--gray-500); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.na { background: var(--na-color); }
.legend-dot.emea { background: var(--emea-color); }
.legend-dot.apac { background: var(--apac-color); }
.legend-dot.cala { background: var(--cala-color); }
.legend-dot.israel { background: var(--israel-color); }

/* ============================================
   Document Management Showcase
   ============================================ */
.archive-section { padding: 120px 0; background: var(--gray-100); }

.doc-showcase {
    max-width: 1200px; margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
}

.archive-tree { display: none; flex-direction: column; }
.archive-tree.active { display: flex; }

/* Top bar with filter pills */
.archive-topbar { padding: 12px 24px; border-bottom: 1px solid var(--gray-200); }
.archive-topbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Body: tree panel + detail */
.archive-body { display: flex; }

/* LEFT: Tree panel */
.archive-panel {
    width: 300px; flex-shrink: 0;
    border-right: 1px solid var(--gray-200);
    padding: 14px 16px; background: var(--white);
}
.archive-tree-nav { display: flex; flex-direction: column; }

/* Tree rows */
.at-group { margin-bottom: 2px; }
.at-row {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 6px; cursor: pointer; border-radius: 6px;
    transition: background var(--transition); font-size: 0.84rem; color: var(--dark);
}
.at-row:hover { background: var(--gray-100); }
.at-row[data-level="1"] { padding-left: 32px; }
.at-row .at-name { flex: 1; min-width: 0; }
.at-row .at-name strong { font-weight: 600; }

.at-count {
    margin-left: auto; font-size: 0.72rem; font-weight: 600;
    color: var(--gray-400); background: var(--gray-100);
    padding: 2px 7px; border-radius: 100px;
}

.at-toggle {
    width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); flex-shrink: 0;
    transition: transform 0.2s ease;
}
.at-toggle:not(.collapsed) svg { transform: rotate(90deg); }
.at-folder { flex-shrink: 0; }

/* Children container */
.at-children {
    position: relative;
    padding-left: 10px;
    margin-left: 8px;
    border-left: 1.5px solid var(--gray-200);
}

/* RIGHT: Detail table */
.archive-detail { flex: 1; padding: 0; display: flex; flex-direction: column; }

.archive-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-bottom: 1px solid var(--gray-200);
}
.archive-detail-header h4 { font-size: 0.92rem; font-weight: 700; }

.archive-create-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: var(--primary); color: var(--white);
    border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    transition: all var(--transition);
}
.archive-create-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.archive-create-btn svg { color: var(--white); }

/* Table */
.archive-table { flex: 1; }

.archive-table-head {
    display: grid; grid-template-columns: 100px 1fr 1fr 110px;
    padding: 10px 20px; background: var(--gray-100);
    font-size: 0.75rem; font-weight: 600; color: var(--gray-500); gap: 8px;
    text-transform: uppercase; letter-spacing: 0.03em;
}

.archive-table-row {
    display: grid; grid-template-columns: 100px 1fr 1fr 110px;
    padding: 11px 20px; border-bottom: 1px solid var(--gray-100);
    font-size: 0.82rem; color: var(--gray-600); gap: 8px;
    transition: background var(--transition); align-items: center;
}
.archive-table-row:hover { background: var(--gray-50, #f9fafb); }
.archive-table-row:last-child { border-bottom: none; }

/* Category pills in table */
.cat-pill {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
}
.cat-pill.banking { background: #dbeafe; color: #1d4ed8; }
.cat-pill.financial { background: #ecfdf5; color: #059669; }
.cat-pill.tax { background: #fef3c7; color: #b45309; }
.cat-pill.lawfirm { background: #f3e8ff; color: #7c3aed; }

/* --- Management Section --- */
.management {
    padding: 120px 0;
    background: var(--gray-100);
}

.mgmt-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.mgmt-content .section-title { text-align: left; }
.mgmt-content .section-tag { text-align: left; }

.mgmt-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.mgmt-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mgmt-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,97,45,0.08);
    border-radius: 12px;
}

.mgmt-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mgmt-feature p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* --- Factsheet Preview --- */
.factsheet-preview {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-height: 460px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.factsheet-preview:hover { transform: translateY(-4px) scale(1.01); }

.fp-sidebar {
    width: 200px;
    background: var(--gray-100);
    border-right: 1px solid var(--gray-200);
    padding: 20px 16px;
    flex-shrink: 0;
}

.fp-entity-info { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }

.fp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.fp-badge svg { color: var(--gray-400); }

.fp-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
}

.status-dot.active { background: #22c55e; }

.fp-name { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 10px; }

.fp-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--gray-500);
}

.fp-details b { color: var(--dark); font-weight: 600; }

.fp-nav { display: flex; flex-direction: column; gap: 2px; }

.fp-nav-item {
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.fp-nav-item.active {
    background: rgba(232,97,45,0.08);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.fp-nav-item.highlight {
    position: relative;
}

.fp-nav-item.highlight::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.fp-main { flex: 1; padding: 24px; }

.fp-header { margin-bottom: 24px; }

.fp-breadcrumb {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.fp-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

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

.fp-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.fp-field span { font-size: 0.85rem; font-weight: 600; color: var(--dark); }

.fp-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.fp-address {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.fp-address-badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- Compliance Section --- */
.compliance {
    padding: 120px 0;
    background: var(--white);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.compliance-card {
    padding: 40px 32px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compliance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background: var(--white);
}

.cc-icon { margin-bottom: 24px; display: flex; justify-content: center; }

.cc-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.cc-ring svg { transform: rotate(-90deg); }

.ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.ring-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.compliance-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.compliance-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cc-status-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill-green { background: rgba(34,197,94,0.1); color: #16a34a; }
.pill-orange { background: rgba(245,158,11,0.1); color: #d97706; }
.pill-red { background: rgba(239,68,68,0.1); color: #dc2626; }

.cc-tiers {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.tier {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
}

.tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.tier:nth-child(2) .tier-dot { background: var(--na-color); }
.tier:nth-child(3) .tier-dot { background: var(--emea-color); }

.cc-deadlines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gray-600);
    padding: 8px 12px;
    background: var(--white);
    border-radius: var(--radius-xs);
}

.deadline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.deadline-dot.urgent { background: #dc2626; }
.deadline-dot.warning { background: #f59e0b; }
.deadline-dot.ok { background: #22c55e; }

/* --- CTA Section --- */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(232,97,45,0.2) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    background: var(--dark-800);
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.6; }

.footer-links { display: flex; gap: 64px; }

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overscroll-behavior: contain;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-menu-inner a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}

.mobile-menu-inner a:hover { color: var(--primary); }

.mobile-menu-inner .btn {
    margin-top: 16px;
    font-size: 1.1rem;
}

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] .feature-card::before { transform-origin: right; }
[dir="rtl"] .fp-nav-item { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .fp-nav-item.active { border-right-color: var(--primary); }
[dir="rtl"] .fp-nav-item.highlight::after { right: auto; left: 12px; }
[dir="rtl"] .section-header { text-align: center; }
[dir="rtl"] .mgmt-content .section-title,
[dir="rtl"] .mgmt-content .section-tag { text-align: right; }
[dir="rtl"] .org-chart-inner { direction: ltr; }
[dir="rtl"] .archive-tree { direction: ltr; }

/* ============================================
   Responsive — Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .compliance-grid { grid-template-columns: repeat(2, 1fr); }
    .compliance-grid .compliance-card:last-child { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
    .mgmt-layout { grid-template-columns: 1fr; gap: 48px; }
    .mgmt-content .section-title { text-align: center; }
    .mgmt-content .section-tag { text-align: center; display: block; }
}

/* ============================================
   Responsive — Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- Global --- */
    .container { padding: 0 16px; }
    .section-header { margin-bottom: 40px; }

    /* Reduce section vertical padding */
    .features,
    .tree-section,
    .archive-section,
    .management,
    .compliance,
    .cta-section { padding: 80px 0; }

    /* --- Navigation --- */
    .nav-links, .nav-cta { display: none; }
    .nav-mobile-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .nav-actions { gap: 8px; }
    .lang-toggle { width: 44px; height: 44px; }

    /* --- Hero --- */
    .hero { padding: 100px 16px 40px; min-height: auto; }
    .hero-title { font-size: 2.4rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1rem; line-height: 1.6; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
    .stat-divider { display: none; }
    .stat-number { font-size: 2rem; }
    .hero-visual { margin-top: 40px; }
    .screen-sidebar { display: none; }
    .screen-content { min-height: 220px; }
    .screen-org { padding: 4px 0; }
    .sorg-node { width: 72px; height: 24px; border-radius: 6px; }
    .sorg-node.root { width: 88px; height: 28px; }
    .sorg-node.small { width: 56px; height: 20px; border-radius: 5px; }
    .sorg-level { gap: 12px; }
    .sorg-connector { height: 20px; }
    .sorg-connector .sorg-hline { width: 168px; }
    .sorg-connector.triple { gap: 72px; height: 16px; }

    /* --- Features --- */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px; }
    .feature-card h3 { font-size: 1.05rem; }
    .feature-card p { font-size: 0.875rem; line-height: 1.6; }

    /* --- Org Chart --- */
    .tree-section { overflow: hidden; }
    .org-showcase { border-radius: var(--radius-sm); max-width: 100vw; overflow: hidden; }
    .oc-canvas { padding: 32px 12px 24px; overflow: hidden; }
    .oc-glow { display: none; }
    .org-chart-inner { width: 100%; }
    .org-level { gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
    .org-level.level-0 { margin-bottom: 24px; }
    .org-level.level-1 { margin-bottom: 0; gap: 8px 12px; }
    .org-level.level-2 { display: none; }
    .org-node { min-width: 70px; max-width: 120px; flex: 1 1 calc(25% - 12px); }
    .org-node.small { min-width: 70px; max-width: 100px; }
    .node-body { padding: 12px 10px; gap: 8px; }
    .node-badge { display: none; }
    .node-name { font-size: 0.82rem; }
    .root-node { min-width: 150px; max-width: 180px; }
    .org-legend { padding: 12px 16px; gap: 12px; font-size: 0.82rem; }
    .org-lines { display: none; }

    /* --- Document Archive --- */
    .doc-showcase { border-radius: var(--radius-sm); }
    .archive-topbar { padding: 10px 16px; }
    .oc-filter-pill { padding: 8px 14px; font-size: 0.82rem; min-height: 36px; }
    .archive-body { flex-direction: column; }
    .archive-panel { display: none; }
    .archive-detail { border-top: none; }
    .archive-detail-header { padding: 12px 16px; }
    .archive-create-btn { min-height: 44px; padding: 8px 16px; font-size: 0.82rem; }
    .archive-table-head { padding: 10px 16px; font-size: 0.78rem; }
    .archive-table-row { padding: 12px 16px; font-size: 0.875rem; min-height: 44px; }
    .cat-pill { font-size: 0.72rem; padding: 4px 10px; }

    /* --- Entity Management --- */
    .mgmt-layout { gap: 36px; }
    .mgmt-feature { gap: 12px; min-height: 44px; }
    .mgmt-feature strong { font-size: 0.9rem; }
    .mgmt-feature p { font-size: 0.85rem; line-height: 1.55; }

    /* --- Factsheet Preview --- */
    .factsheet-preview { flex-direction: column; }
    .fp-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--gray-200); }
    .fp-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .fp-nav-item { padding: 10px 14px; font-size: 0.82rem; min-height: 44px; display: flex; align-items: center; border-left-width: 0; border-bottom: 3px solid transparent; }
    .fp-nav-item.active { border-left-color: transparent; border-bottom-color: var(--primary); }
    .fp-main { padding: 16px; }
    .fp-grid { grid-template-columns: 1fr; }
    .fp-header { margin-bottom: 16px; }
    .fp-item-label { font-size: 0.82rem; }
    .fp-item-value { font-size: 0.875rem; }

    /* --- Compliance --- */
    .compliance-grid { grid-template-columns: 1fr; }
    .compliance-grid .compliance-card:last-child { max-width: none; }
    .compliance-card { padding: 28px 20px; }
    .compliance-card h3 { font-size: 1.05rem; }
    .compliance-card p { font-size: 0.875rem; line-height: 1.6; }
    .cc-ring { width: 68px; height: 68px; }
    .ring-label { font-size: 1rem; }
    .cc-tiers { gap: 10px; flex-wrap: wrap; }
    .pill { padding: 6px 14px; font-size: 0.78rem; min-height: 32px; }
    .deadline-item { padding: 10px 12px; min-height: 44px; font-size: 0.875rem; }

    /* --- CTA --- */
    .cta-gradient { display: none; }
    .cta-content p { font-size: 1rem; }
    .btn-lg { min-height: 52px; }

    /* --- Footer --- */
    .footer { padding: 48px 0 24px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; }
    .footer-brand p { font-size: 0.875rem; }
    .footer-col h4 { font-size: 0.82rem; }
    .footer-col a { font-size: 0.875rem; min-height: 44px; display: flex; align-items: center; }
    .footer-bottom { font-size: 0.82rem; padding-top: 20px; }
}

/* ============================================
   Responsive — Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    /* --- Global --- */
    .container { padding: 0 max(12px, env(safe-area-inset-left)); }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: 1.6rem; line-height: 1.2; }
    .section-desc { font-size: 0.9rem; line-height: 1.6; }

    /* Reduce section padding further */
    .features,
    .tree-section,
    .archive-section,
    .management,
    .compliance,
    .cta-section { padding: 60px 0; }

    /* --- Hero --- */
    .hero { padding: 80px 12px 32px; }
    .hero-title { font-size: 1.85rem; line-height: 1.15; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn { width: 100%; text-align: center; justify-content: center; min-height: 48px; }
    .hero-visual { margin-top: 28px; }
    .screen-content { min-height: 180px; }
    .sorg-node { width: 56px; height: 20px; border-radius: 5px; }
    .sorg-node.root { width: 68px; height: 24px; }
    .sorg-node.small { width: 44px; height: 16px; border-radius: 4px; }
    .sorg-level { gap: 8px; }
    .sorg-connector { height: 14px; }
    .sorg-connector .sorg-hline { width: 128px; }
    .sorg-connector.triple { gap: 52px; height: 12px; }

    /* --- Features --- */
    .feature-card { padding: 20px; }
    .feature-icon { width: 48px; height: 48px; }
    .feature-icon svg { width: 24px; height: 24px; }

    /* --- Org Chart --- */
    .oc-canvas { padding: 24px 8px 20px; }
    .org-node { min-width: 60px; max-width: 90px; flex: 1 1 calc(25% - 8px); }
    .node-body { padding: 10px 6px; gap: 5px; }
    .node-name { font-size: 0.72rem; }
    .root-node { min-width: 110px; max-width: 140px; }
    .org-legend { display: none; }

    /* --- Document Archive --- */
    .archive-topbar { padding: 8px 12px; }
    .oc-filter-pill { padding: 7px 12px; font-size: 0.78rem; }
    .archive-table-head, .archive-table-row { grid-template-columns: 80px 1fr 1fr; gap: 4px; }
    .archive-table-head span:last-child, .archive-table-row .cat-pill { display: none; }
    .archive-detail-header { padding: 10px 12px; }
    .archive-detail-header h4 { font-size: 0.875rem; }
    .archive-create-btn { padding: 8px 14px; font-size: 0.78rem; }

    /* --- Compliance --- */
    .compliance-card { padding: 20px 16px; }
    .pill { padding: 5px 12px; font-size: 0.75rem; }
    .tier { font-size: 0.78rem; }

    /* --- CTA --- */
    .cta-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-lg { padding: 16px 32px; font-size: 0.95rem; min-height: 52px; }

    /* --- Footer --- */
    .footer-links { flex-direction: column; gap: 24px; }

    /* --- Mobile menu --- */
    .mobile-menu-inner { gap: 16px; }
    .mobile-menu-inner a { font-size: 1.3rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }
}

/* ============================================
   Accessibility — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-visual { transform: none !important; }
    .oc-glow { display: none; }
}


/* --- Contact Form --- */
.contact-form {
    position: relative;
    max-width: 720px;
    margin: 56px auto 0;
    padding: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    text-align: left;
    color: var(--white);
}

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

.contact-form-header { margin-bottom: 28px; text-align: center; }
.contact-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.contact-form-header p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-bottom: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }

.field label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
}

.field input {
    width: 100%;
    padding: 13px 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,0.35); }

.field input:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.07);
}
.field input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(232,97,45,0.18);
}

.field input:invalid:not(:placeholder-shown) {
    border-color: rgba(239,68,68,0.6);
}

/* Consent */
.cf-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 22px;
    transition: border-color var(--transition), background var(--transition);
}
.cf-consent:hover { border-color: rgba(255,255,255,0.18); }

.cf-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cf-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all var(--transition);
    position: relative;
}
.cf-checkbox::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg) translate(1px, -1px) scale(0.4);
    opacity: 0;
    transition: all 0.18s ease;
}

.cf-consent input:checked ~ .cf-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}
.cf-consent input:checked ~ .cf-checkbox::after {
    opacity: 1;
    transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.cf-consent input:focus-visible ~ .cf-checkbox {
    box-shadow: 0 0 0 3px rgba(232,97,45,0.25);
}

.cf-consent-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
}

/* Submit row */
.cf-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cf-actions .btn-primary {
    min-width: 180px;
    justify-content: center;
}

.cf-status {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.cf-status.is-error { color: #fca5a5; }
.cf-status.is-success { color: #86efac; }

/* Mobile */
@media (max-width: 640px) {
    .contact-form { padding: 24px 20px; margin-top: 40px; border-radius: 16px; }
    .contact-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-form-header h3 { font-size: 1.25rem; }
    .cf-actions .btn-primary { width: 100%; }
}
