/* ============================================
   Konomic.AI — Styles
   Dark, clean, Coinbase/DV.net inspired
   ============================================ */

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

:root {
    --bg-primary: #08090c;
    --bg-secondary: #0d0f14;
    --bg-card: #12141a;
    --bg-card-hover: #181b23;
    --bg-elevated: #1a1d27;

    --text-primary: #f0f2f5;
    --text-secondary: #8a8f9e;
    --text-tertiary: #5a5f6e;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;

    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.15) 100%);
    --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);

    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(59,130,246,0.15);

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

    --nav-height: 72px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }

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

/* --- Typography --- */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    padding: 12px 24px;
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(59,130,246,0.08);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.btn-white {
    background: #fff;
    color: var(--bg-primary);
}
.btn-white:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(8, 9, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(8, 9, 12, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.logo-dot {
    color: #ED78BC;
}

.logo-ai {
    color: var(--accent-blue);
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 0 80px;
    overflow: hidden;
}

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

.hero-gradient {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
    filter: blur(60px);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* --- Trusted --- */
.trusted {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trusted-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: opacity 0.3s;
    letter-spacing: -0.01em;
}

.trusted-logo:hover { opacity: 0.8; }

/* --- Sections --- */
.section {
    padding: 120px 0;
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--gradient-subtle);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-header h2 { margin-bottom: 16px; }

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

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; }

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(16,185,129,0.1);
    color: var(--accent-green);
}

/* --- Steps --- */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s;
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.step-content h3 { margin-bottom: 10px; }

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-connector {
    display: flex;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent-blue), var(--border));
    opacity: 0.5;
}

/* --- Industries --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.industry-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.industry-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.industry-icon {
    flex-shrink: 0;
    color: var(--accent-blue);
    opacity: 0.7;
}

.industry-card h4 { margin-bottom: 6px; }

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

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-featured {
    border-color: rgba(59,130,246,0.3);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.pricing-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 32px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-custom {
    font-size: 2.2rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features svg {
    flex-shrink: 0;
    color: var(--accent-green);
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.12);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-note svg { flex-shrink: 0; color: var(--accent-blue); }

/* --- Security --- */
.security-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-content .section-tag { margin-bottom: 20px; }
.security-content h2 { margin-bottom: 16px; }

.security-content > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    color: var(--accent-blue);
}

.security-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.security-feature p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Security visual */
.security-visual {
    position: relative;
}

.security-card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all 0.3s;
}

.sec-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sc-dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.sc-dot.blue { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.sc-dot.purple { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }

.sc-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.sc-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-main);
    animation: progressGrow 2s ease-out forwards;
}

@keyframes progressGrow {
    from { width: 0; }
}

/* --- CTA --- */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0.06;
}

.cta-box h2 {
    position: relative;
    margin-bottom: 16px;
}

.cta-box p {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-actions {
    position: relative;
}

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 20px; }
.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-item svg { color: var(--accent-blue); flex-shrink: 0; }
.contact-item a { color: var(--text-secondary); transition: color 0.2s; }
.contact-item a:hover { color: var(--accent-blue); }

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.25s;
}

.social-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(59,130,246,0.08);
    transform: translateY(-2px);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.25s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f9e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

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

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
}

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

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

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .security-layout { grid-template-columns: 1fr; gap: 48px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 16px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }

    .steps {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        width: auto;
        height: 40px;
    }

    .step-connector::after {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
    }

    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card:last-child { max-width: none; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }

    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .form-row { grid-template-columns: 1fr; }

    .cta-box { padding: 48px 24px; }

    .btn-sm.btn-outline { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding-top: calc(var(--nav-height) + 24px); }
    .trusted-logos { gap: 24px; }
    .footer-links { grid-template-columns: 1fr; }
}

/* --- Trust Badges --- */
.trust-badges {
    padding: 32px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.badge-item:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.05);
}

.badge-highlight {
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.06);
}

.badge-icon-wrap {
    color: var(--accent-blue);
    opacity: 0.7;
    flex-shrink: 0;
}

.badge-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-text span {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* --- Language Switcher --- */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-blue);
    background: rgba(59,130,246,0.08);
}

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

/* --- WhatsApp Button (Nav) --- */
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* --- WhatsApp Floating --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s;
    animation: waFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* --- WhatsApp contact styling --- */
.contact-item-wa .wa-icon {
    color: #25d366;
}

.contact-item-wa a:hover {
    color: #25d366 !important;
}

.social-wa:hover {
    color: #25d366 !important;
    border-color: #25d366 !important;
    background: rgba(37,211,102,0.08) !important;
}

/* --- Telegram contact styling --- */
.contact-item-tg .tg-icon {
    color: #26a5e4;
}

.contact-item-tg a:hover {
    color: #26a5e4 !important;
}

/* --- Footer Company --- */
.footer-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.company-name {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.company-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(59,130,246,0.12);
    color: var(--accent-blue);
    letter-spacing: 0.05em;
}

.footer-messengers {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer-messenger-link:hover {
    transform: translateY(-2px);
}

.footer-wa:hover {
    color: #25d366;
    border-color: #25d366;
    background: rgba(37,211,102,0.08);
}

.footer-tg:hover {
    color: #26a5e4;
    border-color: #26a5e4;
    background: rgba(38,165,228,0.08);
}

/* --- Mobile WhatsApp Icon --- */
.nav-wa-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.25s;
}

.nav-wa-mobile:hover {
    background: #20bd5a;
    transform: scale(1.08);
}

/* Desktop-only elements */
.nav-desktop-only { display: flex; }

/* --- Mobile Language Switcher --- */
.lang-switcher-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.lang-switcher-mobile .lang-option {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

/* --- Responsive additions --- */
@media (max-width: 768px) {
    .badges-row { gap: 12px; }
    .badge-item { padding: 8px 12px; }
    .badge-text span { display: none; }

    /* Hide desktop WA button + lang switcher + CTA, show mobile WA icon */
    .nav-wa-desktop { display: none !important; }
    .nav-desktop-only { display: none !important; }
    .nav-wa-mobile { display: flex; }

    /* Show lang switcher inside mobile menu */
    .nav-links.active .lang-switcher-mobile { display: flex; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    .badges-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .badge-item { flex-shrink: 0; }

    /* Slightly larger WA icon on small screens */
    .nav-wa-mobile { width: 36px; height: 36px; }
    .nav-wa-mobile svg { width: 20px; height: 20px; }
}
