/* ================================================
   Svetozar Technologies Main Website Styles
   Matching LocalMind Quality & Design System
   ================================================ */

/* CSS Variables - Same as LocalMind */
:root {
    --color-primary: #4F46E5;
    --color-primary-light: #818CF8;
    --color-primary-dark: #3730A3;
    --color-secondary: #7C3AED;
    --color-accent: #A78BFA;

    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-card: #171717;
    --color-bg-card-hover: #1f1f1f;

    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;

    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --color-success: #22c55e;
    --color-error: #ef4444;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-light);
    color: var(--color-text);
}

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

.btn-outline:hover {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
    color: var(--color-text);
}

/* ================================================
   Navigation
   ================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(79, 70, 229, 0.5));
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo .logo-text {
    align-items: flex-start;
}

.footer-logo .logo-name {
    font-size: 1.5rem;
}

.footer-logo .logo-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.footer-logo-img {
    height: 120px;
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(79, 70, 229, 0.5));
    border-radius: 50%;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

/* ================================================
   Hero Section
   ================================================ */

.hero {
    padding: 160px 0 100px;
    background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 24px 0 40px;
    line-height: 1.8;
}

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

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

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* ================================================
   Social Proof Bar
   ================================================ */

.social-proof-bar {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.proof-icon {
    font-size: 2rem;
}

.proof-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ================================================
   Mission Section
   ================================================ */

.mission-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.mission-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.manifesto {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.manifesto-block {
    position: relative;
    padding-left: 80px;
}

.manifesto-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.manifesto-block h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.manifesto-block > p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Commitments */
.commitments {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.commitment {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.commitment-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    color: #22c55e;
}

.commitment strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.commitment p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   Products Section
   ================================================ */

.products-section {
    padding: 120px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    padding: 40px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    color: var(--color-primary-light);
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.product-badge.available {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.product-badge.coming-soon {
    background: rgba(79, 70, 229, 0.15);
    color: var(--color-primary-light);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 1rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.product-desc {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features {
    margin-bottom: 24px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

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

.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
}

/* ================================================
   Why Section (Comparison)
   ================================================ */

.why-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-side {
    padding: 40px;
    background: var(--color-bg-card);
}

.comparison-side h4 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    text-align: center;
}

.comparison-side.bad h4 {
    color: #ef4444;
}

.comparison-side.good h4 {
    color: #22c55e;
}

.comparison-side ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-side li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.comparison-side .x {
    color: #ef4444;
    font-weight: 700;
}

.comparison-side .check {
    color: #22c55e;
    font-weight: 700;
}

/* ================================================
   Join Section
   ================================================ */

.join-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.join-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.join-content h2 {
    margin-bottom: 24px;
}

.join-content > p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 48px;
}

.join-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.join-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: left;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.join-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    color: var(--color-text);
}

.join-card svg {
    flex-shrink: 0;
    color: var(--color-primary-light);
}

.join-card strong {
    display: block;
    margin-bottom: 4px;
}

.join-card span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ================================================
   Final CTA
   ================================================ */

.final-cta {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.final-cta .cta-content {
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 32px;
}

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

/* ================================================
   Footer
   ================================================ */

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-mission {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

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

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

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

.footer-bottom p + p {
    margin-top: 8px;
}

.footer-bottom .footer-tagline {
    color: var(--color-primary-light);
    font-style: italic;
}

/* ================================================
   Language Selector
   ================================================ */

#languageSelector {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.lang-selector-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
}

.lang-arrow {
    transition: transform var(--transition-fast);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.lang-option:hover {
    background: var(--color-bg-secondary);
}

.lang-option.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary-light);
}

.lang-name {
    flex: 1;
}

.lang-check {
    color: var(--color-success);
    font-weight: bold;
}

/* ================================================
   RTL Support
   ================================================ */

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar .container,
body.rtl .nav-links,
body.rtl .hero-buttons,
body.rtl .cta-buttons {
    flex-direction: row-reverse;
}

body.rtl .manifesto-block {
    padding-left: 0;
    padding-right: 80px;
}

body.rtl .manifesto-number {
    left: auto;
    right: 0;
}

body.rtl .commitment {
    flex-direction: row-reverse;
}

body.rtl .product-features li {
    flex-direction: row-reverse;
}

body.rtl .comparison-side li {
    flex-direction: row-reverse;
}

body.rtl .join-card {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .footer-grid {
    direction: rtl;
}

/* ================================================
   Responsive Styles
   ================================================ */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .manifesto-block {
        padding-left: 0;
        padding-top: 60px;
    }

    .manifesto-number {
        position: relative;
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .proof-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .join-actions {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body.rtl .manifesto-block {
        padding-right: 0;
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .proof-stats {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

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

.hero-content {
    animation: fadeIn 0.6s ease-out;
}
