/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0055A4;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #0055A4;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0055A4;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #64748b;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0055A4 0%, #EF4135 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat span {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.stat small {
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background: #f8fafc;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    color: #0055A4;
    margin-bottom: 1rem;
}

/* Definition Cards */
.definition-card {
    background: linear-gradient(135deg, #0055A4 0%, #003d82 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.definition-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.definition-card h3 {
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.definition-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Process Flow */
.process-flow {
    margin: 3rem 0;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #0055A4;
    transform: translateY(-2px);
}

.step-number {
    background: #0055A4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.pros, .cons {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid;
}

.pros {
    border-left-color: #EF4135;
}

.cons {
    border-left-color: #f59e0b;
}

.pros h4 {
    color: #EF4135;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons h4 {
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-cons ul {
    list-style: none;
    padding: 0;
}

.pros-cons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #EF4135;
    font-weight: bold;
}

.cons li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* SCA Focus Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.focus-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-4px);
}

.focus-item i {
    font-size: 3rem;
    color: #0055A4;
    margin-bottom: 1rem;
}

.focus-item h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

/* SBOM Section */
.sbom-card {
    background: linear-gradient(135deg, #EF4135 0%, #d63031 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.sbom-card p {
    margin: 0;
    font-size: 1.1rem;
}

/* Comparison Section */
.comparison-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.toggle-btn.active {
    background: white;
    color: #0055A4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comparison-view {
    display: none;
}

.comparison-view.active {
    display: block;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-row.header {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.comparison-row > div {
    padding: 1.5rem;
}

.aspect {
    font-weight: 500;
    color: #64748b;
}

.sast-col {
    background: #eff6ff;
    color: #003d82;
    font-weight: 500;
}

.sca-col {
    background: #f0fdf4;
    color: #b02a37;
    font-weight: 500;
}

/* Integration Steps */
.integration-steps {
    display: grid;
    gap: 2rem;
}

.integration-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #0055A4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.integration-step h4 {
    color: #0055A4;
    margin-bottom: 1rem;
}

/* Tools Section */
.tools-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.tools-view {
    display: none;
}

.tools-view.active {
    display: block;
}

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

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tool-card h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.tool-focus {
    background: #0055A4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.tool-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.tool-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #64748b;
}

.tool-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0055A4;
    font-weight: bold;
}

.tool-rating {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.tool-rating span {
    font-weight: 500;
    color: #0055A4;
}

/* Key Takeaways */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.takeaway {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.takeaway:hover {
    transform: translateY(-4px);
}

.takeaway i {
    font-size: 3rem;
    color: #0055A4;
    margin-bottom: 1rem;
}

.takeaway h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.takeaway p {
    color: #64748b;
    margin: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transition: top 0.3s ease;
    }

    .nav-menu.active {
        top: 100%;
    }

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

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comparison-row > div {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .comparison-row.header > div {
        background: #0055A4;
        color: white;
        font-weight: 600;
    }

    .aspect::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: #0055A4;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section > .container > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
