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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-surface-alt: #f3f4f6;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e7eb;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1100px;
    --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header .nav a { color: rgba(255,255,255,0.7); }
.header .nav a:hover { color: #fff; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}
.logo span { color: var(--color-accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--color-text); }

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7) !important;
    letter-spacing: 0.03em;
    transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover {
    border-color: #fff;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Buttons === */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.15s;
}
.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.header .btn-sm {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff !important;
}
.header .btn-sm:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* === Hero === */
.hero {
    padding: 130px 0 70px;
    text-align: center;
    background-image: url("images/overlay.png"), url("images/banner.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #fff;
}
.hero-sub {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}
.hero .btn {
    background: var(--color-accent);
    color: #fff;
}
.hero .btn:hover {
    background: var(--color-accent-hover);
}

/* === Sections === */
.section {
    padding: 64px 0;
}
.section-alt {
    background: var(--color-surface-alt);
}
.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-intro {
    max-width: 600px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* === Cards Grid === */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.card-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* === Platforms === */
.platform-group {
    margin-bottom: 36px;
}
.platform-group:last-child { margin-bottom: 0; }

.platform-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.platform-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.platform-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.platform-item strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.platform-item span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Principles === */
.principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}
.principle h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.principle p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* === Contact === */
.section-contact {
    text-align: center;
    background: var(--color-text);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-contact::before {
    content: '';
    position: absolute;
    bottom: -250px;
    left: -100px;
    width: 800px;
    height: 800px;
    background: url("images/codesignerw.png") no-repeat center center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}
.section-contact .container { position: relative; z-index: 1; }
.section-contact h2 { color: #fff; }
.section-contact .section-intro {
    color: rgba(255, 255, 255, 0.65);
    margin-left: auto;
    margin-right: auto;
}
.section-contact .btn {
    background: var(--color-accent);
    color: #fff;
}
.section-contact .btn:hover {
    background: var(--color-accent-hover);
}

/* === Footer === */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.logo-footer {
    font-weight: 700;
    color: var(--color-text);
}
.logo-footer span { color: var(--color-accent); }

/* === Contact Form === */
#contact-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
#contact-form input, #contact-form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
#contact-form textarea { min-height: 120px; resize: vertical; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: rgba(255,255,255,0.6); }
#contact-form button { border: none; cursor: pointer; }
#form-status { margin-top: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* === Mobile === */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .nav-open { display: flex; }

    .hero { padding: 100px 0 48px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    .grid { grid-template-columns: 1fr; }
    .platform-list { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr; gap: 32px; }

    .section { padding: 48px 0; }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
