/* KNOWY AI™ Global Stylesheet v2.0 */
:root {
  --navy: #0A2463;
  --navy-dark: #060F1E;
  --navy-mid: #0A1628;
  --navy-light: #0D1B2A;
  --orange: #FF6B2B;
  --gold: #FFD700;
  --white: #FFFFFF;
  --text-light: #E0EEFF;
  --text-muted: #7B9CC4;
  --green: #00C853;
  --yellow: #FFB300;
  --red: #D50000;
  --card-bg: #0D1B2A;
  --border: #1A3A7A;
  --font: 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--navy-dark); color: var(--text-light); line-height: 1.6; }

/* NAV */
.nav { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(6,15,30,0.97); backdrop-filter: blur(12px); border-bottom: 2px solid var(--orange); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .ghost { font-size: 26px; }
.nav-logo .brand { color: var(--gold); font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.nav-logo .tm { color: var(--orange); font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 6px; transition: all .2s; }
.nav-links a:hover { color: var(--gold); background: rgba(255,107,43,0.1); }
.nav-cta { background: var(--orange); color: var(--white) !important; font-weight: 700; border-radius: 20px !important; padding: 8px 18px !important; }
.nav-cta:hover { background: #e55a1f !important; color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; width: 100%; background: var(--navy-dark); border-bottom: 2px solid var(--orange); padding: 20px 24px; flex-direction: column; gap: 12px; z-index: 999; }
.mobile-menu a { color: var(--text-light); text-decoration: none; font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* SECTIONS */
section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-badge { display: inline-block; background: rgba(255,107,43,0.15); color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(255,107,43,0.3); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.section-title span { color: var(--gold); }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.8; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; background: radial-gradient(ellipse at 30% 50%, rgba(10,36,99,0.8) 0%, var(--navy-dark) 70%); padding-top: 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230A2463' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.4; }
.hero-content { position: relative; z-index: 1; }
.hero-ghost { font-size: 72px; display: block; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-eyebrow { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.hero-title .gold { color: var(--gold); }
.hero-title .orange { color: var(--orange); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 580px; line-height: 1.8; margin-bottom: 40px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn-primary { background: linear-gradient(135deg, var(--orange), #e55a1f); color: var(--white); text-decoration: none; padding: 14px 28px; border-radius: 30px; font-size: 14px; font-weight: 700; letter-spacing: 1px; transition: all .3s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,43,0.4); }
.btn-secondary { background: transparent; color: var(--gold); text-decoration: none; padding: 14px 28px; border-radius: 30px; font-size: 14px; font-weight: 700; border: 2px solid var(--gold); transition: all .3s; display: inline-block; }
.btn-secondary:hover { background: rgba(255,215,0,0.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-light); text-decoration: none; padding: 12px 24px; border-radius: 30px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); transition: all .3s; display: inline-block; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* STATS WIDGET */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.stat-card { background: rgba(10,36,99,0.5); border: 1px solid var(--border); border-top: 3px solid var(--orange); border-radius: 12px; padding: 20px 16px; text-align: center; backdrop-filter: blur(8px); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.stat-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all .3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 12px 40px rgba(255,107,43,0.15); }
.card-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.card-title { color: var(--gold); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card-text { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.card-features { list-style: none; margin-top: 16px; }
.card-features li { color: var(--text-light); font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.card-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.card-link { display: inline-block; margin-top: 20px; color: var(--orange); font-size: 13px; font-weight: 600; text-decoration: none; }
.card-link:hover { color: var(--gold); }

/* PORTAL CARDS */
.portal-card { background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); border: 1px solid var(--border); border-radius: 20px; padding: 36px; position: relative; overflow: hidden; }
.portal-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,107,43,0.08); }
.portal-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.portal-badge.host { background: rgba(0,200,83,0.15); color: var(--green); border: 1px solid rgba(0,200,83,0.3); }
.portal-badge.agent { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.portal-badge.command { background: rgba(255,107,43,0.15); color: var(--orange); border: 1px solid rgba(255,107,43,0.3); }
.portal-badge.ai { background: rgba(10,36,99,0.6); color: var(--text-light); border: 1px solid var(--border); }
.portal-url { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; font-family: monospace; }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.compare-table th { background: var(--navy); color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; padding: 14px 16px; text-align: left; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.compare-table tr:nth-child(odd) td { background: var(--navy-mid); }
.compare-table tr:nth-child(even) td { background: var(--navy-dark); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px; text-align: center; position: relative; transition: all .3s; }
.pricing-card.featured { border-color: var(--orange); background: linear-gradient(135deg, #0A1628, #0A2463); }
.pricing-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 2px; padding: 4px 16px; border-radius: 20px; }
.price-tier { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.price-amount { font-size: 42px; font-weight: 900; color: var(--gold); }
.price-period { font-size: 13px; color: var(--text-muted); }
.price-features { list-style: none; text-align: left; margin: 24px 0; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.price-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ROLES */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.role-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 16px; text-align: center; transition: all .3s; }
.role-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.role-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.role-name { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.role-desc { color: var(--text-muted); font-size: 11px; }

/* CONTACT */
.contact-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--navy-mid); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text-light); font-size: 14px; transition: border .2s; font-family: var(--font); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--navy-dark); }

/* FOOTER */
.footer { background: var(--navy-dark); border-top: 3px solid var(--orange); padding: 60px 24px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand .ghost { font-size: 40px; display: block; margin-bottom: 12px; }
.footer-brand .name { color: var(--gold); font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 10px; line-height: 1.7; }
.footer-col h4 { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-muted); font-size: 12px; }
.ecosystem-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(10,36,99,0.5); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; padding: 4px 12px; border-radius: 20px; }

/* NOTICE BANNER */
.notice { background: linear-gradient(90deg, rgba(255,107,43,0.15), rgba(10,36,99,0.3)); border: 1px solid rgba(255,107,43,0.3); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.notice-icon { font-size: 20px; }
.notice-text { color: var(--text-light); font-size: 13px; }

/* SECTION BG VARIATIONS */
.bg-navy { background: var(--navy-mid); }
.bg-dark { background: var(--navy-dark); }
.bg-gradient { background: linear-gradient(135deg, var(--navy-dark) 0%, #0A1628 50%, var(--navy-dark) 100%); }

/* TIMELINE */
.timeline { position: relative; padding-left: 32px; margin-top: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--orange), var(--navy)); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--navy-dark); }
.timeline-phase { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.timeline-title { color: var(--gold); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.timeline-text { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ALERT BOX */
.alert { border-left: 4px solid var(--gold); background: var(--navy-mid); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 16px 0; }
.alert-title { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.alert-text { color: var(--text-light); font-size: 13px; line-height: 1.7; }

/* TRUST INDICATORS */
.trust-bar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 32px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.trust-item::before { content: '✓'; color: var(--green); font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { flex-direction: column; }
  section { padding: 60px 16px; }
  .contact-form { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
