@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Tokens derived from screenshot analysis */
    --brand-bg: #070708;
    --brand-bg-deep: #000000;
    --brand-surface: rgba(15, 15, 20, 0.65);
    --brand-surface-hover: rgba(25, 25, 35, 0.85);
    --brand-primary: #6840e8; /* Indigo-violet */
    --brand-primary-rgb: 104, 64, 232;
    --brand-secondary: #ff007a; /* Vibrant magenta */
    --brand-secondary-rgb: 255, 0, 122;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --brand-gradient-reverse: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-muted: #b0b0b8;
    --text-dark: #60606a;
    
    /* Layout Tokens */
    --max-width: 1400px;
    --section-padding: 100px 0;
    --radius-card: 16px;
    --radius-button: 30px;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(104, 64, 232, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--brand-bg-deep);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    scroll-behavior: auto; /* Managed by Lenis smooth scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--brand-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(104, 64, 232, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 64, 232, 0.6);
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Surface */
.glass-panel {
    background: var(--brand-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(104, 64, 232, 0.3);
    box-shadow: 0 10px 30px rgba(104, 64, 232, 0.1);
}

/* 3D Scene Backgrounds */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 10px; }

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-button);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(104, 64, 232, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--brand-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 64, 232, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header & Nav */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
    height: 75px;
    background: rgba(7, 7, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 35px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
}

.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition-fast);
}

.nav-item a:hover {
    color: var(--text-primary);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 130px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-text-content {
    max-width: 620px;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(104, 64, 232, 0.1);
    border: 1px solid rgba(104, 64, 232, 0.2);
    border-radius: 20px;
    color: #a491f0;
}

.hero-title {
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Visual 3D */
.hero-visual-container {
    perspective: 1500px;
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-depth-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    position: relative;
}

.hero-layer {
    position: absolute;
    transition: transform 0.1s ease-out;
}

.hero-layer-bg {
    width: 450px;
    height: 450px;
    left: 50%;
    top: 50%;
    margin-left: -225px;
    margin-top: -225px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 64, 232, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
}

.hero-layer-grid {
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    margin-left: -250px;
    margin-top: -250px;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: center;
    transform: rotateX(60deg) translateZ(-50px);
    border: 1px solid rgba(255,255,255,0.05);
    z-index: 2;
    mask-image: radial-gradient(circle, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black, transparent 70%);
}

.hero-layer-mockup-2 {
    width: 275px;
    height: 550px;
    left: 50%;
    top: 50%;
    margin-left: -137px;
    margin-top: -275px;
    z-index: 4;
    transform: translateZ(80px) rotateY(10deg) rotateX(5deg);
}

.hero-layer-floating-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    transform: translateZ(180px) translateX(-150px) translateY(-100px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-layer-floating-card i {
    font-size: 1.5rem;
    color: var(--brand-secondary);
}

/* Footer styling */
.footer {
    background-color: #030304;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    height: 40px;
    margin-bottom: 25px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--brand-primary);
    color: var(--text-primary);
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-newsletter p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    overflow: hidden;
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text-primary);
    flex-grow: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.newsletter-form button {
    border-radius: 25px;
    background: var(--brand-primary);
    color: var(--text-primary);
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--brand-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--text-muted);
}

/* 3D CGI Scroll Sequence Background Theme Overrides */
body.theme-cgi {
    background-color: #000000 !important;
}

body.theme-cgi .section {
    background-color: transparent !important;
    background: transparent !important;
}

body.theme-cgi .glass-panel {
    background: rgba(10, 10, 15, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.theme-cgi .marquee-section {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
}

/* Fix select dropdown options visibility (white text on white background on some browsers) */
select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}

