/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #63eb8d;
    --accent-dim: rgba(99, 235, 141, 0.15);
    --accent-glow: rgba(99, 235, 141, 0.3);
    --warn: #f5a623;
    --crit: #ff4757;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --header-height: 64px;
    --announcement-height: 36px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

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

/* ===== Announcement Bar ===== */
.announcement-bar {
    height: var(--announcement-height);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.announcement-bar a {
    color: var(--accent);
    font-weight: 500;
    transition: opacity var(--transition);
}

.announcement-bar a:hover { opacity: 0.8; }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-item:hover .nav-link {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition);
}

.dropdown a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #7af0a0;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    transition: gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-arrow:hover { opacity: 0.8; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--announcement-height));
    padding: 80px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

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

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
}

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

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #3dd68c 50%, #63eb8d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

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

/* Hero Cards Animation */
.hero-cards {
    position: relative;
    height: 480px;
}

.metric-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    width: 260px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.metric-card:hover {
    border-color: var(--border-hover);
    z-index: 10;
}

.card-1 { top: 0; left: 10%; animation-delay: 0s; }
.card-2 { top: 60px; right: 0; animation-delay: -1s; }
.card-3 { top: 200px; left: 0; animation-delay: -2s; }
.card-4 { top: 280px; right: 10%; animation-delay: -3s; width: 280px; }
.card-5 { top: 140px; left: 35%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-status {
    font-size: 11px;
    font-weight: 500;
}

.metric-status.ok { color: var(--accent); }
.metric-status.warn { color: var(--warn); }
.metric-status.crit { color: var(--crit); }

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.metric-chart svg {
    width: 100%;
    height: 40px;
}

.metric-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warn), #ff6b6b);
    border-radius: 3px;
}

.metric-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.metric-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.metric-dots span.active { background: var(--accent); }

.metric-footer {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.alert-list { margin-bottom: 12px; }

.alert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

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

.alert-sev {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-sev.crit { background: var(--crit); }
.alert-sev.warn { background: var(--warn); }
.alert-sev.ok { background: var(--accent); }

/* ===== Trust Bar ===== */
.trust-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.trust-logo:hover { color: rgba(255,255,255,0.5); }

/* ===== Sections Common ===== */
section { padding: 100px 0; }

.section-header {
    margin-bottom: 48px;
}

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

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

.section-header h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.7;
}

/* ===== Product Tabs ===== */
.product-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.product-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.4s ease;
}

.product-panel.active { display: grid; }

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

.product-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.product-panel-content h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.product-panel-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-panel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* Product Visuals */
.cloud-visual {
    position: relative;
    width: 100%;
    height: 250px;
}

.cloud-node {
    position: absolute;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.cloud-node.central {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.cloud-node:nth-child(2) { top: 10%; left: 20%; }
.cloud-node:nth-child(3) { top: 10%; right: 20%; }
.cloud-node:nth-child(4) { bottom: 10%; left: 20%; }
.cloud-node:nth-child(5) { bottom: 10%; right: 20%; }

.onprem-visual { text-align: center; }

.onprem-box {
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.onprem-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.onprem-items {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.onprem-items span {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
}

.onprem-lock {
    font-size: 14px;
    color: var(--accent);
}

.hybrid-visual {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    justify-content: center;
}

.hybrid-side {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
}

.hybrid-center {
    padding: 32px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 50%;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.4;
}

.alert-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.alert-flow-item {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-mono);
}

.alert-flow-item.crit { background: rgba(255,71,87,0.15); color: var(--crit); }
.alert-flow-item.warn { background: rgba(245,166,35,0.15); color: var(--warn); }
.alert-flow-item.info { background: var(--accent-dim); color: var(--accent); }

.log-visual {
    width: 100%;
    padding: 20px;
    background: #0d0d0d;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 2;
}

.log-visual code {
    display: block;
    color: var(--text-secondary);
}

.log-visual code:nth-child(3) { color: var(--crit); }

.dash-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.dash-widget {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dash-widget.wide { grid-column: 1 / -1; }

.dash-widget span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dash-widget strong {
    font-size: 24px;
    font-weight: 700;
}

.mini-chart {
    height: 40px;
    background: linear-gradient(90deg, var(--accent-dim), transparent);
    border-radius: 4px;
    margin-top: 8px;
}

/* ===== Use Cases ===== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.use-case-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.use-case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.use-case-tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.use-case-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 16px 0 12px;
    line-height: 1.3;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== Value Prop ===== */
.value-prop {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.value-card {
    padding: 32px;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

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

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Ownership ===== */
.ownership-header {
    max-width: 600px;
    margin-bottom: 48px;
}

.ownership-header h2 {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.ownership-header p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.ownership-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.ownership-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.ownership-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ownership-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.deploy-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.deploy-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.deploy-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.deploy-tab.active,
.deploy-tab:hover {
    color: var(--text-primary);
}

.deploy-tab.active {
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.code-block {
    padding: 24px;
    overflow-x: auto;
}

.code-block pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
}

.code-num {
    color: var(--text-muted);
    margin-right: 16px;
    user-select: none;
}

.code-kw { color: #c792ea; }
.code-key { color: #82aaff; }
.code-str { color: var(--accent); }

/* ===== Platform ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.platform-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.platform-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.policy-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.policy-header {
    font-weight: 600;
    margin-bottom: 20px;
}

.policy-rule,
.policy-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.policy-for { color: var(--text-muted); }

.policy-rule code,
.policy-condition code {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.policy-add {
    margin-top: 16px;
    padding: 8px 16px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.policy-add:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.audit-log {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: 320px;
    overflow: hidden;
}

.audit-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.audit-item:nth-child(1) { animation-delay: 0.1s; }
.audit-item:nth-child(2) { animation-delay: 0.2s; }
.audit-item:nth-child(3) { animation-delay: 0.3s; }
.audit-item:nth-child(4) { animation-delay: 0.4s; }
.audit-item:nth-child(5) { animation-delay: 0.5s; }
.audit-item:nth-child(6) { animation-delay: 0.6s; }

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

.audit-user {
    color: var(--text-primary);
    font-weight: 500;
}

.audit-item code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

/* ===== Testimonials ===== */
.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.testimonial {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.testimonial p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial footer {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

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

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-dim) 0%, var(--bg-card) 40%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    margin-bottom: 32px;
}

.pricing-card li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-left: 24px;
    position: relative;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ===== CTA ===== */
.cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

/* ===== Contact Page ===== */
.contact-page {
    padding: 100px 0 120px;
    min-height: calc(100vh - var(--header-height) - var(--announcement-height));
}

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

.contact-info h1 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--accent);
    font-size: 16px;
}

.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== Auth & Cabinet ===== */
.auth-page,
.cabinet-page {
    padding: 100px 0 120px;
    min-height: calc(100vh - var(--header-height) - var(--announcement-height));
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.auth-card h1,
.cabinet-header h1 {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0 12px;
}

.auth-subtitle,
.cabinet-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.auth-form {
    margin-top: 8px;
}

.auth-footer {
    margin-top: 24px;
    color: var(--text-secondary);
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
}

.cabinet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cabinet-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cabinet-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.cabinet-muted {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cabinet-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cabinet-stat {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cabinet-stat span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cabinet-stat strong {
    font-size: 24px;
    color: var(--accent);
}

.form-group input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nav-logout-form {
    display: inline;
}

.nav-actions form button {
    font-family: inherit;
}

.flash-container {
    padding-top: 24px;
}

.flash {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid var(--border);
}

.flash-success {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(99, 235, 141, 0.25);
}

.flash-error {
    background: rgba(255, 71, 87, 0.12);
    color: #ff8f98;
    border-color: rgba(255, 71, 87, 0.25);
}

.cabinet-links {
    display: grid;
    gap: 12px;
}

.cabinet-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cabinet-nav a {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}

.cabinet-nav a:hover,
.cabinet-nav a.active {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.cabinet-grid-wide {
    grid-template-columns: 1fr 1.2fr;
}

.targets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.target-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.target-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.target-info a {
    color: var(--accent);
    font-size: 14px;
    word-break: break-all;
}

.target-codes-form {
    margin-top: 12px;
}

.target-codes-form label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.target-codes-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.target-codes-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
}

.form-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-hint code {
    font-family: var(--font-mono);
    color: var(--accent);
}

.target-status {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.target-status.ok { color: var(--accent); }
.target-status.paused { color: var(--warn); }

.target-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.metrics-card {
    margin-top: 0;
}

.metrics-table-wrap {
    overflow-x: auto;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
}

.metrics-table th,
.metrics-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.metrics-table th {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metrics-table td a {
    color: var(--accent);
    word-break: break-all;
}

.metric-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.metric-badge.ok {
    background: var(--accent-dim);
    color: var(--accent);
}

.metric-badge.crit {
    background: rgba(255, 71, 87, 0.12);
    color: #ff8f98;
}

.metric-badge.muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.metrics-note {
    margin-top: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.metrics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.metrics-updated {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.metric-cell {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition), box-shadow var(--transition);
}

.metric-cell:hover,
.metric-cell.active {
    background: rgba(99, 235, 141, 0.08);
    box-shadow: inset 0 0 0 1px rgba(99, 235, 141, 0.25);
}

.metric-cell code {
    font-family: var(--font-mono);
}

.metrics-chart-panel {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.metrics-chart-panel.hidden,
.hidden {
    display: none !important;
}

.metrics-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.metrics-chart-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.metrics-chart-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    word-break: break-all;
}

.metrics-chart-wrap {
    position: relative;
    height: 280px;
}

.metrics-chart-loading {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 100px 0 120px;
    min-height: calc(100vh - var(--header-height) - var(--announcement-height));
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0 12px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-content a {
    color: var(--accent);
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 24px;
    max-width: 280px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

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

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-cards { height: 400px; margin-top: 40px; }
    .product-panel { grid-template-columns: 1fr; }
    .use-case-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: 1fr; }
    .ownership-grid { grid-template-columns: repeat(2, 1fr); }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-demo { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cabinet-grid { grid-template-columns: 1fr; }
    .cabinet-grid-wide { grid-template-columns: 1fr; }
    .cabinet-header { flex-direction: column; }
    .cabinet-placeholder { grid-template-columns: 1fr; }
    .target-item { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
    }

    .nav-actions.open {
        display: flex;
        position: absolute;
        top: calc(var(--header-height) + 200px);
        left: 24px;
        right: 24px;
    }

    .mobile-toggle { display: flex; }

    .hero { padding: 60px 0 80px; }
    .hero-cards { display: none; }
    .product-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .stats-bar { grid-template-columns: 1fr; }
    .ownership-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
