:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #161618;
  --bg-elevated: #1a1a1d;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #fafafa;
  --text-secondary: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.5);
  --accent: #0ea5e9;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(14, 165, 233, 0.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --premium: #a855f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 10, 11, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 6px; }
.logo-icon span { background: rgba(255,255,255,0.9); border-radius: 2px; }
.logo-icon span:nth-child(5) { background: transparent; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.logo-sub { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.portal-dropdown { position: relative; }
.portal-btn { display: flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.portal-btn:hover { border-color: var(--accent); color: var(--accent); }
.portal-menu { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 0.5rem; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s; }
.portal-dropdown:hover .portal-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.portal-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; border-radius: 8px; transition: all 0.2s; }
.portal-menu a:hover { background: var(--accent-glow); color: var(--accent); }
.portal-menu a svg { width: 18px; height: 18px; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: white; padding: 0.625rem 1.25rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { display: block; text-align: center; padding: 0.75rem; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); text-decoration: none; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { padding: 0.75rem 1.5rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Hero Section */
.hero { padding: 8rem 0 4rem; text-align: center; background: radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 50%); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.acronym-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.acronym-pill { background: var(--bg-card); border: 1px solid var(--border); padding: 0.375rem 0.75rem; border-radius: 6px; font-size: 0.75rem; }
.acronym-pill strong { color: var(--accent); margin-right: 0.25rem; }
h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem; }
h1 span { color: var(--accent); }
h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 2.5rem; font-weight: 400; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; }
.hero-value { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,182,212,0.1)); border: 1px solid rgba(14,165,233,0.3); padding: 0.75rem 1.5rem; border-radius: 12px; font-size: 1.1rem; margin-bottom: 3rem; }
.hero-value strong { color: var(--accent); font-size: 1.25rem; }
.stats-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; max-width: 900px; margin: 0 auto; }
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Frameworks Bar */
.frameworks-bar { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.frameworks-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.fw-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 1rem; }
.fw-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 500; }
.fw-badge.available { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.fw-badge.coming { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }

/* Sections */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }

/* Portal Cards */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.portal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.3s; }
.portal-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.portal-card.customer { border-top: 3px solid var(--success); }
.portal-card.firm { border-top: 3px solid var(--warning); }
.portal-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.portal-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.portal-card.customer .portal-icon { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.portal-card.firm .portal-icon { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.portal-icon svg { width: 24px; height: 24px; }
.portal-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.portal-card .url { font-size: 0.9rem; color: var(--accent); }
.portal-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.portal-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.portal-feature { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.portal-feature svg { width: 16px; height: 16px; color: var(--success); }

/* Pricing */
.pricing-toggle { display: flex; justify-content: center; gap: 1rem; align-items: center; margin-bottom: 3rem; }
.toggle-label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.2s; }
.toggle-label.active { color: var(--text-primary); font-weight: 500; background: var(--bg-card); }
.toggle-switch { width: 56px; height: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; cursor: pointer; position: relative; transition: all 0.3s; }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; transition: all 0.3s; }
.toggle-switch.firm::after { transform: translateX(28px); }
.pricing-table-container { overflow-x: auto; margin-bottom: 2rem; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.pricing-table th, .pricing-table td { padding: 1rem; text-align: center; border: 1px solid var(--border); }
.pricing-table th { background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; }
.pricing-table th.tier-header { background: var(--bg-card); }
.pricing-table th.package-header { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,182,212,0.05)); }
.pricing-table td.tier-cell { background: var(--bg-card); text-align: left; padding: 1rem 1.5rem; }
.pricing-table td.tier-cell h4 { color: var(--text-primary); margin-bottom: 0.25rem; }
.pricing-table td.tier-cell p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.pricing-table td.price-cell { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.pricing-table td.price-cell.featured { background: rgba(14,165,233,0.05); }
.package-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.discount-banner { background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(14,165,233,0.1)); border: 1px solid rgba(34,197,94,0.3); border-radius: 12px; padding: 1.5rem; text-align: center; margin-top: 2rem; }
.discount-banner h4 { color: var(--success); margin-bottom: 0.5rem; }
.discount-items { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.discount-item { font-size: 0.9rem; color: var(--text-secondary); }
.discount-item strong { color: var(--success); }

/* Framework Cards */
.framework-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.framework-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: all 0.3s; }
.framework-card:hover { border-color: var(--accent); }
.framework-card.premium { border-left: 3px solid var(--premium); }
.framework-card.standard { border-left: 3px solid var(--success); }
.framework-card.essential { border-left: 3px solid var(--accent); }
.framework-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.framework-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.framework-code { font-size: 0.75rem; color: var(--text-muted); }
.framework-tier { font-size: 0.7rem; padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 500; }
.framework-tier.premium { background: rgba(168,85,247,0.1); color: var(--premium); }
.framework-tier.standard { background: rgba(34,197,94,0.1); color: var(--success); }
.framework-tier.essential { background: rgba(14,165,233,0.1); color: var(--accent); }
.framework-metrics { display: flex; gap: 1.5rem; margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.framework-pricing { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.framework-pricing div span { display: block; }
.framework-pricing div span:first-child { color: var(--text-muted); font-size: 0.75rem; }
.framework-pricing div span:last-child { color: var(--text-primary); font-weight: 600; }

/* Architecture */
.architecture { background: var(--bg-secondary); border-radius: 24px; padding: 3rem; border: 1px solid var(--border); }
.arch-diagram { max-width: 800px; margin: 0 auto; }
.arch-layer { margin-bottom: 2rem; }
.arch-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
.arch-box { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,182,212,0.05)); border: 1px solid rgba(14,165,233,0.3); border-radius: 12px; padding: 1.5rem; text-align: center; }
.arch-box h4 { color: var(--accent); margin-bottom: 0.5rem; }
.arch-box code { background: var(--bg-primary); padding: 0.25rem 0.75rem; border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); }
.arch-connector { display: flex; justify-content: center; padding: 1rem 0; color: var(--accent); }
.arch-tenants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.arch-tenant { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.arch-tenant.customer { border-top: 3px solid var(--success); }
.arch-tenant.firm { border-top: 3px solid var(--warning); }
.arch-tenant h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.arch-tenant code { font-size: 0.75rem; color: var(--text-muted); }

/* CTA */
.cta { text-align: center; padding: 5rem 2rem; background: radial-gradient(ellipse at bottom, var(--accent-glow) 0%, transparent 50%); }
.cta h2 { margin-bottom: 1rem; }
.cta p { color: var(--text-secondary); margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; padding: 0.375rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-copyright p { color: var(--text-muted); font-size: 0.75rem; margin: 0; }
.footer-copyright .powered-by { margin-top: 0.25rem; }
.footer-copyright .powered-by a { color: var(--accent); text-decoration: none; }
.footer-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-badge { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-muted); }
.footer-badge svg { width: 14px; height: 14px; color: var(--success); }

/* Team Page Specific */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s; }
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.team-card.ceo { border-top: 3px solid #f093fb; }
.team-card.cro { border-top: 3px solid #4facfe; }
.team-card.vp { border-top: 3px solid var(--success); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: white; display: flex; align-items: center; justify-content: center; font-size: 2.5em; font-weight: bold; margin: 0 auto 1.5rem; border: 4px solid rgba(255,255,255,0.1); }
.team-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.team-title { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }
.team-bio { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.team-email { color: var(--text-muted); font-size: 0.8rem; }
.team-email a { color: var(--accent); text-decoration: none; }

/* Timeline */
.timeline { max-width: 900px; margin: 0 auto; position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-secondary)); }
.timeline-item { margin-bottom: 3rem; position: relative; }
.timeline-dot { position: absolute; left: -3.5rem; top: 0; width: 1rem; height: 1rem; background: var(--accent); border-radius: 50%; border: 3px solid var(--bg-primary); }
.timeline-year { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.timeline-content h3 { margin-bottom: 0.75rem; }
.timeline-content p { color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { 
  .nav-links { display: none; } 
  .portal-grid, .framework-grid, .team-grid { grid-template-columns: 1fr; } 
  .arch-tenants { grid-template-columns: 1fr; } 
  .footer-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 2rem; }
}
