/* --- Design System: Neo-Noir Aesthetic --- */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0c;
    --card-bg: rgba(12, 12, 14, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.3);
    
    --text-primary: #f5f5f7;
    --text-muted: #86868b;
    --text-inverse: #050505;

    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --glow-subtle: rgba(255, 255, 255, 0.03);
    --glow-active: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* --- Background Canvas --- */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Utility Typography & Tags --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 500;
}

.hero-tag, .section-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-active);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.75);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo b {
    font-weight: 700;
}

.logo:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-active);
    box-shadow: 0 0 20px var(--glow-active);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--border-active);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-secondary {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--glow-active);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.15em;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* --- Hero Proof Metrics --- */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3.5rem;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.proof-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.proof-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* --- Marquee Strip --- */
.marquee-strip {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 0;
    background: var(--bg-secondary);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: marqueeScroll 20s linear infinite;
    gap: 2rem;
    padding-right: 2rem;
}

.marquee-track span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-dot {
    color: var(--accent) !important;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Sections Common Layout --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    max-width: 600px;
}

/* --- Capabilities / Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(350px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.08), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--border-active);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 1px 1px var(--glow-active) inset;
    transform: translateY(-4px);
}

.card-num {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* --- Signal Section --- */
#signal {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.signal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.signal-info {
    max-width: 480px;
}

.signal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 1.5rem;
}

.signal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
}

.stat-card {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    transition: var(--transition-smooth);
}

.stat-card:nth-child(2n) {
    border-right: none;
}

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

.stat-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

.stat-card:hover::before {
    height: 100%;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* --- Playbook / Process Section --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.timeline-step {
    position: relative;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
}

.step-title {
    font-size: 1.25rem;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact-info {
    max-width: 450px;
}

.contact-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.detail-val {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.detail-val:hover {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.04);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-status {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-smooth);
    opacity: 0;
}

.form-status.success {
    color: #4cd964;
    opacity: 1;
}

.form-status.error {
    color: #ff3b30;
    opacity: 1;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer-logo b {
    font-weight: 700;
    color: var(--text-primary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsive Layouts --- */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .signal-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .nav-container {
        padding: 1.25rem 1.5rem;
    }
    nav {
        gap: 1.5rem;
    }
    nav a:not(.btn) {
        display: none;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 2rem;
    }
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-proof {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .proof-divider {
        display: none;
    }
}
