:root {
    --bg-dark: #0a0b0c;
    --bg-panel: #111214;
    --text-main: #e0e2e5;
    --text-muted: #80868c;
    --accent-weld: #ff5a00;
    --accent-glow: rgba(255, 90, 0, 0.4);
    --border-dim: rgba(255, 255, 255, 0.05);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
    --gutter: 4vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-dark); color-scheme: dark; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background & Grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 11, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dim);
}

.nav-logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; color: var(--text-main); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--accent-weld); }

.nav-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--accent-weld);
    box-shadow: 0 0 10px var(--accent-weld);
    width: 0;
    transition: width 0.5s ease;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 var(--gutter);
}

.hero .label { color: var(--accent-weld); margin-bottom: 1rem; }

.hero-weld-path {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.03);
}

.weld-arc {
    position: absolute;
    width: 150px;
    height: 3px;
    background: var(--accent-weld);
    box-shadow: 0 0 40px 15px var(--accent-glow);
    border-radius: 4px;
    left: -150px;
    top: -1px;
    animation: weld-sweep 4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes weld-sweep {
    0% { left: -150px; width: 0; filter: brightness(1); }
    30% { width: 400px; filter: brightness(2); }
    70% { width: 200px; filter: brightness(1.5); }
    100% { left: 100%; width: 0; filter: brightness(1); }
}

/* Hero Reveal Improvements */
.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 0.85;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4rem;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(50px);
    transition: all 1.5s 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.is-visible.hero .hero-title {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
}

/* General Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering reveals */
.grid-container > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid-container > .reveal:nth-child(2) { transition-delay: 0.2s; }
.grid-container > .reveal:nth-child(3) { transition-delay: 0.3s; }
.grid-container > .reveal:nth-child(4) { transition-delay: 0.4s; }

/* About Text Fix */
.about-text {
    max-width: 800px;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    opacity: 0.8;
}

/* FAQ Improvements */
.faq-section .section-title {
    margin-bottom: 1rem;
}

.faq-card {
    grid-column: span 6;
    padding: 4rem;
    border-right: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.faq-card:hover {
    background: rgba(255, 90, 0, 0.05);
    padding-left: 5rem;
}

/* Checkbox Style */
.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 1rem !important;
    cursor: pointer;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-weld);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
}
.section {
    position: relative;
    padding: 10rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.section.dark { background: var(--bg-panel); }

.seam {
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-weld);
    box-shadow: 0 0 10px var(--accent-weld);
    transition: width 2s cubic-bezier(0.7, 0, 0.3, 1);
}

.is-visible .seam { width: 100%; }

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-weld);
    display: block;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* About Section */
.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Cards */
.card {
    background: #15171a;
    padding: 3rem;
    border: 1px solid var(--border-dim);
    transition: all 0.4s;
    position: relative;
}

.card:hover { border-color: var(--accent-weld); transform: translateY(-5px); }

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-main);
}

/* Process Timeline */
.process-timeline {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 4rem 0;
    border-top: 1px solid var(--border-dim);
    position: relative;
    overflow: hidden;
}

.step-num { font-size: 1.5rem; color: var(--accent-weld); opacity: 0.5; }
.step-content h3 { font-size: 2rem; margin-bottom: 1rem; text-transform: uppercase; }
.step-content p { max-width: 600px; color: var(--text-muted); }

.weld-beam {
    position: absolute;
    top: 0; left: -100%;
    width: 200px; height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    pointer-events: none;
    opacity: 0;
}

.is-visible.active-weld .weld-beam {
    animation: beam-sweep 3s infinite linear;
    opacity: 1;
}

@keyframes beam-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Quality Specs */
.mono-list {
    list-style: none;
    font-family: var(--mono);
    font-size: 0.875rem;
    line-height: 2;
}

.mono-list li { color: var(--text-muted); }

.weld-trace {
    position: absolute;
    top: 2rem; right: 2rem;
    width: 60px; height: 60px;
    border: 1px dashed var(--accent-weld);
    border-radius: 50%;
    opacity: 0.3;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.wireframe-box {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-dim);
}

.wireframe {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 90, 0, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 90, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.final-img {
    position: absolute;
    inset: 0;
    background: #222; /* Placeholder for photo */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.is-visible .final-img { clip-path: inset(0 0 0 0); }

.project-info { margin-top: 2rem; }
.project-info h3 { margin-bottom: 0.5rem; text-transform: uppercase; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 3rem; }
.faq-item h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-main); }
.faq-item p { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    padding: 1.2rem 3rem;
    background: var(--accent-weld);
    color: #000;
    text-decoration: none;
    font-family: var(--mono);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn:hover { background: #fff; transform: translateY(-2px); }

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-main);
}

.btn.secondary:hover { border-color: var(--accent-weld); color: var(--accent-weld); }

/* Footer */
.footer {
    padding: 8rem 0;
    background: #050505;
    border-top: 1px solid var(--accent-weld);
}

.footer-logo { font-size: 4rem; font-weight: 800; opacity: 0.05; letter-spacing: -0.05em; margin-bottom: 2rem; }
.footer-meta p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }

/* FAQ Redesign */
.faq-grid {
    gap: 0;
    border-top: 1px solid var(--border-dim);
    border-left: 1px solid var(--border-dim);
}

.faq-card {
    grid-column: span 6;
    padding: 3rem;
    border-right: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    transition: background 0.3s;
}

.faq-card:hover {
    background: rgba(255, 90, 0, 0.03);
}

.faq-card h4 {
    margin: 1rem 0;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.faq-card p {
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.is-active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-panel);
    width: 100%;
    max-width: 600px;
    padding: 4rem;
    border: 1px solid var(--accent-weld);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--accent-weld); }

.order-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.6rem;
    color: var(--accent-weld);
}

.order-form input, .order-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-dim);
    padding: 1rem 0;
    color: var(--text-main);
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.3s;
}

.order-form input:focus, .order-form textarea:focus {
    border-color: var(--accent-weld);
}

.order-form textarea {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 1024px) {
    .grid-container { grid-template-columns: repeat(12, 1fr); }
    .grid-container > * { grid-column: span 12 !important; }
    .faq-card { grid-column: span 12 !important; }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    .nav-links.is-active {
        right: 0;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }
    .nav-toggle span {
        width: 100%;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s;
    }
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--accent-weld);
    }
    .nav-toggle.is-active span:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--accent-weld);
    }
    .section { padding: 6rem 0; }
    .hero-footer { display: flex; flex-direction: column; gap: 2rem; }
    .hero-footer div { text-align: left !important; }
    .about-text p { font-size: 1.1rem; }
    .process-step { grid-template-columns: 50px 1fr; padding: 2rem 0; }
    .footer-logo { font-size: 3rem; }
    .modal-content { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; margin-bottom: 2rem; }
    .hero-desc { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    .btn { width: 100%; justify-content: center; padding: 1rem 2rem; }
}

.nav-toggle { display: none; }
