/* ===== VISONEX – Global Styles ===== */
:root {
    --blue: #0078c1;
    --blue-dark: #005f9a;
    --blue-light: #e8f4fb;
    --navy: #1a2a3a;
    --text: #2c3e50;
    --text-light: #5a6b7c;
    --text-muted: #8a9bac;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-dark: #0f1923;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #a0b0c0; }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header__logo img { height: 32px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}
.header__nav a:hover, .header__nav a.active { color: var(--blue); }
.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--blue);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background var(--transition);
}
.header__cta:hover { background: var(--blue-dark); color: #fff !important; }
.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e8f4fb 100%);
}
.hero--product {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0c1a2a 0%, #1a3550 100%);
    color: #fff;
}
.hero--product h1, .hero--product h2 { color: #fff; }
.hero--product p { color: #b0c4d8; }
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__badge {
    display: inline-block;
    background: rgba(0,120,193,0.1);
    color: var(--blue);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.hero--product .hero__badge {
    background: rgba(255,255,255,0.1);
    color: #6cb4e0;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; }
.hero__img img { width: 100%; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #f0f0f0; color: var(--navy); }
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Cards ===== */
.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.card__icon img { width: 32px; height: 32px; }
.card__icon svg { width: 28px; height: 28px; color: var(--blue); }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--blue); }

/* ===== Product Card (Home) ===== */
.product-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}
.product-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { font-size: 1.15rem; }
.product-card p { flex: 1; }
.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.product-card__link::after { content: '\2192'; transition: transform var(--transition); }
.product-card__link:hover::after { transform: translateX(4px); }

/* ===== Feature list ===== */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    color: var(--text-light);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

/* ===== Tabs (for product pages) ===== */
.tabs { margin-top: 2rem; }
.tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tabs__nav button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.tabs__nav button:hover { color: var(--text); }
.tabs__nav button.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.tabs__content { padding: 2rem 0; }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; }

/* ===== Steps / Timeline ===== */
.steps { counter-reset: step; }
.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}
.step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.step:last-child::before { display: none; }
.step__number {
    counter-increment: step;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.step__number::before { content: counter(step); }

/* ===== Stats ===== */
.stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number { font-size: 2.5rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== Contact Section ===== */
.contact-form {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg);
    color: var(--text);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,120,193,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #a0b0c0;
    padding: 4rem 0 2rem;
}
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer a { color: #a0b0c0; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer__info p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 0.5rem; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #607080;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__bottom a { color: #607080; }
.footer__bottom a:hover { color: #a0b0c0; }
.footer__badge { margin-top: 1.5rem; }
.footer__badge img { height: 48px; width: auto; opacity: 0.7; }

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}
.section-header p { color: var(--text-light); }

/* ===== Legal Pages ===== */
.legal { padding: 8rem 0 4rem; }
.legal__content { max-width: 800px; margin: 0 auto; }
.legal__content h1 { margin-bottom: 2rem; }
.legal__content h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.legal__content h3 { font-size: 1.1rem; margin-top: 2rem; }
.legal__content p, .legal__content li { font-size: 0.95rem; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__img { max-width: 500px; margin: 0 auto; }
    .btn-group { justify-content: center; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .header__nav { display: none; }
    .header__mobile-toggle { display: block; }
    .header__nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .tabs__nav { gap: 0; }
    .tabs__nav button { padding: 0.75rem 1rem; font-size: 0.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats { justify-content: center; }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
    .hero { padding: 6rem 0 3rem; }
    .hero--product { padding: 6rem 0 3rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .step { grid-template-columns: 40px 1fr; gap: 1rem; }
}
