/* ========================================
   Trust Agents – Website Styles
   ======================================== */

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

:root {
    --color-primary: #1a2332;
    --color-primary-light: #2d3a4a;
    --color-primary-dark: #0e1724;
    --color-accent: #e4002b;
    --color-accent-light: #ff1a45;
    --color-accent-dark: #c40025;
    --color-trust: #0d9488;
    --color-trust-light: #14b8a6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-bg-muted: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-primary-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

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

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(228, 0, 43, 0.25);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(228, 0, 43, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary-dark);
    border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-bg-muted);
    border-color: var(--color-text-lighter);
}

.btn-full { width: 100%; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--color-accent);
    font-size: 1.1rem;
}

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

.nav-menu a {
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-text);
    background: var(--color-bg-muted);
}

.nav-cta {
    background: var(--color-accent) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-md) !important;
}
.nav-cta:hover {
    background: var(--color-accent-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Language Switcher --- */
.lang-switch {
    margin-left: 8px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: var(--color-text-lighter) !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 100px !important;
    background: transparent !important;
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    background: rgba(228, 0, 43, 0.06) !important;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
    padding: 180px 0 140px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 30%, rgba(228, 0, 43, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(228, 0, 43, 0.02) 0%, transparent 40%);
}

/* Floating background shapes */
.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.float-shape {
    position: absolute;
    border-radius: 50%;
}

.float-1 {
    width: 500px; height: 500px;
    background: rgba(228, 0, 43, 0.03);
    top: -80px; right: 2%;
    filter: blur(80px);
    animation: floatA 16s ease-in-out infinite;
}

.float-2 {
    width: 320px; height: 320px;
    background: rgba(228, 0, 43, 0.02);
    bottom: 5%; left: -60px;
    filter: blur(60px);
    animation: floatB 11s ease-in-out infinite 2.5s;
}

.float-3 {
    width: 200px; height: 200px;
    background: rgba(228, 0, 43, 0.03);
    top: 40%; right: 8%;
    filter: blur(50px);
    animation: floatA 20s ease-in-out infinite 5s;
}

.float-4 {
    width: 150px; height: 150px;
    background: rgba(0, 0, 0, 0.01);
    top: 15%; left: 42%;
    filter: blur(40px);
    animation: floatB 13s ease-in-out infinite 1s;
}

@keyframes floatA {
    0%, 100% { translate: 0 0; }
    30%  { translate: 12px -28px; }
    60%  { translate: -8px -18px; }
    80%  { translate: 6px -32px; }
}

@keyframes floatB {
    0%, 100% { translate: 0 0; }
    45% { translate: -14px -20px; }
    70% { translate: 9px -12px; }
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: var(--color-primary-dark);
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero content reveal animation */
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-description,
.hero-content .hero-actions {
    opacity: 0;
    transform: translateY(22px);
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content h1                { animation-delay: 0.15s; }
.hero-content .hero-subtitle    { animation-delay: 0.35s; }
.hero-content .hero-description { animation-delay: 0.5s; }
.hero-content .hero-actions     { animation-delay: 0.65s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Visual / Diagram */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-layer-diagram {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 44px 36px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    animation: diagramEntrance 0.8s ease-out;
}

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

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    min-width: 130px;
    text-align: center;
    animation: nodeEntrance 0.6s ease-out both;
}

.diagram-node:nth-child(1) { animation-delay: 0.15s; }
.diagram-node:nth-child(3) { animation-delay: 0.55s; }
.diagram-node:nth-child(5) { animation-delay: 0.95s; }

@keyframes nodeEntrance {
    from { opacity: 0; transform: scale(0.8) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.node-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.agent-node { background: #fff; border: 1px solid var(--color-border); }
.agent-node .node-icon-wrap { background: rgba(228, 0, 43, 0.08); border: 1px solid rgba(228, 0, 43, 0.2); }

.trust-node {
    background: #fff;
    border: 1.5px solid var(--color-accent);
    transform: scale(1.06);
    animation: nodeEntrance 0.6s ease-out 0.55s both;
    box-shadow: 0 0 24px rgba(228, 0, 43, 0.08);
}
.trust-node .node-icon-wrap { background: rgba(228, 0, 43, 0.1); border: 1px solid rgba(228, 0, 43, 0.25); }

.action-node { background: #fff; border: 1px solid var(--color-border); }
.action-node .node-icon-wrap { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); }

.node-icon { font-size: 1.5rem; color: var(--color-primary-dark); }

.node-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
}

.node-sublabel {
    font-size: 0.7rem;
    color: var(--color-text-lighter);
    font-weight: 400;
    margin-top: -4px;
}

/* Node hover effects */
.trust-layer-diagram:hover .diagram-node {
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-layer-diagram:hover .diagram-node:hover {
    opacity: 1;
    transform: scale(1.08);
}
.trust-layer-diagram:hover .trust-node:hover {
    transform: scale(1.13);
    box-shadow: 0 0 40px rgba(228, 0, 43, 0.12);
}

.trust-layer-diagram:hover .agent-node:hover {
    box-shadow: var(--shadow-lg);
}
.trust-layer-diagram:hover .action-node:hover {
    box-shadow: var(--shadow-lg);
}

/* Connector brightens when adjacent node is hovered */
.diagram-node { transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }

/* Connectors */
.diagram-connector {
    width: 56px;
    height: 10px;
    position: relative;
    flex-shrink: 0;
    animation: nodeEntrance 0.5s ease-out both;
}

.diagram-connector:nth-child(2) { animation-delay: 0.35s; }
.diagram-connector:nth-child(4) { animation-delay: 0.75s; }

.connector-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: var(--color-border);
    border-radius: 1px;
}

/* Dynamic pulse dots (spawned via JS) */
.connector-pulse {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    margin-left: -4px;
    border-radius: 50%;
    background: rgba(228, 0, 43, 0.9);
    box-shadow: 0 0 10px rgba(228, 0, 43, 0.5), 0 0 4px rgba(255,255,255,0.3);
    opacity: 0;
    pointer-events: none;
}

.pulse-traveling {
    animation: pulseTravel 1.4s ease-in-out forwards;
}

.pulse-approved {
    background: rgba(16, 185, 129, 0.9);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7), 0 0 4px rgba(255,255,255,0.3);
}

.pulse-rejected {
    background: rgba(239, 68, 68, 0.9);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7), 0 0 4px rgba(255,255,255,0.3);
    animation: pulseReject 0.7s ease-out forwards;
}

.trust-node.reject-flash {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.18) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.trust-node.approve-flash {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

@keyframes pulseTravel {
    0%   { left: 0;                 opacity: 0; }
    8%   { left: 8px;               opacity: 1; }
    92%  { left: calc(100% - 4px);  opacity: 1; }
    100% { left: calc(100% + 4px);  opacity: 0.9; }
}

@keyframes pulseReject {
    0%   { transform: translateY(0) scale(1);    opacity: 1; }
    25%  { transform: translateY(-2px) scale(1.5); opacity: 1; }
    100% { transform: translateY(30px) scale(0.3); opacity: 0; }
}

/* --- Section Base --- */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-description {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Vision Section --- */
.vision-section {
    background: var(--color-bg-subtle);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.vision-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

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

.card-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.vision-card h3 {
    font-size: 1.3rem;
}

.vision-card p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Problem Section --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.problem-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: #fff;
    transition: all 0.3s ease;
}

.problem-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-danger);
}

.problem-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-danger);
}

.problem-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.problem-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Solution Section --- */
.solution-section {
    background: var(--color-bg-subtle);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.solution-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.solution-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.solution-highlights {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    max-width: 150px;
    line-height: 1.4;
}

/* Architecture Flow */
.architecture-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.flow-step-highlight {
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.1);
}

.flow-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-muted);
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.flow-step-highlight .flow-number {
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
}

.flow-content h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.flow-content p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.flow-connector {
    width: 2px;
    height: 16px;
    background: var(--color-border);
    margin-left: 43px;
}

/* --- Aspects Section --- */
.aspects-section {
    background: var(--color-primary-dark);
    color: #fff;
}

.aspects-section .section-tag {
    background: rgba(228, 0, 43, 0.3);
    border: 1px solid rgba(228, 0, 43, 0.3);
}

.aspects-section .section-header h2 {
    color: #fff;
}

.aspects-section .section-description {
    color: rgba(255,255,255,0.6);
}

.aspects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.aspect-card {
    padding: 28px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.aspect-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(228, 0, 43, 0.4);
    transform: translateY(-2px);
}

.aspect-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.aspect-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.aspect-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* --- Comparison Section --- */
.comparison-section {
    background: #fff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comparison-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    padding: 20px 28px;
}

.comparison-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.comparison-badge.bad {
    background: #fef2f2;
    color: var(--color-danger);
    border: 1px solid #fecaca;
}

.comparison-badge.good {
    background: #f0fdf4;
    color: var(--color-success);
    border: 1px solid #bbf7d0;
}

.comparison-without {
    border-top: 3px solid var(--color-danger);
}

.comparison-with {
    border-top: 3px solid var(--color-success);
}

.comparison-scenario {
    padding: 0 28px 20px;
}

.scenario-prompt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    padding: 16px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-border);
}

.comparison-result {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--color-border-light);
}

.comparison-result p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.result-verdict {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.result-verdict.bad {
    background: #fef2f2;
    color: var(--color-danger);
}

.result-verdict.good {
    background: #f0fdf4;
    color: var(--color-success);
}

/* --- Scenario Tabs --- */
.scenario-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.scenario-tab {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: #fff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.scenario-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(228,0,43,0.2);
}

.scenario-panels {
    position: relative;
}

.scenario-panel {
    display: none;
}

.scenario-panel.active {
    display: block;
    animation: fadePanel 0.3s ease;
}

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

.scenario-instruction {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.instruction-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.instruction-text {
    font-size: 0.95rem;
    color: var(--color-text);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.scenario-steps {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    gap: 0;
    align-items: start;
}

.step-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.step-col-header.bad {
    background: #fff;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-bottom: none;
}

.step-col-header.good {
    background: #fff;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-bottom: none;
}

.col-icon {
    font-size: 0.85rem;
    opacity: 0.5;
}

.step {
    padding: 16px 20px;
    background: #fff;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.without .step {
    border-color: var(--color-border);
}

.with .step {
    border-color: var(--color-border);
}

.step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-lighter);
}

.step-content strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 3px;
    color: var(--color-text);
}

.step-content p {
    font-size: 0.83rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin: 0;
}

.step-arrow {
    text-align: center;
    padding: 4px 0;
    color: var(--color-border);
    font-size: 0.9rem;
    background: #fff;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.without .step-arrow { border-color: var(--color-border); }
.with .step-arrow { border-color: var(--color-border); }

.step-bad {
    background: #fefafa;
}

.step-bad .step-num {
    background: #fef2f2;
    color: var(--color-danger);
}

.step-trust {
    background: #fafbff;
}

.step-trust .step-num {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
}

.step-good {
    background: #fafdf9;
}

.step-good .step-num {
    background: var(--color-success);
    color: #fff;
}

.verdict {
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-align: center;
}

.verdict.bad {
    background: #fef8f8;
    color: var(--color-danger);
    border: 1px solid var(--color-border);
    border-top: none;
}

.verdict.good {
    background: #f8fdf8;
    color: var(--color-success);
    border: 1px solid var(--color-border);
    border-top: none;
}

.step-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 48px;
}

.divider-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-lighter);
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .scenario-steps {
        grid-template-columns: 1fr;
    }
    .step-divider { display: none; }
    .scenario-instruction { flex-direction: column; gap: 8px; }
}

/* --- Industries Section --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.industry-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    text-align: center;
}

.industry-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.industry-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.industry-card h3 {
    margin-bottom: 8px;
}

.industry-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Package Section --- */
.package-section {
    background: var(--color-bg-subtle);
}

.package-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-feature {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-icon.blue { background: #eff6ff; color: var(--color-accent); }
.feature-icon.green { background: #f0fdf4; color: var(--color-success); }
.feature-icon.purple { background: #faf5ff; color: #8b5cf6; }
.feature-icon.orange { background: #fffbeb; color: var(--color-warning); }

.feature-text h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.package-cta-box {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #fff;
    position: sticky;
    top: 100px;
}

.package-cta-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.package-cta-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Differentiator Section --- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.diff-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.diff-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: var(--color-accent);
}

.diff-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Partners Section --- */
.partners-section {
    background: var(--color-bg-subtle);
}

.partners-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.partner-card {
    padding: 48px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.partner-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.partner-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}

.partner-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.partner-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.partner-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.partner-list li:last-child {
    border-bottom: none;
}

/* --- Hero Alan Badge --- */
.hero-alan-badge {
    margin-top: 24px;
    display: inline-block;
}

.alan-badge-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
}

.alan-badge-link:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

.alan-badge-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.alan-badge-img {
    height: 22px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* --- Alan Section --- */
.alan-section {
    background: var(--color-primary-dark);
    color: #fff;
}

.alan-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.alan-callout-content .section-tag {
    background: rgba(228, 0, 43, 0.2);
    border: 1px solid rgba(228, 0, 43, 0.3);
    color: var(--color-accent-light);
}

.alan-callout-content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.alan-callout-content p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 580px;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.alan-logo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 32px 40px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s, background 0.2s;
}

.alan-logo-display:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}

.alan-logo-svg {
    width: 180px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .alan-callout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .alan-callout-logo {
        display: none;
    }
}

/* --- Contact Section --- */
.contact-section {
    background: var(--color-primary-dark);
    color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-text .section-tag {
    background: rgba(228, 0, 43, 0.3);
    border: 1px solid rgba(228, 0, 43, 0.3);
}

.contact-text h2 {
    color: #fff;
    margin-bottom: 20px;
}

.contact-text p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.15);
}

.form-group select option {
    background: var(--color-primary-dark);
    color: #fff;
}

.contact-form .btn-primary {
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background: #0a1929;
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
    display: inline-flex;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-partners {
    margin-top: 4px;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.35);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-visual { margin-top: 20px; }

    .solution-content { grid-template-columns: 1fr; }
    .aspects-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .package-content { grid-template-columns: 1fr; }
    .package-cta-box { position: static; }
    .diff-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border-light);
    }
    .nav-menu.active { display: flex; }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }

    .vision-grid { grid-template-columns: 1fr; }
    .problem-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .aspects-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .trust-layer-diagram {
        flex-direction: column;
        padding: 28px 20px;
    }
    .diagram-connector {
        width: 10px;
        height: 40px;
    }
    .connector-track {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
    }
    .connector-pulse {
        display: none;
    }
    .trust-node { transform: scale(1.04); }

    .hero { min-height: auto; padding: 120px 0 60px; }
    .solution-highlights { flex-direction: column; }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}
