/* ==========================================
   CALCITE MAROC - Styles Complets
   ========================================== */

:root {
    --primary: #1a5f4a;
    --primary-dark: #134a3a;
    --primary-light: #2d8a6e;
    --accent: #c9a96e;
    --accent-light: #e8d5a3;
    --dark: #0f1f1a;
    --dark-light: #1a2e26;
    --text: #2c3e30;
    --text-light: #5a6b5f;
    --bg: #f8faf9;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(26, 95, 74, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 95, 74, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --error: #ef4444;
    --success: #22c55e;
}

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

html { scroll-behavior: smooth; }

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

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(26, 95, 74, 0.15);
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 95, 74, 0.08);
    transition: all 0.3s ease;
}

header.scrolled { box-shadow: var(--shadow); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.3);
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

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

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

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(26, 95, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 95, 74, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large { padding: 16px 40px; font-size: 16px; }

.btn-white {
    background: white;
    color: var(--primary);
    font-size: 16px;
    padding: 16px 40px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-full { width: 100%; justify-content: center; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary-dark) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 2;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calcite-showcase {
    width: 400px;
    height: 400px;
    position: relative;
}

.calcite-main {
    width: 320px;
    height: 320px;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset 0 -20px 40px rgba(0,0,0,0.1), inset 0 20px 40px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.calcite-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.3), rgba(255,255,255,0.1));
}

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

.orbit-ring-1 { width: 100%; height: 100%; animation-duration: 25s; }
.orbit-ring-2 { width: 80%; height: 80%; top: 10%; left: 10%; animation-duration: 18s; animation-direction: reverse; }

.orbit-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
}

.particle-1 { top: 0; left: 50%; transform: translateX(-50%); }
.particle-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.particle-3 { top: 50%; right: 0; transform: translateY(-50%); }

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 95, 74, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* ===== STATS ===== */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== PRODUCTS ===== */
.products-section { background: var(--bg); }

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(26, 95, 74, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, var(--dark-light), var(--primary-dark));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.product-image-text {
    position: relative;
    z-index: 2;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.product-info { padding: 30px; }

.product-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
}

.spec-label { color: var(--text-light); font-weight: 500; }
.spec-value { color: var(--dark); font-weight: 600; }

/* ===== SPECS TABLE ===== */
.specs-section {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.specs-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1), transparent 70%);
    border-radius: 50%;
}

.specs-section .section-header h2 { color: white; }
.specs-section .section-header p { color: rgba(255,255,255,0.6); }

.specs-table-container {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.specs-table { width: 100%; border-collapse: collapse; }

.specs-table th {
    background: rgba(255,255,255,0.05);
    padding: 18px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.specs-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.specs-table tr:hover td { background: rgba(255,255,255,0.03); }

.grade-excellent { color: #4ade80; font-weight: 600; }
.grade-good { color: #fbbf24; font-weight: 600; }

/* ===== APPLICATIONS ===== */
.apps-section { background: var(--white); }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.app-card {
    padding: 32px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.app-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.app-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.cta-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
    color: white;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    min-height: auto;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary-dark) 100%);
    position: relative;
}

.contact-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.contact-hero .hero-text h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-hero .hero-text p {
    margin: 0 auto 30px;
    max-width: 600px;
}

.contact-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 95, 74, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-info-card > p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; }

.contact-item-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item-text p, .contact-item-text a {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item-text a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(26, 95, 74, 0.08);
}

.contact-form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 32px 40px;
    color: white;
}

.contact-form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 8px;
}

.contact-form-header p {
    opacity: 0.85;
    font-size: 14px;
}

.contact-form-body {
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: var(--error);
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235a6b5f' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

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

.form-submit {
    text-align: center;
    padding-top: 10px;
}

.form-submit button {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px 40px;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.active { display: block; }

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 8px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    z-index: 9999;
    font-weight: 500;
    max-width: 400px;
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--primary); }
.toast.error { background: var(--error); }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

button.loading .spinner { display: inline-block; }
button.loading .btn-text { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-badges { justify-content: center; }
    .hero-visual { order: -1; }
    .calcite-showcase { width: 300px; height: 300px; }
    .calcite-main { width: 240px; height: 240px; }
    .products-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info-card { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-selector { margin-left: 10px; padding-left: 10px; }
}

@media (max-width: 768px) {
    nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; box-shadow: var(--shadow); gap: 20px; }
    nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-text h1 { font-size: 40px; }
    .products-grid, .apps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    section { padding: 60px 0; }
    .section-header h2 { font-size: 32px; }
    .contact-hero { padding: 120px 0 60px; }
    .contact-hero .hero-text h1 { font-size: 36px; }
    .specs-table { font-size: 12px; }
    .specs-table th, .specs-table td { padding: 12px 16px; }
    .lang-selector { border-left: none; margin-left: 0; padding-left: 0; margin-top: 10px; }
    .nav-container { flex-wrap: wrap; height: auto; padding: 12px 24px; }
    header { position: relative; }
    .hero { padding-top: 0; min-height: auto; padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 32px; }
    .calcite-showcase { width: 250px; height: 250px; }
    .calcite-main { width: 200px; height: 200px; font-size: 36px; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-large { padding: 14px 28px; font-size: 14px; }
    .contact-form-header { padding: 24px; }
    .contact-form-body { padding: 24px; }
}
