/* IArchitecture Custom Theme - Obsidian Dark Mode */
:root {
    --bg-dark: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Brand Palette */
    --brand-dark: #00395f;
    --brand-mid: #00589a;
    --brand-blue: #0069b5;
    --brand-light: #29aae2;
    --brand-accent: #f15a26;
    
    /* Severity Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Background Glow Orbs */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    background: radial-gradient(circle, var(--brand-accent) 0%, transparent 70%);
    top: 600px;
    right: -200px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    color: var(--brand-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--brand-accent);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-nav {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
}

.btn-nav:hover {
    border-color: var(--brand-light);
    color: var(--brand-light);
}

.btn-primary {
    background: var(--brand-accent);
    color: #fff;
    border: 1.5px solid var(--brand-accent);
    opacity: .8
}

.btn-primary:hover {
    background: #e04a18;
    border-color: #e04a18;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(241, 90, 38, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Glassmorphism Card styling */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(241, 90, 38, 0.1);
    color: var(--brand-light);
    border: 1px solid rgba(241, 90, 38, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

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

.hero-visual {
    width: 100%;
}

.hero-card {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.card-title {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-body {
    padding: 24px;
}

.console {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem;
    color: #a9b7c6;
    line-height: 1.8;
}

.c-blue { color: var(--brand-light); }
.c-green { color: var(--color-success); }
.c-orange { color: var(--brand-accent); }

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 40px 32px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

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

.icon-blue {
    background: rgba(41, 170, 226, 0.1);
    color: var(--brand-light);
}

.icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.icon-orange {
    background: rgba(241, 90, 38, 0.1);
    color: var(--brand-accent);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Visualizer Section */
.visualizer-section {
    padding: 80px 0;
    position: relative;
}

.viz-card {
    width: 100%;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.3);
}

.viz-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

.viz-container {
    flex: 1;
    position: relative;
    display: flex;
    background: #0B0E14;
}

#viz-svg {
    flex: 1;
    cursor: grab;
}

#viz-svg:active {
    cursor: grabbing;
}

/* Interactive SVG Styles */
.node-g {
    cursor: pointer;
}

.node-rect {
    transition: all 0.25s ease;
}

.node-text {
    font-family: 'Consolas', monospace;
    font-size: 10px;
    fill: #ffffff;
    pointer-events: none;
}

.edge-path {
    stroke-dasharray: 4 2;
    animation: flow 20s linear infinite;
    transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s;
}

@keyframes flow {
    to {
        stroke-dashoffset: -100;
    }
}

/* Highlight / Fade Classes */
.node-g.faded, .edge-path.faded {
    opacity: 0.15 !important;
}

.node-g.highlighted .node-rect {
    stroke: var(--brand-accent) !important;
    stroke-width: 2.5px !important;
    filter: drop-shadow(0 0 4px rgba(241, 90, 38, 0.4));
}

.edge-path.highlighted {
    stroke: var(--brand-accent) !important;
    stroke-width: 2px !important;
    opacity: 1 !important;
}

/* Detail Panel inside Visualizer */
.detail-panel {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 280px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 5;
}

.detail-panel.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.detail-panel h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.detail-meta {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-tag {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Modulus platform section */
.pipeline-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.pipeline-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.pipeline-p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.pipeline-list {
    list-style: none;
}

.pipeline-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.pipeline-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-light);
    font-weight: bold;
    font-size: 1.1rem;
}

.code-card {
    background: #090B10;
}

.font-mono {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.syntax-punc { color: #a9b7c6; }
.syntax-key { color: #cf8e6d; }
.syntax-val { color: #6a8759; }
.syntax-comment { color: var(--text-muted); font-style: italic; }

.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 40px; }

.highlight-code-line {
    background: rgba(241, 90, 38, 0.15);
    border-left: 2.5px solid var(--brand-accent);
    padding-left: 37.5px;
    margin-left: -40px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(11, 15, 25, 0.9);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand-light);
}

/* Responsive design */
@media (max-width: 992px) {
    .hero-container, .pipeline-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}
