/* AEGIS Landing Page Styles */

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

/* Black Theme Variables - AEGIS logo dark blue (#061234) */
:root {
    --primary: #061234;
    --primary-dark: #050d28;
    --secondary: #061234;
    --accent: #0a1a42;
    --medium-blue: #2563eb;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --border: rgba(6, 18, 52, 0.5);
    --border-hover: rgba(6, 18, 52, 0.7);
    --success: #10b981;
    --error: #ef4444;
    --gradient: #061234;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lucide icons: bold white across the site */
[data-lucide] {
    color: #ffffff;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    padding-left: 32px;
    padding-right: 32px;
}

/* Navigation - Mobile-first: brand far left, links/buttons far right */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 18px 0;
}

.landing-system-notification {
    --sn-bg: #000000;
    --sn-text: #ffffff;
    --sn-border: #2563eb;
    --sn-accent: #2563eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.landing-system-notification--visible {
    transform: translateY(0);
    opacity: 1;
}

.landing-system-notification__inner {
    margin: 0;
    background: var(--sn-bg);
    color: var(--sn-text);
    border-bottom: 1px solid var(--sn-border);
    border-left: 4px solid var(--sn-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-system-notification__content {
    flex: 1;
    min-width: 0;
}

.landing-system-notification__title {
    font-weight: 700;
    color: var(--sn-text);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.landing-system-notification__message {
    color: var(--sn-text);
    opacity: 0.95;
    font-size: 0.875rem;
}

.landing-system-notification__cta {
    text-decoration: none;
    color: #ffffff;
    background: var(--sn-accent);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.landing-system-notification__dismiss {
    border: 1px solid var(--sn-border);
    background: transparent;
    color: var(--sn-text);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 52px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-right: 24px;
}

/* Nav logo: same size on every page (home, legal, docs) */
.nav-brand .logo-img,
.navbar .logo .logo-img {
    height: 44px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-right: 24px;
}

.beta-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    margin-left: 4px;
    border: 1px solid var(--medium-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:not(.nav-btn):hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Lock nav links so :visited and :active never change color or font size */
.nav-links a:visited,
.nav-links a:active {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-download-link:visited,
.nav-download-link:active {
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Nav buttons - wide enough, never stacked */
.nav-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    min-width: 108px;
    text-align: center;
    box-sizing: border-box;
}

.nav-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--medium-blue);
}

.nav-btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--medium-blue);
    color: var(--text-primary);
}

.nav-btn-primary {
    background: var(--medium-blue);
    color: white;
    border: 2px solid var(--medium-blue);
}

.nav-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.nav-brand:focus-visible,
.nav-links a:focus-visible,
.nav-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Logged-in username label in the navbar */
.nav-username {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 4px;
    opacity: 0.85;
}

/* Mobile Menu Button - 44px min touch target (mobile-first) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 18, 52, 0.4);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section - Logo 1280x700, tight fit, no extra vertical space */
.hero {
    padding: 100px 0 48px;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
}

.hero-logo-img {
    width: min(100%, 1280px);
    height: auto;
    max-height: 700px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero .badge {
    color: #ffffff;
}

.badge-small {
    padding: 4px 8px;
    background: var(--success);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    min-width: 200px;
    text-align: center;
}

.hero-cta .btn-primary {
    border: 2px solid var(--medium-blue);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 18, 52, 0.4);
    border-color: var(--accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #ffffff;
}

.feature-icon svg,
.feature-icon i {
    width: 100%;
    height: 100%;
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Deployment Section */
.deployment {
    background: var(--bg-secondary);
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.deployment-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.deployment-card.featured {
    border-color: var(--medium-blue);
    box-shadow: 0 20px 40px rgba(6, 18, 52, 0.4);
}

.deployment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ffffff;
}

.deployment-icon svg,
.deployment-icon i {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

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

.deployment-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.deployment-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.deployment-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pricing Section — World-class, premium, consistent with app billing
   Solid colors, clear hierarchy, no gradients.
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing {
    background: var(--bg-primary);
    padding-top: 5rem;
    padding-bottom: 5.5rem;
}

.pricing .section-header {
    margin-bottom: 3.25rem;
}

.pricing .section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pricing .section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.badge-small {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.2rem 0.5rem;
    background: var(--medium-blue);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid #ffffff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1f2937;
    border: 1px solid #374151;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 14px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: #ffffff;
    transition: transform 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
    background: var(--medium-blue);
    border-color: #ffffff;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.pricing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-primary);
    text-align: center;
    margin: 3.5rem 0 1.75rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pricing-grid-four {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    padding: 2rem 1.75rem;
    background: #0c0c0c;
    border: 1px solid #1f2937;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    border-color: #374151;
}

.pricing-card.featured {
    border-color: var(--medium-blue);
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--medium-blue), 0 24px 48px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
    background: #0c0c0c;
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 0 0 1px var(--medium-blue), 0 28px 56px rgba(0, 0, 0, 0.45);
}

.pricing-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--medium-blue);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #ffffff;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 1.25rem 0 0.35rem;
}

.price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.features-list {
    list-style: none;
    margin: 0 0 1.75rem;
    flex: 1;
}

.features-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #1a1a1a;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    background: var(--medium-blue);
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    margin-top: auto;
}

.pricing-card .btn-primary:hover,
.pricing-card .btn-secondary:hover {
    background: #1d4ed8;
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

/* CTA section and hero Start Free Trial: same medium blue + white border for visibility */
.cta .btn-primary,
.hero-cta .btn-primary,
.cta-signup.btn-primary {
    background: var(--medium-blue);
    border: 1px solid #ffffff;
    color: white;
}

.cta .btn-primary:hover,
.hero-cta .btn-primary:hover,
.cta-signup.btn-primary:hover {
    background: #1d4ed8;
    border-color: #ffffff;
    color: white;
}

/* List check icons (Lucide) - white, bold */
.list-check {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: #ffffff;
}

.list-check svg {
    stroke-width: 2.5;
}

.hidden {
    display: none;
}

.enterprise-cta {
    text-align: center;
    padding: 60px;
    background: var(--primary);
    border: 1px solid var(--medium-blue);
    border-radius: 16px;
    color: white;
}

.enterprise-cta h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.enterprise-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    color: white;
}

.btn-enterprise {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-enterprise:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 18, 52, 0.4);
}

/* FAQ Section */
.faq {
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.faq-item {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: var(--primary);
    color: white;
    text-align: center;
    border: 1px solid var(--medium-blue);
    border-radius: 16px;
    margin-left: 24px;
    margin-right: 24px;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-col p {
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
}

.copyright-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.copyright-link:hover {
    color: #ffffff;
}

/* Documentation Styles */
.docs-nav {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.docs-nav h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.docs-nav ul {
    list-style: none;
}

.docs-nav ul li {
    margin-bottom: 8px;
}

.docs-nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-nav ul li a:hover {
    color: #ffffff;
}

.docs-content {
    max-width: 800px;
}

.docs-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
}

.docs-content h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.docs-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.docs-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docs-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.docs-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.docs-content code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent);
}

.docs-content a {
    color: #ffffff;
    text-decoration: none;
}

.docs-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Keep legal page inline links visible on dark backgrounds */
.legal-page a,
.legal-page a:visited {
    color: #ffffff;
}

.legal-page a:hover,
.legal-page a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 48px;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-box .btn-primary {
    margin: 0 8px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.cta-box .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.cta-box .btn-secondary {
    margin: 0 8px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--medium-blue);
    border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 2px solid var(--medium-blue);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--medium-blue);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

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

.contact-form button {
    width: 100%;
}

/* Match contact submit button to nav Sign Up button */
.contact-form .btn-primary {
    background: var(--medium-blue);
    border: 2px solid var(--medium-blue);
    color: #ffffff;
}

.contact-form .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.contact-status {
    margin-top: 12px;
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* Honeypot for spam bots */
.honeypot {
    display: none !important;
}

/* Per-field validation error text */
.field-error {
    margin-top: -6px;
    margin-bottom: 12px;
    color: var(--error);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

.contact-form-error {
    margin-top: 12px;
    color: var(--error);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

/* AEGIS Etymology Section */
.aegis-etymology {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.etymology-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 16px;
}

.etymology-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etymology-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.etymology-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.etymology-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.etymology-lead strong {
    color: var(--text-primary);
}

.etymology-today {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.etymology-tagline {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

/* Value Props Section */
.value-props {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

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

.value-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 12px;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #ffffff;
}

.value-icon svg,
.value-icon i {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* Security Section */
.security-section {
    background: var(--bg-secondary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.security-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--medium-blue);
    border-radius: 12px;
    transition: all 0.3s;
}

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

.security-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #ffffff;
}

.security-icon svg,
.security-icon i {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.security-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* Nav Download Link - visible like other nav links */
.nav-download-link {
    font-weight: 600;
    color: #ffffff !important;
}

.nav-download-link:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Company Info Section */
.company-info {
    background: var(--bg-primary);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.company-info .container {
    max-width: 800px;
}

.company-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.company-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links .nav-btn {
        min-width: 96px;
        padding: 10px 18px;
    }

    .hero-logo-img {
        max-height: 700px;
        width: min(100%, 1280px);
    }

    .section-header h2 {
        font-size: 36px;
    }

    .cta h2 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile menu backdrop (click outside to close) */
.nav-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: block;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
        z-index: 1002;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
        z-index: 1001;
        padding: 100px 24px 40px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1;
        pointer-events: all;
    }

    .nav-auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 16px;
        margin-top: 10px;
    }

    .nav-links img {
        display: none;
        /* Hide any extra logos in the links list */
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links .nav-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 16px;
        font-size: 1.1rem;
        display: block;
        text-align: center;
    }

    .hero-logo-img {
        max-height: 400px;
        width: min(100%, 100%);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 17px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 17px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .deployment-grid,
    .pricing-grid,
    .pricing-grid-four,
    .faq-grid,
    .value-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .pricing .section-header h2 {
        font-size: 2rem;
    }

    .pricing-section-title {
        font-size: 0.75rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .enterprise-cta {
        padding: 40px 24px;
    }

    .enterprise-cta h3 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #60a5fa;
    border-radius: 12px 12px 0 0;
    padding: 24px;
    z-index: 2147483001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-buttons .btn-primary {
    background: var(--medium-blue) !important;
    border-color: var(--medium-blue) !important;
    color: #ffffff !important;
}

.cookie-buttons .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Hide consent UI immediately when cookie says user already chose (see inline head script). */
html.aegis-cookie-consented #cookieBanner,
html.aegis-cookie-consented #cookieOverlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent background scroll while gate is active (iOS / Safari / Windows). */
html.aegis-cookie-gate-active,
body.aegis-cookie-gate-active {
    overflow: hidden !important;
    height: 100%;
}

body.aegis-cookie-gate-active {
    touch-action: none;
    overscroll-behavior: none;
}

/* Block clicks/scroll on all page chrome until consent (pairs with inert in cookie-consent.js). */
body.aegis-cookie-gate-active > *:not(#cookieOverlay):not(#cookieBanner) {
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2147483000;
    display: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.cookie-overlay.active {
    display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--medium-blue);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(6, 18, 52, 0.5);
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(6, 18, 52, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Footer Tagline */
.footer-tagline {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 16px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* Responsive - Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary {
        flex: 1;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================================
   LUCIDE ICON WHITE ENFORCEMENT (must stay last in file)
   Uses !important so no parent color, SVG attribute, or JS style can override.
   Targets the SVG root AND every child element inside (path, circle, line,
   polyline, rect, ellipse, polygon, etc.) for all Lucide icon containers.
   Using the wildcard (*) child selector is the most robust approach.
   ============================================================ */

/* --- SVG root elements --- */
.feature-icon svg,
.value-icon svg,
.security-icon svg,
.deployment-icon svg,
.list-check svg,
.scroll-to-top svg,
.badge svg,
.cookie-content svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* --- Every child element inside those SVGs --- */
.feature-icon svg *,
.value-icon svg *,
.security-icon svg *,
.deployment-icon svg *,
.list-check svg *,
.scroll-to-top svg *,
.badge svg *,
.cookie-content svg * {
    stroke: #ffffff !important;
    stroke-width: inherit !important;
    fill: none !important;
}