:root {
    --brand: #0B2545;          /* deep aviation blue */
    --brand-dark: #061a35;
    --brand-mid: #173a6b;
    --accent: #27D585;         /* checkmark green */
    --accent-cyan: #5BE3FF;
    --text: #0f1b2d;
    --text-muted: #4a5b73;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --border: #dde4ee;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 12px 30px rgba(11, 37, 69, 0.12);
}

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

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

a { color: inherit; }

/* ---- Background ambient ------------------------------------------------ */

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.bg-animation::before,
.bg-animation::after {
    content: "";
    position: absolute;
    width: 160vw;
    height: 160vw;
    top: -30vw;
    left: -30vw;
    background: conic-gradient(from 90deg,
        rgba(11, 37, 69, 0.05),
        rgba(39, 213, 133, 0.10),
        rgba(91, 227, 255, 0.10),
        rgba(255, 255, 255, 0));
    border-radius: 45%;
    animation: drift 32s linear infinite;
}

.bg-animation::after {
    animation-duration: 48s;
    animation-direction: reverse;
    opacity: 0.6;
    mix-blend-mode: screen;
}

@keyframes drift {
    0%   { transform: rotate(0deg)   translate3d(0,0,0); }
    50%  { transform: rotate(180deg) translate3d(4vw, -3vw, 0); }
    100% { transform: rotate(360deg) translate3d(0,0,0); }
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header,
main,
.site-footer,
.top-bar { position: relative; z-index: 2; }

/* ---- Top bar ----------------------------------------------------------- */

.top-bar {
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.top-bar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.top-bar-brand:hover { transform: translateY(-1px); }

.top-bar-logo {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    display: block;
}

.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-weight: 600;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: #fff;
    border-color: var(--accent);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-btn {
    border: none;
    background: none;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.lang-btn.active { color: #fff; }
.lang-separator { color: rgba(255, 255, 255, 0.4); }

/* ---- Hero -------------------------------------------------------------- */

.site-header {
    padding: 110px 0 90px;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(39, 213, 133, 0.10), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(91, 227, 255, 0.12), transparent 55%),
        linear-gradient(135deg, #f9fbff 0%, #e9f0fb 100%);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800" preserveAspectRatio="none"><path d="M0,0 L1440,0 L1440,640 C1200,720 240,780 0,750 L0,0 Z" fill="black"/></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800" preserveAspectRatio="none"><path d="M0,0 L1440,0 L1440,640 C1200,720 240,780 0,750 L0,0 Z" fill="black"/></svg>');
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.brand-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    color: var(--brand);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    margin-top: 14px;
    color: var(--text-muted);
    max-width: 560px;
    font-size: 1.05rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(11, 37, 69, 0.25);
    aspect-ratio: 16 / 11;
    background: var(--brand);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(11, 37, 69, 0.0) 50%,
        rgba(11, 37, 69, 0.55) 100%);
}

.hero-visual-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-visual-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(39, 213, 133, 0.25);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.97rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 28px rgba(11, 37, 69, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(11, 37, 69, 0.3); }

.btn-accent {
    background: var(--accent);
    color: #052618;
    box-shadow: 0 14px 28px rgba(39, 213, 133, 0.35);
}

.btn-accent:hover { transform: translateY(-2px); }

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--brand);
    background: rgba(11, 37, 69, 0.06);
}

.btn-secondary:hover { background: rgba(11, 37, 69, 0.1); }

.btn-text {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text::after {
    content: '→';
    transition: transform 0.2s ease;
}

.btn-text:hover::after { transform: translateX(4px); }

.cta-note {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---- Sections ---------------------------------------------------------- */

main {
    position: relative;
    z-index: 1;
    margin-top: -40px;
    background: transparent;
}

.section {
    padding: 90px 0;
    scroll-margin-top: 100px;
    position: relative;
}

.section.alt {
    background: var(--bg);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 1200" preserveAspectRatio="none"><path d="M0,200 C480,150 960,100 1440,0 L1440,1100 C960,1200 480,1250 0,1200 Z" fill="black"/></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 1200" preserveAspectRatio="none"><path d="M0,200 C480,150 960,100 1440,0 L1440,1100 C960,1200 480,1250 0,1200 Z" fill="black"/></svg>');
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
}

#how.section.alt {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 1200" preserveAspectRatio="none"><path d="M0,0 C480,100 960,150 1440,200 L1440,1200 C960,1250 480,1200 0,1100 Z" fill="black"/></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 1200" preserveAspectRatio="none"><path d="M0,0 C480,100 960,150 1440,200 L1440,1200 C960,1250 480,1200 0,1100 Z" fill="black"/></svg>');
}

.section h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-lead {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 720px;
    font-size: 1.05rem;
}

/* ---- Screens (mockups) ------------------------------------------------- */

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.screen-button {
    border: none;
    background: transparent;
    border-radius: var(--radius);
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.screen-button:hover,
.screen-button:focus-visible {
    transform: translateY(-6px);
    outline: none;
}

.screen-img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* ---- Feature cards ----------------------------------------------------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(11, 37, 69, 0.05);
    min-height: 200px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(11, 37, 69, 0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px rgba(11, 37, 69, 0.15);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-icon-scan     { background: linear-gradient(135deg, #1bc7ff, #1176ff); }
.feature-icon-shield   { background: linear-gradient(135deg, #27d585, #0f8a5c); }
.feature-icon-pdf      { background: linear-gradient(135deg, #ff9b88, #ff5d8f); }
.feature-icon-mail     { background: linear-gradient(135deg, #c39bff, #7d4dff); }
.feature-icon-color    { background: linear-gradient(135deg, #ffd36b, #ff9f1c); }
.feature-icon-list     { background: linear-gradient(135deg, #4be1c0, #1a9f8f); }

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card p { color: var(--text-muted); }

/* ---- Steps ------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.step {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px 24px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 8px 18px rgba(11, 37, 69, 0.05);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(11, 37, 69, 0.25);
}

.step h3 {
    margin: 8px 0 12px;
    color: var(--brand);
    font-size: 1.05rem;
}

.step p { color: var(--text-muted); }

/* ---- Audience ---------------------------------------------------------- */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.audience-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(11, 37, 69, 0.05);
}

.audience-card h3 {
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 1.1rem;
}

.audience-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audience-card li {
    color: var(--text);
    padding-left: 24px;
    position: relative;
}

.audience-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ---- Security ---------------------------------------------------------- */

.security {
    text-align: center;
}

.security p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 213, 133, 0.12);
    color: #0f8a5c;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ---- FAQ --------------------------------------------------------------- */

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-list article {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
    box-shadow: 0 6px 14px rgba(11, 37, 69, 0.04);
}

.faq-list h3 {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 1.05rem;
}

.faq-list p { color: var(--text-muted); }

/* ---- CTA --------------------------------------------------------------- */

.cta { background: var(--bg); }

.cta-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 60px rgba(11, 37, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(39, 213, 133, 0.25), transparent 55%);
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

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

/* ---- Contact form ------------------------------------------------------ */

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info p { color: var(--text-muted); }

.contact-channel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 22px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(39, 213, 133, 0.15);
    color: var(--brand);
    display: grid;
    place-items: center;
}

.contact-channel strong { display: block; color: var(--brand); }
.contact-channel a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.contact-channel a:hover { color: var(--brand); }

.contact-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fbfcfe;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(39, 213, 133, 0.18);
    background: #fff;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .consent {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: flex-start;
    line-height: 1.5;
}

.contact-form .consent input { width: 18px; height: 18px; margin-top: 2px; }
.contact-form .consent a { color: var(--brand); font-weight: 600; }

.contact-form .submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 280px;
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
    background: var(--brand-dark);
    color: #fff;
    padding: 40px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ---- Lightbox ---------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 32, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop { position: absolute; inset: 0; }

.lightbox-content { position: relative; max-width: min(90vw, 460px); margin: 0; }

.lightbox-content img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .top-bar-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-bar-brand { order: 0; }
    .main-nav { order: 2; flex-basis: 100%; justify-content: center; gap: 16px; font-size: 0.9rem; }
    .language-switcher { order: 1; }
    .brand { flex-direction: column; text-align: center; }
    .hero-ctas { width: 100%; align-items: stretch; }
    .hero-cta-row .btn { flex: 1; min-width: 0; }
    .cta-card { padding: 40px 24px; }
}
