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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

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

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Colors */
.text-red { color: #E63946; }
.text-blue { color: #1D3557; }
.text-teal { color: #0D7377; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1a1a1a;
    color: #E63946;
}

.btn-primary:hover {
    background: #E63946;
    color: #1a1a1a;
}

.btn-dark {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-dark:hover {
    background: #333;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
}

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

.logo-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

.nav-links a:not(.btn) {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: #E63946;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 3rem;
}

.hero-chevrons {
    margin-top: 5rem;
}

.hero-chevrons svg {
    width: 80px;
    height: 50px;
}

/* Badge Bar */
.badge-bar {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 73px;
    z-index: 999;
    transition: gap 0.05s ease-out;
}

.badge {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.badge-orange {
    background: #F4A261;
    color: #fff;
}

.badge-red {
    background: #E63946;
    color: #fff;
}

.badge-navy {
    background: #1D3557;
    color: #fff;
}

.badge-teal {
    background: #0D7377;
    color: #fff;
}

/* OSAS Section */
.osas-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.osas-container {
    max-width: 1100px;
    margin: 0 auto;
}

.osas-header {
    text-align: center;
    margin-bottom: 3rem;
}

.osas-subtitle {
    font-size: 1.15rem;
    color: #444;
    margin-top: 0.5rem;
}

.osas-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.osas-main p {
    font-size: 1.05rem;
    color: #444;
}

.osas-main ul {
    margin: 1.25rem 0;
}

.osas-main li {
    font-size: 1.05rem;
    color: #444;
}

.osas-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.osas-detail-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #E63946;
}

.osas-detail-card h4 {
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.osas-detail-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
}

.hero h1 {
    margin-bottom: 3rem;
}

.hero-tagline {
    margin-bottom: 3.5rem;
}

.hero-tagline p {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: #444;
}

.hero-tagline .divider {
    margin: 0 1.25rem;
    color: #ccc;
}


/* Problem Section */
.problem-section {
    background: #f8f8f8;
    padding: 6rem 2rem;
}

.problem-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.problem-left h2 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1.2;
    font-weight: 800;
}

.problem-right p {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.8;
}

/* Metrics Section */
.metrics-section {
    padding: 6rem 2rem;
}

.metrics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.metrics-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.metric-card {
    padding: 2.5rem;
    border-radius: 16px;
}

.metric-card-pink {
    background: #FDE8E8;
}

.metric-card-blue {
    background: #E8F4F8;
}

.metric-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.metric-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.metric-card ul {
    margin: 1rem 0;
}

.metric-example {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.metric-rule {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* How It Works Section */
.how-section {
    padding: 6rem 2rem;
    background: #f8f8f8;
}

.how-container {
    max-width: 1100px;
    margin: 0 auto;
}

.how-container h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.how-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border-top: 4px solid #E63946;
}

.how-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #E63946;
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.how-card h3 {
    margin-bottom: 0.25rem;
}

.how-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 600;
}

.how-card p {
    font-size: 1rem;
    color: #444;
}

/* Open Source Section */
.opensource-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.opensource-container {
    max-width: 900px;
    margin: 0 auto;
}

.opensource-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.opensource-content {
    text-align: center;
    margin-bottom: 3rem;
}

.opensource-content p {
    font-size: 1.1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.opensource-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.opensource-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #0D7377;
}

.opensource-item h4 {
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.opensource-item p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: #f8f8f8;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 {
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.15rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.about-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 4px solid #1D3557;
}

.about-card h4 {
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.about-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    color: #ffffff;
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    margin-bottom: 0.5rem;
}

.contact-container > p {
    color: #aaa;
    margin-bottom: 2rem;
}

.contact-info {
    margin: 2.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #E63946;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #111;
    color: #888;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.footer-email {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #555;
}

.footer-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-linkedin {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border: 1px solid #555;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}

.footer-linkedin:hover {
    color: #0A66C2;
    border-color: #0A66C2;
}

.footer-privacy-link {
    color: #555;
    text-decoration: none;
}

.footer-privacy-link:hover {
    color: #ccc;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #E63946;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .nav-links.nav-open {
        display: flex;
    }
    
    .nav-links a:not(.btn) {
        display: block;
        font-size: 1rem;
    }
    
    .nav-links .btn {
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-tagline p {
        font-size: 1rem;
    }
    
    .badge-bar {
        gap: 0.75rem !important;
        flex-wrap: wrap;
        top: 58px;
        padding: 1.5rem 0;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    
    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .problem-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .problem-left h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .problem-right p {
        font-size: 1rem;
    }
    
    .osas-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 2rem;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
    }
    
    .how-section,
    .opensource-section,
    .about-section {
        padding: 4rem 1.5rem;
    }
    
    .opensource-items {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .footer-logo span {
        font-size: 0.75rem;
    }
}

/* Print */
@media print {
    .nav, .contact-section {
        display: none;
    }
}
