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

:root {
    --green: #22c55e;
    --bg: #000;
    --bg-elevated: #0a0a0a;
    --text: #fff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --section-gap: 100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-brand {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Desktop nav links */
.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-cta {
    padding: 8px 18px;
    background: var(--green);
    color: #000 !important;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: #1ebd56 !important;
}

/* Hamburger — mobile only */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--green);
}

/* ===== Sections ===== */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-inner-wide {
    max-width: 800px;
    margin: 0 auto;
}

.section-heading {
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.section-heading-lg {
    font-size: clamp(32px, 6vw, 52px);
}

.text-green {
    color: var(--green);
}

.section-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
}

/* ===== Hero Section ===== */
.section-hero {
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 100px;
    margin-bottom: 28px;
    background: rgba(34, 197, 94, 0.06);
}

/* ===== Feature Cards ===== */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.green-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Problem Statement ===== */
.section-problem {
    padding: 100px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Stats Section ===== */
.section-manufacturing {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: clamp(36px, 7vw, 48px);
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-style: italic;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Use Case Cards ===== */
.section-use-cases {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.use-case-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.use-case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.2s, background 0.2s;
}

.use-case-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.use-case-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Offerings ===== */
.section-offerings {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.offering-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.offering-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.2s;
}

.offering-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.offering-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.check-icon {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== Mission Section ===== */
.section-mission {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== CTA Section ===== */
.section-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 100px;
}

.cta-layout {
    display: flex;
}

.cta-text {
    max-width: 640px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-primary {
    background: var(--green);
    color: #000;
}

.btn-primary:hover {
    background: #1ebd56;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

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

.footer-legal a:hover {
    color: var(--text-muted);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #0e0e0e;
    padding: 40px;
    border-radius: 16px;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    color: #fff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select option {
    background: #0e0e0e;
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: var(--green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: var(--font);
}

.btn-submit:hover {
    background: #1ebd56;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.success-message p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

/* ================================================================
   DESKTOP (≥ 900px) — higher density, multi-column layouts
   ================================================================ */
@media (min-width: 900px) {
    :root {
        --section-gap: 100px;
    }

    .nav-inner {
        padding: 0 40px;
    }

    /* Show desktop nav links, hide hamburger */
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    /* Sections */
    .section {
        padding: 100px 40px;
    }

    .section-inner-wide {
        max-width: 1120px;
    }

    .section-hero {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .section-heading {
        font-size: 44px;
    }

    .section-heading-lg {
        font-size: 52px;
    }

    .section-body {
        font-size: 17px;
    }

    /* Hero badge */
    .hero-badge {
        font-size: 13px;
        padding: 7px 16px;
    }

    /* Feature cards — 3 columns */
    .feature-cards {
        flex-direction: row;
        gap: 16px;
    }

    .feature-card {
        flex: 1;
        padding: 28px;
    }

    /* Stats — 4 columns inline */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        margin-bottom: 48px;
    }

    .stat-number {
        font-size: 42px;
    }

    /* Use case cards — 3 columns */
    .use-case-cards {
        flex-direction: row;
        gap: 16px;
    }

    .use-case-card {
        flex: 1;
        padding: 28px;
    }

    /* Offering cards — side by side */
    .offering-cards {
        flex-direction: row;
        gap: 16px;
    }

    .offering-card {
        flex: 1;
        padding: 32px;
    }

    /* Problem section */
    .section-problem {
        padding: 120px 40px;
    }

    /* CTA */
    .section-cta {
        padding-bottom: 120px;
    }

    /* Footer */
    .footer {
        padding: 56px 40px 28px;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-links {
        gap: 56px;
    }
}

/* ================================================================
   LARGE DESKTOP (≥ 1200px) — even wider
   ================================================================ */
@media (min-width: 1200px) {
    .nav-inner {
        padding: 0 48px;
    }

    .section {
        padding: 110px 48px;
    }

    .section-inner-wide {
        max-width: 1200px;
    }

    .section-hero {
        padding-top: 180px;
    }

    .section-heading {
        font-size: 48px;
    }

    .section-heading-lg {
        font-size: 56px;
    }

    .stats-grid {
        gap: 40px;
    }

    .stat-number {
        font-size: 48px;
    }

    .feature-card,
    .use-case-card {
        padding: 32px;
    }

    .feature-card h3,
    .use-case-card h3,
    .offering-card h3 {
        font-size: 18px;
    }

    .feature-card p,
    .use-case-card p,
    .check-list li {
        font-size: 15px;
    }
}

/* ================================================================
   SMALL MOBILE (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
    .section {
        padding: 64px 20px;
    }

    .section-hero {
        padding-top: 100px;
    }

    .section-heading {
        font-size: 26px;
    }

    .section-heading-lg {
        font-size: 28px;
    }

    .section-body {
        font-size: 15px;
    }

    .stat-number {
        font-size: 32px;
    }

    .feature-card,
    .use-case-card,
    .offering-card {
        padding: 22px;
    }

    .modal-content {
        padding: 28px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
