@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --color-bg-deep: #0A0E27;       /* Deep cosmic blue */
    --color-accent-gold: #D4AF37;   /* Gold/amber */
    --color-accent-purple: #6B4C9A; /* Transmutation purple */
    --color-text-main: #F5F5F0;     /* Off-white/cream */
    --color-text-muted: rgba(245, 245, 240, 0.7);
    --color-white: #FFFFFF;

    /* Gradients and Effects */
    --gradient-cosmic: linear-gradient(135deg, var(--color-bg-deep) 0%, #151d45 100%);
    --gradient-glow: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-gold));
    --glass-bg: rgba(10, 14, 39, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Spacing & Utilities */
    --section-pad: 6rem 2rem;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
}

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

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

body {
    background-color: var(--color-bg-deep);
    background-image: radial-gradient(circle at 50% 0%, #11183c 0%, transparent 60%);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--color-accent-purple);
    color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* =========================================================================
   TYPOGRAPHY SPECIFICS
   ========================================================================= */
.accent-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-accent-gold);
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-deep);
    border: none;
}

.btn-primary:hover {
    background-color: #fce28b;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    color: var(--color-bg-deep);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold);
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-accent-gold);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-deep);
    border-left: 1px solid var(--glass-border);
    padding: 6rem 2rem 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,14,39,0.3) 0%, rgba(10,14,39,0.8) 60%, var(--color-bg-deep) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    margin-top: 4rem;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.hero-body {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 3rem;
    color: var(--color-text-muted);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================================
   COMMON LAYOUT CLASSES
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* =========================================================================
   PILLARS SECTION (CARDS & LAYOUT)
   ========================================================================= */
.pillars-section {
    padding: var(--section-pad);
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(212, 175, 55, 0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
}

.pillar {
    margin-bottom: 6rem;
    padding-top: 2rem;
}

.pillar-header {
    max-width: 800px;
    margin-bottom: 3rem;
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.3);
    line-height: 1;
    display: block;
    margin-bottom: -1rem;
    z-index: 0;
    position: relative;
}

.pillar-title {
    font-size: 2.5rem;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.pillar-tagline {
    margin-bottom: 1.5rem;
}

.pillar-desc {
    font-size: 1.05rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Card */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
    color: var(--color-accent-gold);
    text-transform: uppercase;
}

.read-more:hover {
    color: var(--color-white);
}

/* =========================================================================
   SPLIT LAYOUT & SECTIONS
   ========================================================================= */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: var(--section-pad);
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.split-image:hover img {
    transform: scale(1.03);
}

.mb-2 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1.5rem; }

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent-gold);
}

/* =========================================================================
   CONTACT FORM
   ========================================================================= */
.contact-section {
    padding: var(--section-pad);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cyber-form .form-group {
    margin-bottom: 1.5rem;
}

.cyber-form label {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-form input[type="text"],
.cyber-form input[type="email"],
.cyber-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.cyber-form input:focus,
.cyber-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.cyber-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.cyber-form .checkbox-group input {
    margin-top: 5px;
    accent-color: var(--color-accent-gold);
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-color: var(--color-accent-gold);
    cursor: pointer;
}

.cyber-form .checkbox-group label {
    text-transform: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: normal;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    margin-top: 2rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--gradient-cosmic);
    text-align: center;
}

.footer-motto {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-accent-gold);
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

/* =========================================================================
   FREQUENCY PLAYER TOGGLE
   ========================================================================= */
.frequency-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-glow);
    color: var(--color-bg-deep);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
}

.frequency-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.frequency-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* =========================================================================
   MEDIA QUERIES
   ========================================================================= */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
