/* 
  Rusty Element - SaNAI
  Modern Renewal Style
*/

:root {
    /* COLOR SYSTEM */
    --bg-body: #050505;
    /* Deepest black/charcoal */
    --bg-surface: #0e0e0e;
    /* Slightly lighter for cards/sections */
    --bg-surface-hover: #161616;

    --text-primary: #ededed;
    /* Bright off-white */
    --text-secondary: #a1a1aa;
    /* Neutral grey */
    --text-tertiary: #52525b;
    /* Darker grey for subtle details */

    --accent-rust: #d26930;
    /* Original Rust Orange */
    --accent-glow: rgba(210, 105, 48, 0.15);
    --accent-border: rgba(210, 105, 48, 0.3);

    --border-subtle: #27272a;
    --border-highlight: #3f3f46;

    /* SPACING & RADIUS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --container-width: 1200px;
    --header-height: 72px;

    /* FONTS */
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-rust);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 50;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-mark {
    height: 48px;
    width: auto;
}

.logo-mark img {
    height: 100%;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-rust);
    color: #fff;
    box-shadow: 0 4px 20px rgba(210, 105, 48, 0.25);
}

.btn-primary:hover {
    background: #e07a40;
    /* Slightly lighter rust */
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(210, 105, 48, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Background Abstract Glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--accent-rust);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* METRICS */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
}

.metric-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.metric-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* HERO VISUAL (Right Column) */
.hero-visual {
    position: relative;
}

.visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-rust), transparent);
    opacity: 0.5;
}

/* GENERIC SECTIONS */
section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}



/* CARDS */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    background: var(--bg-surface-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-rust);
    font-weight: 600;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* CTA SECTION */
.cta-box {
    background: linear-gradient(135deg, #1c100b, #0a0a0a);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--accent-glow);
    filter: blur(100px);
    pointer-events: none;
}

/* FOOTER */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed */
    }

    /* Mobile Header Adjustments */
    header .container {
        padding: 0 16px;
    }

    .logo-mark {
        height: 36px;
        /* Smaller logo on mobile */
    }

    .logo-text span:first-child {
        font-size: 1rem;
    }

    .logo-sub {
        display: none;
        /* Hide subtitle on mobile to save space */
    }

    .nav-cta {
        display: flex;
        gap: 8px;
    }

    .nav-cta .btn-secondary {
        display: none;
        /* Hide secondary button on mobile */
    }

    .nav-cta .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .footer-top {
        flex-direction: column;
    }

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

    /* Mobile CTA Adjustments */
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px !important;
        gap: 32px;
    }

    .cta-box>div {
        width: 100%;
        max-width: 100% !important;
    }

    .cta-box h2 {
        font-size: 1.75rem !important;
    }
}

/* CONSTRUCTION PAGE */
.construction-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(210, 105, 48, 0.1);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    margin-bottom: 32px;
    color: var(--accent-rust);
    box-shadow: 0 0 40px var(--accent-glow);
}