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

:root {
    --primary-color: #df3131;
    --primary-dark: #a81f1f;
    --accent-color: #e4c58a;
    --accent-dim: rgba(228, 197, 138, 0.6);
    --secondary-color: #0b3910;
    --text-dark: #fff8eb;
    --text-light: #b9c4ae;
    --bg-light: #0a1f0e;
    --bg-alt: #0d2812;
    --bg-card: #123018;
    --bg-darker: #060f08;
    --border-color: #24442a;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

a {
    color: var(--accent-color);
}

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Coming Soon corner ribbon */
.ribbon {
    position: fixed;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1100;
}

.ribbon span {
    position: absolute;
    top: 38px;
    right: -46px;
    width: 220px;
    padding: 6px 0;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--accent-dim);
    border-bottom: 1px solid var(--accent-dim);
}

/* Header */
header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 120px;
}

.nav-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .nav-cta {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 6px;
}

.nav-links .nav-cta:hover {
    background: var(--accent-color);
    color: var(--bg-darker);
}

/* Hero */
.hero {
    background:
        radial-gradient(circle at 50% 30%, rgba(30, 110, 44, 0.45) 0%, transparent 55%),
        linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-darker) 100%);
    padding: 4.5rem 0 5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.hero-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.hero-full .container {
    width: 100%;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: rgba(223, 49, 49, 0.12);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(223, 49, 49, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(223, 49, 49, 0); }
    100% { box-shadow: 0 0 0 0 rgba(223, 49, 49, 0); }
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 auto 1rem;
    max-width: 900px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    max-width: 780px;
    color: var(--text-light);
}

.hero-brand {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.hero-brand a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
}

.hero-brand a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 auto 3rem;
    max-width: 700px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dim);
    border-top-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.checklist li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.1rem 1.25rem 1.1rem 3rem;
    position: relative;
    font-weight: 500;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    width: 8px;
    height: 14px;
    border: solid var(--accent-color);
    border-width: 0 3px 3px 0;
    transform: translateY(-65%) rotate(45deg);
}

/* Sign-up box (mirrors aisecurity.education #contact) */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-box > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-details p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong {
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-brand p {
    color: var(--text-light);
}

.footer-logo {
    width: 56px;
    height: 56px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .navbar {
        padding-right: 20px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }

    .nav-logo {
        height: 38px;
    }

    .ribbon {
        display: none;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

    .contact-box {
        padding: 2rem 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
