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

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    /* Color Palette */
    --bg-dark: #0a0b10;
    --bg-card: rgba(20, 21, 33, 0.6);
    --bg-card-hover: rgba(30, 32, 50, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 115, 22, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #f97316; /* Purple */
    --accent-primary-glow: rgba(249, 115, 22, 0.5);
    --accent-secondary: #eab308; /* Cyan */
    --accent-secondary-glow: rgba(234, 179, 8, 0.5);
    
    --gradient-hero: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --gradient-dark: linear-gradient(180deg, #0a0b10 0%, #11131e 100%);
    --bg-alt: rgba(255, 255, 255, 0.02);
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.2);
    --radius-lg: 16px;
    --radius-md: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(249, 115, 22, 0.3);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-alt: rgba(15, 23, 42, 0.03);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 25px rgba(249, 115, 22, 0.1);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

button, input, textarea {
    font-family: inherit;
}

/* --- REUSABLE COMPONENTS --- */

/* Glow Background Effects */
.glow-spot {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-primary);
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: var(--glass-blur);
}

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

.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

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

/* Card & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-main);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
}

.light-theme header.scrolled {
    background: rgba(248, 250, 252, 0.8);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-hero);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Switcher Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle .sun-icon {
    display: none;
}

.light-theme .theme-toggle .moon-icon {
    display: none;
}

.light-theme .theme-toggle .sun-icon {
    display: block;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    z-index: 10;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tagline::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-secondary);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Animated Graphics Area */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-sphere {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--gradient-hero);
    box-shadow: 0 0 80px var(--accent-primary-glow);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.visual-ring {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.ring-1 {
    width: 420px;
    height: 420px;
}

.ring-2 {
    width: 500px;
    height: 500px;
    border-color: rgba(234, 179, 8, 0.2);
    animation-duration: 25s;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- SECTION STYLES --- */
section {
    padding: 8rem 0;
    position: relative;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

/* --- PRODUCTS / SOFTWARE GRID --- */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-smooth);
}

.product-card:hover .product-icon {
    background: var(--gradient-hero);
    color: #fff;
    transform: scale(1.1);
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.product-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.product-features li::before {
    content: "✓";
    color: var(--accent-secondary);
    font-weight: bold;
}

.card-link {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link span {
    transition: transform var(--transition-fast);
}

.card-link:hover span {
    transform: translateX(4px);
}

/* --- SERVICES SECTION --- */
.service-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: var(--text-secondary);
}

/* --- ABOUT HIGHLIGHT --- */
.stat-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    border-left: 3px solid var(--accent-primary);
    padding-left: 1.5rem;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CONTACT / FORM --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    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(--accent-secondary);
    font-size: 1.2rem;
}

.info-detail h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-detail p {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- FOOTER --- */
footer {
    background: #06070a;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.light-theme footer {
    background: #f1f5f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

/* --- ANIMATION / SCROLL AFFECT --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .ring-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    header.scrolled {
        height: 60px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 3rem;
        transition: right var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    /* Toggle Hamburger Styles when Menu is open */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .visual-sphere {
        width: 220px;
        height: 220px;
    }
    
    .ring-1 {
        width: 280px;
        height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- LANGUAGE SELECTOR STYLES --- */
.lang-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 0.35rem 1.75rem 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6' fill='none'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.lang-select:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.light-theme .lang-select {
    color: var(--text-secondary);
}

.light-theme .lang-select:hover {
    color: var(--text-primary);
}


.section-alt {
    background: var(--bg-alt);
}
/* --- CHECKOUT MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 2.5rem;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    backdrop-filter: var(--glass-blur);
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
