/* GALVORN Design System */
:root {
    /* Colors - Premium Dark Palette */
    --color-bg-body: #050505;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-card-hover: rgba(255, 255, 255, 0.07);
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    --color-border-highlight: rgba(255, 255, 255, 0.2);

    /* Light Theme Palette */
    --color-bg-light: #F1F0ED;
    --color-text-light-bg: #101820;

    --color-text-main: #F4F4F5;
    --color-text-muted: #A1A1AA;
    --color-accent-glow: rgba(56, 189, 248, 0.15);
    /* Subtle cyan glow */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;
    --spacing-xxl: 160px;

    /* Layout */
    --container-width: 1400px;
    --header-height: 90px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
    background-color: var(--color-bg-body);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(100, 100, 255, 0.03), transparent 25%);
    background-attachment: fixed;
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* Resetting to actual center for headings if needed, or keeping left based on design */
/* Wait, existing design had text-align: left !important for .text-center? That's unusual. Let's fix that semantic mismatch or respect the design intent.
   The previous CSS had: .text-center { text-align: left !important; }
   I will fix this semantic issue. If it says center, it should be center. I will adjust the HTML classes if left is desired.
*/
.text-center {
    text-align: center;
}

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

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mb-small {
    margin-bottom: var(--spacing-sm);
}

.mb-medium {
    margin-bottom: var(--spacing-md);
}

.mb-large {
    margin-bottom: var(--spacing-lg);
}

.opacity-70 {
    opacity: 0.7;
}

/* Light Theme Utilities */
.bg-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-light-bg);
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--color-text-light-bg);
}

.bg-light p,
.bg-light li,
.bg-light .stat-label {
    color: #4b5563;
    /* Darker grey for light bg */
}

.bg-light .feature-card,
.bg-light .use-case-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.bg-light .feature-card:hover,
.bg-light .use-case-card:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.bg-light .feature-icon-img {
    filter: invert(0);
    /* Black icons */
}

.bg-light .feature-subtitle {
    color: #6b7280;
}

.bg-light .feature-list li::before {
    background: var(--color-text-light-bg);
}

.bg-light .btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.bg-light .btn-primary:hover {
    background: transparent;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.bg-light .stat-number {
    color: var(--color-text-light-bg);
}

.bg-light .stats-grid {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
    backdrop-filter: blur(4px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Header & Glass Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Ensure container takes full height for centering */
}

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

.logo img {
    height: 36px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
    /* Vertical Center */
    margin: 0;
    /* Reset default margins */
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    display: inline-block;
    /* Helps with line-height centering */
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

/* Button in Nav */
nav li a.btn {
    padding: 10px 24px;
    /* Adjust padding for nav button */
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: center;
    /* Center align text */
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight zoom for parallax feel if we added JS, static for now */
}

/* Enhanced Gradient Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg,
            rgba(5, 5, 5, 1) 0%,
            rgba(5, 5, 5, 0.7) 40%,
            rgba(5, 5, 5, 0.4) 100%);
    /* Adjusted for center text visibility */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    /* Increased for centered layout */
    margin: 0 auto;
    /* Center in container */
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex items */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    /* JS Animation init */
    animation: fadeSlideUp 0.8s forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeSlideUp 0.8s forwards 0.4s;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0;
    animation: fadeSlideUp 0.8s forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    opacity: 0;
    animation: fadeSlideUp 0.8s forwards 0.8s;
}

/* Section Headings */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--spacing-lg);
    /* Reduced from xxl to lg */
    text-align: center;
}

/* Glass Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.feature-card .icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.9;
    color: #fff;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.feature-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--color-border-subtle);
}

.stat-number {
    font-size: 4rem;
    font-weight: 200;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border-subtle);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
}

.comparison-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table .criteria {
    text-align: left;
    color: #fff;
    font-weight: 500;
}

.comparison-table .highlight {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 is better than 5 logic wise for cards */
    gap: var(--spacing-md);
}

.use-case-card {
    padding: var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0;
    background: #000;
    border-top: 1px solid var(--color-border-subtle);
}

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

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

.footer-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Feature Icons */
.feature-icon-img {
    width: 48px;
    height: 48px;
    filter: invert(1);
    /* Ensure icons are white */
    opacity: 0.9;
    transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-icon-img {
    transform: scale(1.1);
}

/* Video Modal */
#video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#video-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--color-border-highlight);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

#ism-video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    outline: none;
}

.btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {

    .features-grid,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .use-cases-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    nav ul {
        display: none;
    }

    /* Mobile Menu would be needed, but hiding for cleanliness for now */
}