/*
 * Blackstone Dimension - Official Website Style
 * Design System: Neo-Brutalism + Industrial Aesthetics
 */

:root {
    /* Color Palette */
    --bg-color: #1c1c1e; /* Dark Gunmetal */
    --card-bg: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;

    --accent-orange: #ff6d00; /* Safety Orange */
    --accent-blue: #0a84ff; /* Blueprint Blue */
    --success-green: #30d158;
    --error-red: #ff453a;

    --border-color: #3a3a3c;
    --border-active: #5e5e60;

    /* Typography */
    /* System monospace stack for that "technical" feel */
    --font-mono:
        "SF Mono", "Menlo", "Monaco", "Consolas", "Courier New", monospace;
    --font-sans:
        "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.mono-text {
    font-family: var(--font-mono);
}

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

a:hover {
    color: #ff9e40;
    text-decoration: underline;
}

/* Utility Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    position: sticky;
    top: 0;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-zh {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-en {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Modifier for English mode (single line) */
html[lang="en"] .brand-zh {
    display: none;
}

html[lang="en"] .brand-en {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: bold;
}

.logo-icon {
    height: 28px;
    width: auto;
    filter: invert(1);
}

.lang-switch {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    cursor: pointer;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.lang-switch:hover {
    border-color: var(--accent-blue);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Background grid effect */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    border-left: 2px solid var(--accent-orange);
    padding-left: 20px;
}

/* Flagship Product: Smart Packing */
.flagship {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "[+]";
    color: var(--accent-orange);
    margin-right: 12px;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #000;
    font-family: var(--font-mono);
    font-weight: bold;
    padding: 16px 32px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        transform 0.2s,
        background-color 0.2s;
}

.cta-button:hover {
    background-color: #ff8533;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.3);
}

.product-visual {
    position: relative;
    border: 1px solid var(--border-color);
    background: #000;
    padding: 10px;
    aspect-ratio: 9/16;
    max-height: 600px;
    justify-self: center;
    box-shadow: 0 0 0 1px #2c2c2e;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.video-wrapper {
    border: 1px solid var(--border-color);
    background: #000;
    margin-bottom: 24px;
    position: relative;
}

.app-video {
    width: 100%;
    height: auto;
    display: block;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.spec-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 24px;
}

/* Feature Flow (Screenshots) */
.flow-section {
    margin-top: 60px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.flow-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-visual {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 19.5; /* iPhone aspect ratio */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.flow-visual:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.flow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-info h3 {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.flow-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cinema Video Mode (Landscape Phone Frame) */
.phone-landscape-wrapper {
    width: 100%;
    margin: 60px 0;
}

.phone-frame {
    position: relative;
    background: #000;
    border-radius: 32px;
    /* Phone bezel and frame simulation */
    box-shadow:
        0 0 0 9px #121212,
        /* Inner bezel */ 0 0 0 12px #454545,
        /* Metal frame */ 0 30px 60px -10px rgba(0, 0, 0, 0.6); /* Depth shadow */
    overflow: hidden;
    aspect-ratio: 2622 / 1206;
}

.camera-island {
    position: absolute;
    top: 50%;
    left: 18px; /* Dynamic Island / Notch location in landscape */
    width: 24px;
    height: 80px;
    background-color: #000;
    border-radius: 12px;
    transform: translateY(-50%);
    z-index: 10;
}

.cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spec-card h4 {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Labs Grid */
.labs-section {
    padding: 80px 0;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.lab-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lab-card:hover {
    border-color: var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-number {
    font-family: var(--font-mono);
    color: var(--border-active);
    font-size: 1.5rem;
    font-weight: bold;
}

.lab-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 4px 8px;
    text-transform: uppercase;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: 40px;
    background-color: #161618;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h4 {
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.footer-text {
    color: var(--text-secondary);
    max-width: 400px;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 60px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--border-active);
    text-align: center;
}

/* Algorithm Spotlight */
.spotlight-section {
    padding: 80px 0;
    background-color: #161618;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spotlight-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.spotlight-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.spotlight-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.spotlight-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-orange);
    z-index: 1;
}

.spotlight-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.spotlight-tag {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .spotlight-container {
        grid-template-columns: 1fr;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

    .product-visual {
        max-width: 300px;
        order: -1; /* Image first on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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