/* ============================================
   SIE - Safety Intelligence Engine
   Website Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #00aa66;
    --safe: #22c55e;
    --monitor: #3b82f6;
    --intervene: #f59e0b;
    --oos: #ef4444;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --text: #1e293b;
    --text-light: #94a3b8;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

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

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-sie {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-text {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: white;
    padding: 6rem 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-display {
    text-align: center;
}

.score-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.score-ring.safe {
    background: linear-gradient(135deg, var(--safe), #16a34a);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.4);
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.score-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--safe);
    letter-spacing: 2px;
}

/* ============================================
   Problem Section
   ============================================ */

.problem-section {
    padding: 6rem 24px;
    background: white;
}

.problem-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.problem-card {
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.problem-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ============================================
   Solution Section
   ============================================ */

.solution-section {
    padding: 6rem 24px;
    background: var(--dark);
    color: white;
}

.solution-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.bridge-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.bridge-side {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    min-width: 250px;
}

.bridge-side h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.bridge-side ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.bridge-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arrow-text {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
}

.arrow-line {
    width: 4px;
    height: 40px;
    background: var(--primary);
}

/* ============================================
   Engines Section
   ============================================ */

.engines-section {
    padding: 6rem 24px;
    background: white;
}

.engines-section h2,
.engines-section .section-subtitle {
    text-align: center;
}

.engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.engine-card {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

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

.engine-card.highlight {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: white;
}

.engine-card.highlight .engine-abbr {
    background: var(--primary);
}

.engine-card.highlight p {
    color: rgba(255,255,255,0.8);
}

.engine-abbr {
    display: inline-block;
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.engine-card h4 {
    margin-bottom: 0.75rem;
}

.engine-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Determination Section
   ============================================ */

.determination-section {
    padding: 6rem 24px;
    background: var(--light);
}

.determination-section h2,
.determination-section .section-subtitle {
    text-align: center;
}

.determination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.determination-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.determination-card.safe { background: var(--safe); }
.determination-card.monitor { background: var(--monitor); }
.determination-card.intervene { background: var(--intervene); }
.determination-card.oos { background: var(--oos); }

.det-score {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.determination-card h4 {
    margin-bottom: 0.5rem;
}

.determination-card p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Defensibility Section
   ============================================ */

.defensibility-section {
    padding: 6rem 24px;
    background: white;
}

.defensibility-section h2,
.defensibility-section .section-subtitle {
    text-align: center;
}

.defensibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.defensibility-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.defensibility-text li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.audit-card {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
}

.audit-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.audit-line {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.audit-time {
    color: var(--safe);
    margin-right: 1rem;
}

/* ============================================
   Future Section
   ============================================ */

.future-section {
    padding: 6rem 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.future-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.future-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.future-icon svg {
    width: 40px;
    height: 40px;
}

.future-text h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.future-text p {
    opacity: 0.9;
}

.coming-soon {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.coming-soon span {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon ul {
    padding-left: 1.5rem;
}

.coming-soon li {
    list-style: disc;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 6rem 24px;
    background: var(--dark);
    color: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--darker);
    color: white;
    padding: 4rem 24px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-sie {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.875rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.875rem;
}

/* ============================================
   About Page
   ============================================ */

.about-hero {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: white;
    padding: 6rem 24px;
    text-align: center;
}

.about-hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.origin-section {
    padding: 6rem 24px;
    background: white;
}

.origin-text {
    max-width: 700px;
    margin: 0 auto;
}

.origin-text .quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary);
}

.build-section {
    padding: 6rem 24px;
    background: var(--light);
}

.build-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--light);
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 0;
}

.build-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.build-text li {
    list-style: disc;
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-style: italic;
}

.mission-section {
    padding: 6rem 24px;
    background: var(--dark);
    color: white;
}

.mission-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.mission-card {
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.mission-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-card h3 {
    margin-bottom: 1rem;
}

.mission-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.small-fleet-section {
    padding: 6rem 24px;
    background: white;
}

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

.small-fleet-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.comparison-side {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 200px;
}

.comparison-side h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.comparison-side ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
}

.comparison-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
}

.emphasis {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-top: 2rem;
}

.status-section {
    padding: 6rem 24px;
    background: var(--light);
}

.status-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.status-badge {
    display: inline-block;
    background: var(--intervene);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.status-card ul {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    padding-left: 1.5rem;
}

.status-card li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* ============================================
   Contact Page
   ============================================ */

.contact-hero {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: white;
    padding: 6rem 24px;
    text-align: center;
}

.contact-section {
    padding: 6rem 24px;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
}

.contact-details a {
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.contact-note {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-note h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-note ul {
    padding-left: 1.5rem;
}

.contact-note li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-card h2 {
    margin-bottom: 0.5rem;
}

.form-card > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-button {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.faq-section {
    padding: 6rem 24px;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.faq-item p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 24px;
    }

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

    .defensibility-content,
    .build-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bridge-visual {
        flex-direction: column;
    }

    .bridge-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo-text {
        display: none;
    }

    .comparison {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }
}
