/* Mirror's Edge Utilitarian Theme */

:root {
    --bg-color: #ffffff;
    --text-color: #0a0a0a;
    --accent-color: #ff2a00;
    /* Runner Red */
    --secondary-bg: #f8f9fa;
    --border-color: #d1d1d1;
    --muted-text: #666666;
    --font-main: 'Space Grotesk', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1100px;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.2rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* border: 2px solid var(--text-color); */
    /* padding: 0.2rem 0.8rem; */
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 42, 0, 0.6));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

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

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 4rem 0;
    min-height: 80vh;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    width: 200vw;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 42, 0, 0.03) 50%, transparent 100%);
    z-index: -1;
    transform: skewX(-20deg);
}

.hero-subtitle {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--text-color);
    color: white;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* Content Styling */
.content-wrapper {
    max-width: 800px;
}

p {
    margin-bottom: 1.5rem;
}

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--muted-text);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Utility / HUD Elements */
.hud-line {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

.hud-line::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 20px;
    height: 5px;
    background-color: var(--accent-color);
}

.data-tag {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Case Studies List */
.case-studies-list {
    margin-top: 2rem;
}

.case-study-item {
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study-item:hover {
    background-color: var(--secondary-bg);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    color: var(--text-color);
}

.case-study-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.case-study-item:hover .case-study-title {
    color: var(--accent-color);
}

.case-study-item p {
    color: var(--muted-text);
    margin-bottom: 0;
}

.case-study-meta {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Landing Page Specific Styles */

.landing-page {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    flex: 1;
}

.hero-accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

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

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

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover {
    background-color: #d62200;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 42, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--text-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: white;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Stats Bar */
.stats-bar {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.stat-separator {
    color: #333;
    font-size: 2rem;
    font-weight: 300;
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
    background-color: var(--bg-color);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.card-corner.top-left {
    top: -1px;
    left: -1px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
}

.card-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
}

.feature-card:hover .card-corner.top-left {
    border-color: var(--accent-color);
}

.feature-card:hover .card-corner.bottom-right {
    border-color: var(--accent-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Philosophy Section */
.philosophy-section {
    padding: 6rem 5%;
    background-color: #f8f9fa;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.philosophy-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Footer CTA */
.footer-cta-section {
    padding: 8rem 5%;
    text-align: center;
    background-color: var(--text-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 4rem;
        gap: 2rem;
    }

    .hero-visual {
        justify-content: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-image {
        max-height: 40vh;
        transform: none;
    }

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

    .hero-accent-line {
        margin: 0 auto 2rem;
    }

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

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-separator {
        display: none;
    }
}