/* 
 * Urticad - Fjord Contrast v2 Core
 * Design System: Nordic Aurora Dark
 * Version: 2.1
 * Author: Antigravity
 */

:root {
    /* --- Core Palette --- */
    --fjord-deep: #050510;
    --fjord-navy: #0a0a1a;
    --fjord-ocean: #162447;
    --fjord-blue: #1f4068;

    /* --- Accents --- */
    --warm-gold: #C9A962;
    --aurora-teal: #00C9A7;
    --aurora-purple: #a78bfa;
    --deep-gold: #b08d4b;

    /* --- Neutral --- */
    --ice-white: #f0f4f8;
    --pure-white: #ffffff;
    --text-muted: rgba(240, 244, 248, 0.6);
    --text-light: rgba(240, 244, 248, 0.85);

    /* --- Glassmorphism --- */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* --- Spacing --- */
    --section-gap: 10rem;
    --container-width: 1300px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--fjord-deep);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 201, 167, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, var(--fjord-ocean) 0%, var(--fjord-deep) 70%);
    background-attachment: fixed;
    color: var(--ice-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.text-gold {
    color: var(--warm-gold);
}

.text-teal {
    color: var(--aurora-teal);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 1.25rem 0;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--ice-white);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Cormorant', serif;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--warm-gold);
    transition: 0.4s;
}

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

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

/* --- Hero --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
}

.hero-frame {
    position: relative;
    padding: 6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 4px;
    text-align: center;
    max-width: 900px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero-title {
    margin-bottom: 1rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--warm-gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--aurora-teal);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 4rem;
    font-weight: 300;
}

.hero-nav {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-nav a {
    text-decoration: none;
    color: var(--ice-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.hero-nav a:hover {
    border-color: var(--warm-gold);
    color: var(--warm-gold);
    background: rgba(201, 169, 98, 0.05);
}

/* --- Shared Components --- */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    transition: 0.4s;
}

.card:hover {
    border-color: var(--warm-gold);
    transform: translateY(-8px);
}

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

.section-label {
    color: var(--aurora-teal);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

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

/* --- Showcase System (Two Columns) --- */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.2);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--aurora-teal);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-title {
    font-size: 3.5rem;
    color: var(--warm-gold);
}

.showcase-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.showcase-features li::before {
    content: '✦';
    color: var(--aurora-teal);
}

.lottie-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Features Grid (Three Columns) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--glass-bg);
    padding: 4rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.5s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--aurora-teal);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-size: 2rem;
    margin: 2rem 0 1.25rem;
    color: var(--warm-gold);
}

.feature-card p {
    color: var(--text-muted);
}

/* --- Contact Page Specifics --- */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(5, 5, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--ice-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--warm-gold);
    background: rgba(5, 5, 10, 0.8);
}

label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 1.1rem 3rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    border-radius: 100px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--warm-gold), var(--deep-gold));
    color: var(--fjord-deep);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.5);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--ice-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    border-color: var(--warm-gold);
    color: var(--warm-gold);
    background: rgba(201, 169, 98, 0.05);
}

/* --- CTA Section --- */
.cta-frame {
    background: linear-gradient(135deg, var(--fjord-navy), var(--fjord-ocean));
    padding: 8rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.cta-title {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: var(--warm-gold);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .hero-frame {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }

    .hero-frame {
        padding: 3rem 1.5rem;
    }

    .cta-frame {
        padding: 4rem 1.5rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

/* --- Footer (Added v1.29) --- */
.footer {
    background: rgba(5, 5, 16, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 2rem;
    margin-top: auto;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Subtle top gradient glow for footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warm-gold), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-column h4 {
    color: var(--ice-white);
    font-family: 'Cormorant', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 1px;
    background: var(--aurora-teal);
}

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

.footer-column a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: var(--warm-gold);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: var(--aurora-teal);
}

.version-tag {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .footer-grid {
        gap: 3rem;
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-column:last-child {
        grid-column: span 3;
        margin-top: 1rem;
    }
    .footer-column:last-child ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column:last-child {
        grid-column: auto;
    }
    
    .footer-column:last-child ul {
        justify-content: center;
    }

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

/* --- Exploded View Diagram (v1.36) --- */
.exploded-view-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exploded-stack {
    position: relative;
    width: 260px;
    height: 320px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-30deg) translateZ(-40px);
    animation: stackFloat 6s ease-in-out infinite;
}

.exploded-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: rgba(16, 24, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layer Specifics */
.layer-bottom {
    transform: translateZ(0px);
    border-color: rgba(0, 201, 167, 0.3);
    z-index: 1;
}

.layer-middle {
    transform: translateZ(60px);
    border-color: rgba(201, 169, 98, 0.3);
    z-index: 2;
    background: rgba(16, 24, 48, 0.7);
}

.layer-top {
    transform: translateZ(120px);
    border-color: rgba(167, 139, 250, 0.3);
    z-index: 3;
    background: rgba(16, 24, 48, 0.8);
}

/* Icons & Text */
.layer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.layer-label {
    font-family: 'Cormorant', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 600;
}

.text-bio { color: var(--aurora-teal); }
.text-ai { color: var(--warm-gold); }
.text-mind { color: var(--aurora-purple); }

/* Connecting Lines */
.connect-line {
    position: absolute;
    width: 2px;
    height: 160px; /* Total height span */
    background: linear-gradient(to top, var(--aurora-teal), var(--warm-gold), var(--aurora-purple));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(-90deg);
    opacity: 0.3;
}

/* Animations */
@keyframes stackFloat {
    0%, 100% { transform: rotateX(60deg) rotateZ(-30deg) translateZ(-40px); }
    50% { transform: rotateX(55deg) rotateZ(-30deg) translateZ(-20px); }
}

.exploded-stack:hover .layer-middle { transform: translateZ(100px); }
.exploded-stack:hover .layer-top { transform: translateZ(200px); }
.exploded-stack:hover { cursor: crosshair; }

/* Simplified Responsive fallback */
@media (max-width: 768px) {
    .exploded-view-container { height: 320px; }
    .exploded-stack {
        transform: rotateX(0) rotateZ(0) translateZ(0) !important;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: transparent;
        animation: none;
    }
    .exploded-layer {
        position: relative;
        transform: none !important;
        height: 100px;
        width: 100%;
        flex-direction: row;
        gap: 2rem;
        padding: 0 2rem;
    }
    .connect-line { display: none; }
}