/* ===========================================
   Atlas and Anvil - Main Stylesheet
   =========================================== */

:root {
    --color-steel: #2d3a47;
    --color-steel-dark: #1a2330;
    --color-steel-light: #3d4f61;
    --color-blueprint: #1e3a5f;
    --color-blueprint-light: #2a4d7a;
    --color-forge: #d4a574;
    --color-forge-glow: #e8b886;
    --color-iron: #6b7280;
    --color-rust: #9a6b4c;
    --color-cream: #f5f1eb;
    --color-white: #ffffff;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-steel-dark);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(26, 35, 48, 0.95) 0%, rgba(26, 35, 48, 0) 100%);
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(26, 35, 48, 0.98);
    backdrop-filter: blur(10px);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--color-cream);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-forge);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-forge);
}

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

.nav-cta {
    background: var(--color-forge);
    color: var(--color-steel-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--color-forge);
    cursor: pointer;
}

.nav-cta:hover {
    background: transparent;
    color: var(--color-forge);
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: all 0.3s ease;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 4rem 4rem;
    background: 
        linear-gradient(135deg, rgba(26, 35, 48, 0.97) 0%, rgba(30, 58, 95, 0.85) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--color-forge);
    color: var(--color-forge);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 span {
    display: block;
    color: var(--color-forge);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-iron);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeSlideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-graphic {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.08;
}

/* ===========================================
   Buttons
   =========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-forge);
    color: var(--color-steel-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--color-forge);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-forge-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--color-cream);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--color-steel-light);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--color-cream);
    transform: translateY(-2px);
}

/* ===========================================
   Stats Bar
   =========================================== */

.stats-bar {
    background: var(--color-steel);
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 4px solid var(--color-forge);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid var(--color-steel-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-forge);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-iron);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===========================================
   Section Styling
   =========================================== */

section {
    padding: 8rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.1);
    color: var(--color-forge);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-iron);
    max-width: 600px;
    margin: 0 auto;
}

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

.problem-section {
    background: linear-gradient(180deg, var(--color-steel-dark) 0%, var(--color-blueprint) 100%);
    position: relative;
}

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

.problem-card {
    background: rgba(45, 58, 71, 0.6);
    border: 1px solid var(--color-steel-light);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-rust);
    transition: width 0.3s ease;
}

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

.problem-card:hover::before {
    width: 6px;
    background: var(--color-forge);
}

.problem-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-rust);
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--color-iron);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===========================================
   Solutions Section
   =========================================== */

.solutions-section {
    background: var(--color-steel-dark);
}

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

.solution-card {
    background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-blueprint) 100%);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.solution-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-forge);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::after {
    transform: scaleX(1);
}

.solution-number {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-forge);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    right: 1rem;
    line-height: 1;
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    position: relative;
}

.solution-card p {
    color: var(--color-iron);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.solution-results {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-steel-light);
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-forge);
    font-weight: 600;
    font-size: 0.9rem;
}

.result-item svg {
    width: 18px;
    height: 18px;
}

/* ===========================================
   Process Section
   =========================================== */

.process-section {
    background: var(--color-blueprint);
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v1H0zM0 20h100v1H0zM0 40h100v1H0zM0 60h100v1H0zM0 80h100v1H0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-steel-light);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
}

.step-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-forge);
    color: var(--color-steel-dark);
    font-family: var(--font-display);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--color-iron);
    line-height: 1.7;
}

.step-placeholder {
    flex: 1;
}

/* ===========================================
   Industries Section
   =========================================== */

.industries-section {
    background: linear-gradient(180deg, var(--color-steel-dark) 0%, var(--color-blueprint) 100%);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.industry-card {
    background: rgba(45, 58, 71, 0.6);
    border: 1px solid var(--color-steel-light);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.industry-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--color-forge);
}

.industry-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

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

.cta-section {
    background: var(--color-forge);
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03z' fill='%231a2330' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-steel-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--color-steel);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-steel-dark);
    color: var(--color-cream);
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--color-steel-dark);
    cursor: pointer;
}

.cta-btn:hover {
    background: transparent;
    color: var(--color-steel-dark);
    transform: translateY(-2px);
}

/* ===========================================
   Contact Form Section
   =========================================== */

.contact-form-section {
    background: var(--color-steel-dark);
    padding: 6rem 4rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--color-iron);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-cream);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-forge);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--color-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-forge);
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-iron);
}

.form-group input,
.form-group textarea {
    background: var(--color-steel);
    border: 1px solid var(--color-steel-light);
    padding: 1rem;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--color-forge);
    color: var(--color-steel-dark);
    border: 2px solid var(--color-forge);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: transparent;
    color: var(--color-forge);
}

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

footer {
    background: var(--color-steel-dark);
    padding: 4rem;
    border-top: 1px solid var(--color-steel-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-iron);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--color-forge) !important;
    font-style: italic;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-forge);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-iron);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-cream);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-steel-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-iron);
    font-size: 0.85rem;
}

/* ===========================================
   Animations
   =========================================== */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    section {
        padding: 5rem 2rem;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

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

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links, .nav-cta {
        display: none;
    }

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

    .hero-graphic {
        display: none;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-steel-light);
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: none;
    }

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

    .process-timeline::before {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .process-step:nth-child(even) .step-content {
        text-align: left;
    }

    .step-placeholder {
        display: none;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-section {
        padding: 4rem 2rem;
    }

    .contact-form-section {
        padding: 4rem 2rem;
    }
}
