/* CSS Variables & Theme */
:root {
    /* GodView & Northdocks Palette */
    --bg-dark: #0B0B0B;
    /* Northdocks Heavy Black */
    --bg-card: #191919;
    /* UI Panel Background (from Screenshots) */
    --bg-glass: rgba(25, 25, 25, 0.85);
    /* Glass effect for overlays */

    --text-main: #f1f5f9;
    /* Slate-100 */
    --text-muted: #94a3b8;
    /* Slate-400 */

    --accent-primary: #FF9900;
    /* Northdocks Orange */
    --accent-secondary: #FF6600;
    /* Darker Orange */
    --accent-glow: rgba(255, 153, 0, 0.4);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #FF9900 0%, #FF5500 100%);
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #FF9900 100%);

    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    /* Northdocks Heading Font */
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --nav-height: 80px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-accent {
    color: var(--accent-primary);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.5);
    background: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(255, 153, 0, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.section-glass {
    background: rgba(11, 11, 11, 0.85) !important;
    /* High opacity to occlude particles */
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
    /* Ensure above particles */
}

/* Background Effects */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

.bg-glow-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px;
    background: radial-gradient(ellipse 80% 60% at top, rgba(255, 153, 0, 0.15), rgba(11, 11, 11, 0));
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(5, 5, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.nav-text-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    font-size: 0.95rem;
    /* Matches existing links */
    color: var(--text-muted);
}

.nav-text-link:hover {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero Section */
#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.visual-card {
    position: relative;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.visual-card:hover {
    transform: rotateY(0) rotateX(0);
}

.hero-img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.floating-ui {
    position: absolute;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 153, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ui-1 {
    top: 20%;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.ui-2 {
    bottom: 20%;
    left: -20px;
    animation: float 8s ease-in-out infinite reverse;
}

.ui-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ui-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Section Common */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .visual-card {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Todo: Implement mobile menu toggle */
    }

    .menu-toggle {
        display: flex;
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(22, 27, 46, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(22, 27, 46, 0.6);
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 153, 0, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Capabilities Section */
.capabilities-section {
    padding: 100px 0;
}

.cap-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.cap-block.reverse {
    flex-direction: row-reverse;
}

.cap-content {
    flex: 1;
}

.section-tag {
    display: inline-block;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cap-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.glass-panel {
    background: rgba(22, 27, 46, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cap-visual {
    flex: 1;
    height: 400px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cap-block:hover .feature-img {
    transform: scale(1.05);
}

/* Visual Placeholders */
.icon {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon svg,
.feature-icon svg {
    width: 100%;
    height: 100%;
}

.visual-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wasd-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.key {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

.key-row {
    display: flex;
    gap: 8px;
}

.key.w {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 250px;
}

.u-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9900, #FF4400);
}

.u-name {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.u-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* Footer */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020205;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .cap-block {
        flex-direction: column !important;
        gap: 40px;
        text-align: left;
        align-items: stretch;
    }

    .cap-list {
        align-items: flex-start;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 20px auto;
    }
}

/* Contact Form */
.contact-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(to bottom, #020205, #0a0a12);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-base);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-visual {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked+.checkbox-visual {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

input[type="checkbox"]:checked+.checkbox-visual::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-base);
}

.checkbox-group label:hover .checkbox-visual {
    border-color: var(--accent-primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.contact-wrapper {
    margin-top: 80px;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
}

.hero-visual {
    z-index: 2;
    /* Ensure it is above the background blur */
}

@media (max-width: 768px) {
    .contact-wrapper {
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
        padding: 40px 0;
        margin-top: 40px;
    }
}