/* =============================================
   SyntaxHero – Main Stylesheet
   ============================================= */

/* ===== VARIABLES ===== */
:root {
    --primary: #54F34A;
    --primary-dark: #3dda33;
    --primary-glow: rgba(84, 243, 74, 0.3);
    --primary-subtle: rgba(84, 243, 74, 0.08);
    --bg: #121212;
    --bg-secondary: #1a1a2e;
    --surface: #1E1E1E;
    --border: rgba(255, 255, 255, 0.07);
    --border-primary: rgba(84, 243, 74, 0.15);
    --text: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-white: #ffffff;
}

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

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

p {
    margin-bottom: 1.4rem;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.nav-logo:hover {
    color: var(--primary);
    text-decoration: none;
}

.logo-image {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li::before {
    display: none !important;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: block;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-subtle);
    font-weight: 600;
}

/* ===== PAGE HEADER (inner pages hero) ===== */
.page-header {
    background: linear-gradient(160deg, #121212 0%, #1a1a2e 100%);
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-primary);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top center,
        rgba(84, 243, 74, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.page-header-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0 0 0.75rem;
    position: relative;
    letter-spacing: -0.5px;
}

.page-header .page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    line-height: 1.7;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.825rem;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.35rem 0.875rem;
    border-radius: 2rem;
    position: relative;
}

/* ===== CONTENT TYPOGRAPHY ===== */
h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 2.5rem 0 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 1.75rem 0 0.75rem;
}

/* ===== LISTS ===== */
.container ul,
.container ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 0;
}

.container ul {
    list-style: none;
}

.container ul > li {
    position: relative;
    padding-left: 1.375rem;
    margin-bottom: 0.5rem;
    line-height: 1.65;
    color: var(--text);
}

.container ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.container ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.container ol > li {
    margin-bottom: 0.625rem;
    line-height: 1.65;
    padding-left: 0.375rem;
}

/* Override for nav and footer lists */
.nav-links,
.footer-links,
.toc ol,
.timeline-list {
    padding-left: 0 !important;
}

.nav-links li::before,
.footer-links li::before {
    display: none !important;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: var(--surface);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.toc h3 {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.875rem;
}

.toc ol {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.125rem 1.5rem;
}

.toc ol li {
    padding-left: 0 !important;
    margin-bottom: 0;
}

.toc ol li::before {
    display: none !important;
}

.toc ol a {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
    text-decoration: none;
}

.toc ol a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ===== CALLOUT BOXES ===== */
.highlight {
    background: rgba(84, 243, 74, 0.06);
    border: 1px solid rgba(84, 243, 74, 0.2);
    border-left: 3px solid var(--primary);
    padding: 1.125rem 1.375rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
    color: var(--text);
}

.highlight strong {
    color: var(--text-white);
}

.info-box {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3B82F6;
    padding: 1.125rem 1.375rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
    color: var(--text);
}

.info-box h4 {
    color: #93C5FD;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #EF4444;
    padding: 1.125rem 1.375rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
    color: var(--text);
}

.warning-box h4 {
    color: #FCA5A5;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.warning-box ul {
    margin-bottom: 0 !important;
}

/* ===== CONTACT INFO BOX ===== */
.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 1.375rem 1.5rem;
    margin: 1.25rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.contact-info a {
    color: var(--primary);
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.contact-info strong {
    color: var(--text-white);
}

/* ===== DATA TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 2rem;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table thead tr {
    background: rgba(0, 0, 0, 0.35);
}

.data-table th {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table tbody tr {
    background: var(--surface);
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(84, 243, 74, 0.04);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td strong {
    color: var(--text-white);
}

/* Badges */
.delete-badge,
.retain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.625rem;
    border-radius: 2rem;
    font-size: 0.775rem;
    font-weight: 600;
    white-space: nowrap;
}

.delete-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.retain-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ===== STEPS CONTAINER ===== */
.steps-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0;
}

.steps-container h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-white);
}

/* ===== EMAIL LINK BUTTON ===== */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #000 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none !important;
    transition: all 0.22s ease;
    box-shadow: 0 4px 18px var(--primary-glow);
    margin: 0.75rem 0;
}

.email-link:hover {
    background: var(--primary-dark);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(84, 243, 74, 0.4);
    text-decoration: none !important;
}

/* ===== TIMELINE ===== */
.timeline {
    margin: 1.5rem 0 2rem;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.timeline-list > li {
    display: flex;
    gap: 1.125rem;
    padding-left: 0;
    padding-bottom: 1.625rem;
    position: relative;
    margin-bottom: 0;
}

.timeline-list > li::before {
    display: none !important;
}

.timeline-list > li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.0625rem;
    top: 2.25rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-badge {
    width: 2.125rem;
    height: 2.125rem;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.825rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-content {
    padding-top: 0.25rem;
    flex: 1;
    color: var(--text);
}

.timeline-content strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    margin-top: 1.5rem;
}

.contact-section h3 {
    color: var(--text-white);
}

/* ===== HERO (index page) ===== */
.hero {
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #121212 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top center,
        rgba(84, 243, 74, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 760px;
}

.hero-logo {
    width: 160px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 22px rgba(84, 243, 74, 0.35));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.04);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.75px;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
    text-decoration: none;
    color: #121212;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: rgba(84, 243, 74, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: #0f0f0f;
    padding: 5rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.features h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0 0 3rem;
    padding-top: 0;
    border-top: none;
}

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

.feature-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.875rem 1.625rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(84, 243, 74, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 0.625rem;
}

.feature-card p {
    color: #9CA3AF;
    line-height: 1.75;
    font-size: 0.925rem;
    margin-bottom: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(160deg, #121212 0%, #1a1a2e 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(84, 243, 74, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.about-container {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    text-align: center;
    border-top: none;
    padding-top: 0;
}

.about p {
    font-size: 1.1rem;
    color: #D1D5DB;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0a0a;
    color: var(--text-muted);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.footer-copyright {
    color: #6B7280;
    font-size: 0.825rem;
}

.footer-copyright p {
    margin-bottom: 0.25rem;
}

.footer-copyright p:last-child {
    margin-bottom: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-link {
        padding: 0.45rem 0.625rem;
        font-size: 0.825rem;
    }

    .hero {
        padding: 5rem 1.25rem 4rem;
    }

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

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

    .page-header {
        padding: 3rem 1.25rem 2.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .features {
        padding: 4rem 1.25rem;
    }

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

    .toc ol {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2.5rem 1.25rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-links {
        gap: 0;
    }

    .about {
        padding: 4rem 1.25rem;
    }
}
