/* ===================================
   SVN.OOO - Premium Tech Design
   Inspired by Skypace layout patterns
   Original SVN colors preserved
   =================================== */

:root {
    /* Core Colors - SVN Brand */
    --bg-primary: #000612;
    --bg-secondary: #050a14;
    --bg-card: #0a0f1c;
    --bg-elevated: #0d1220;
    
    --text-primary: #F5F5F5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #23A455;
    --accent-dim: rgba(35, 164, 85, 0.7);
    --accent-glow: rgba(35, 164, 85, 0.15);
    --accent-subtle: rgba(35, 164, 85, 0.08);
    
    --border-subtle: rgba(245, 245, 245, 0.08);
    --border-medium: rgba(245, 245, 245, 0.12);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Montserrat', var(--font-sans);
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-medium: 0.4s var(--ease-out);
    
    --container-max: 1200px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Navigation (Skypace-style)
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-medium);
    background: transparent;
}

.nav.scrolled {
    background: rgba(0, 6, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-dim {
    opacity: 0.5;
    font-weight: 700;
}

.nav-links {
    display: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #2bb85f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(245, 245, 245, 0.05);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ===================================
   Hero Section with Slider
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .swiper-slide {
    position: relative;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 6, 18, 0.7) 0%,
        rgba(0, 6, 18, 0.5) 50%,
        rgba(0, 6, 18, 0.9) 100%
    );
}

.hero-slider .swiper-pagination {
    bottom: 40px !important;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--accent);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ===================================
   Logos Marquee Section
   =================================== */

.logos-section {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.logos-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.logos-marquee {
    overflow: hidden;
    position: relative;
}

.logos-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.logo-item {
    font-size: 1.5rem;
    white-space: nowrap;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Solutions Tabs (Skypace-style)
   =================================== */

.solutions {
    background: var(--bg-primary);
}

.solutions-tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tabs-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    gap: 60px;
    align-items: center;
}

.tab-panel.active {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tab-panel.active {
        grid-template-columns: 1fr 1fr;
    }
}

.tab-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.tab-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

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

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.tab-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Industries Grid
   =================================== */

.industries {
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition-medium);
}

.industry-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.industry-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===================================
   How It Works Steps
   =================================== */

.how-it-works {
    background: var(--bg-primary);
}

.steps-container {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: var(--transition-medium);
}

.step:hover {
    border-color: var(--border-medium);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: var(--bg-secondary);
    text-align: center;
    padding: 120px 24px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ===================================
   Footer (Skypace-style)
   =================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

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

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-content {
        padding: 100px 0 60px;
    }
    
    .tab-image {
        order: -1;
    }
}

/* ===================================
   Animations
   =================================== */

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

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

/* Scroll animation stagger */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--bg-primary) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9999 !important;
    }
    
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    .nav-links .btn-nav {
        margin-top: 16px;
        padding: 14px 32px;
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        z-index: 10000 !important;
        position: relative;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Keep logo visible above mobile menu */
    .nav-logo {
        z-index: 10000 !important;
        position: relative;
    }
}

/* ===================================
   Modal Styles
   =================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===================================
   Contact Form Styles
   =================================== */

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

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 500px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

.form-message {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
}

.form-message.success {
    color: var(--accent);
}

.form-message.error {
    color: #ef4444;
}

/* Footer legal links */
.footer-legal-links {
    margin-top: 12px;
}

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

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

/* Turnstile Widget */
.cf-turnstile {
    margin-bottom: 16px;
}

.cf-turnstile iframe {
    max-width: 100%;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}
