/* GATOR MVP -- Design System
   Palette derived from logo: navy, teal, ice blue, white */

:root {
    --navy: #1a2744;
    --navy-light: #243352;
    --teal: #2cb5b5;
    --teal-dark: #1f8e8e;
    --teal-glow: rgba(44, 181, 181, 0.15);
    --ice: #d4eaf7;
    --ice-light: #e8f4fc;
    --blue-mid: #3a7ca5;
    --white: #ffffff;
    --gray-100: #f7f9fb;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #64748b;
    --red-soft: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.06);
    --red-border: rgba(239, 68, 68, 0.25);
    --green-soft: #10b981;
    --green-bg: rgba(16, 185, 129, 0.06);
    --green-border: rgba(16, 185, 129, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ── Hero ── */
#hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--ice-light) 0%, var(--white) 100%);
}

.hero-banner {
    width: 100%;
    text-align: center;
    padding: 0 5%;
    margin-bottom: 32px;
}

.hero-logo {
    width: 100%;
    max-width: 1100px;
    height: auto;
    object-fit: contain;
}

#hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-acronym {
    font-size: 1.4rem;
    color: var(--blue-mid);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

#hero .tagline {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 12px;
    font-weight: 400;
}

.hero-origin {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* ── How It Works ── */
#how-it-works {
    background: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

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

.card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 39, 68, 0.08);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ── Properties ── */
#properties {
    background: var(--ice-light);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prop {
    text-align: center;
    padding: 24px 16px;
}

.prop-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.prop h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.prop p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ── Demo ── */
#demo {
    background: var(--white);
}

.demo-box {
    max-width: 800px;
    margin: 0 auto;
}

.demo-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#prompt-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
}

#prompt-input:focus {
    border-color: var(--teal);
}

#compare-btn {
    padding: 14px 28px;
    white-space: nowrap;
}

.examples-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.example-chip {
    padding: 6px 14px;
    background: var(--ice);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.example-chip:hover {
    background: var(--teal-glow);
    border-color: var(--teal);
}

.example-chip.selected {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal-dark);
}

/* ── Evolution Timeline ── */
.evolution-timeline {
    margin-top: 20px;
    position: relative;
    padding-left: 32px;
}

.evolution-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red-soft) 0%, var(--teal) 50%, var(--green-soft) 100%);
    border-radius: 2px;
}

.evo-entry {
    display: flex;
    position: relative;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.evo-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.evo-marker {
    position: absolute;
    left: -28px;
    top: 14px;
}

.evo-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--teal);
}

.evo-entry:first-child .evo-dot {
    background: var(--red-soft);
    box-shadow: 0 0 0 2px var(--red-soft);
}

.evo-entry:last-child .evo-dot {
    background: var(--green-soft);
    box-shadow: 0 0 0 2px var(--green-soft);
}

.evo-marker.final .evo-dot {
    width: 15px;
    height: 15px;
    margin-left: -2px;
    margin-top: -2px;
    background: var(--green-soft);
    box-shadow: 0 0 0 2px var(--green-soft), 0 0 8px rgba(16, 185, 129, 0.3);
}

.evo-content {
    flex: 1;
}

.evo-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--teal);
    margin-bottom: 4px;
}

.evo-entry:first-child .evo-step-label {
    color: var(--red-soft);
}

.evo-entry:last-child .evo-step-label {
    color: var(--green-soft);
}

.evo-response {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--navy);
    white-space: pre-wrap;
    transition: border-color 0.2s;
}

.evo-entry:last-child .evo-response {
    background: var(--green-bg);
    border-color: var(--green-border);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    border-radius: 10px;
    padding: 24px;
    min-height: 120px;
}

.result-card.base {
    background: var(--red-bg);
    border: 1.5px solid var(--red-border);
}

.result-card.governed {
    background: var(--green-bg);
    border: 1.5px solid var(--green-border);
}

.result-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card.base .result-label {
    color: var(--red-soft);
}

.result-card.governed .result-label {
    color: var(--green-soft);
}

.result-text {
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.result-placeholder {
    color: var(--gray-400);
    font-style: italic;
    font-size: 0.9rem;
}

/* Loading spinner */
.spinner {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--teal);
    font-weight: 500;
}

.spinner.active {
    display: block;
}

.spinner::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status banner */
.status-banner {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.status-banner.demo-mode {
    display: block;
    background: var(--teal-glow);
    color: var(--teal-dark);
    border: 1px solid rgba(44, 181, 181, 0.3);
}

.status-banner.loading {
    display: block;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-banner.error {
    display: block;
    background: var(--red-bg);
    color: var(--red-soft);
    border: 1px solid var(--red-border);
}

/* ── Limitations ── */
#limitations {
    background: var(--gray-100);
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.limitation-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 24px;
    border-left: 3px solid var(--red-soft);
}

.limit-icon {
    margin-bottom: 12px;
}

.limitation-card h4 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.limitation-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.55;
}

/* ── Roadmap / Next Work ── */
#next-work {
    background: var(--white);
}

.roadmap {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.roadmap::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--gray-200);
    border-radius: 2px;
}

.roadmap-item {
    position: relative;
    margin-bottom: 32px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-200);
}

.roadmap-marker.active {
    background: var(--teal);
    box-shadow: 0 0 0 2px var(--teal);
}

.roadmap-content h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.roadmap-content p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ── Visualizer link ── */
#visualizer-section {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

#visualizer-section .section-title {
    color: var(--white);
}

#visualizer-section p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid var(--teal);
    color: var(--teal);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

/* ── About ── */
#about {
    background: var(--white);
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 40px 36px;
}

.about-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.about-name-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.about-titles {
    font-size: 0.9rem;
    color: var(--teal-dark);
    font-weight: 500;
}

.about-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.about-highlight-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
}

@media (max-width: 768px) {
    .about-card { padding: 28px 20px; }
    .about-highlights { grid-template-columns: 1fr; }
}

/* ── Careers / Join the Team ── */
#careers {
    background: var(--ice-light);
}

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

.career-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 39, 68, 0.08);
}

.career-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    margin-bottom: 16px;
    border-left: 3px solid var(--gray-200);
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.career-card:hover .career-icon {
    color: var(--teal);
    background: var(--teal-glow);
    border-color: var(--teal);
}

.career-number {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
}

.career-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.career-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal-dark);
    margin-bottom: 16px;
}

.career-quote {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.5;
}

.career-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ── Footer ── */
footer {
    padding: 40px 0 32px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    border-top: 1px solid var(--gray-200);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
}

.footer-text {
    text-align: left;
}

.footer-developed {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.footer-patent {
    color: var(--gray-400);
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.footer-note {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ── Contact Button ── */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-contact:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.contact-section {
    text-align: center;
    padding: 60px 0;
    background: var(--white);
}

.contact-section p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ── Mobile Hamburger Menu ── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #hero h1 { font-size: 2rem; }
    .cards { grid-template-columns: 1fr; }
    .props-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-grid { grid-template-columns: 1fr; }
    .demo-input-row { flex-direction: column; }
    .limitations-grid { grid-template-columns: 1fr; }
    .careers-grid { grid-template-columns: 1fr; }

    .nav-hamburger { display: block; }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }
}
