/* ===========================================================
   iApp — stylesheet
   Brand: teal/blue squares + dark-grey wordmark
   =========================================================== */

:root {
    --teal-light: #7AC6DD;
    --teal:       #2E8DA8;
    --navy:       #173F59;
    --accent:     #2BA4D8;
    --accent-dk:  #1f86b4;

    --ink:        #20262c;
    --grey:       #3f4348;
    --muted:      #677480;
    --line:       #e4e9ee;
    --bg:         #ffffff;
    --bg-alt:     #f4f8fb;
    --bg-dark:    #122e42;

    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 10px 30px rgba(18, 46, 66, .08);
    --shadow-lg:  0 24px 60px rgba(18, 46, 66, .16);
    --container:  1160px;
    --ease:       cubic-bezier(.22,.61,.36,1);

    --grad: linear-gradient(135deg, var(--accent) 0%, var(--teal) 55%, var(--navy) 100%);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent-dk); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--grey); }

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

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: .98rem; padding: 13px 24px; border-radius: 999px;
    border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(43,164,216,.3); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43,164,216,.4); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18,46,66,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-name { font-size: 1.55rem; font-weight: 800; color: var(--grey); letter-spacing: -.03em; }
.brand-accent { color: var(--accent); }
.brand-logo { height: 48px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 8px;
    position: relative; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--accent-dk); background: var(--bg-alt); }
.nav-link.active { color: var(--accent-dk); }
.nav-link.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--accent); border-radius: 2px;
}

.nav-lang { display: flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.nav-lang a { color: var(--muted); padding: 2px 4px; border-radius: 5px; }
.nav-lang a.on { color: var(--accent-dk); }
.nav-lang a:hover { color: var(--ink); }

.nav-cta { margin-left: 8px; padding: 10px 18px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(18,46,66,.86) 0%, rgba(23,63,89,.66) 45%, rgba(43,164,216,.32) 100%);
}
.hero-content { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.hero-title { color: #fff; margin-bottom: 18px; }
.hero-sub { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-sound {
    position: absolute; right: 22px; bottom: 22px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
    background: rgba(18,46,66,.4); color: #fff; cursor: pointer; display: grid; place-items: center;
    backdrop-filter: blur(4px); transition: background .2s;
}
.hero-sound:hover { background: rgba(18,46,66,.7); }
.hero-sound svg { width: 22px; height: 22px; }
.hero-sound .snd-on { display: none; }
.hero-sound.on .snd-x { display: none; }
.hero-sound.on .snd-on { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-lead, .page-lead, .lead { color: var(--muted); font-size: 1.1rem; }
.section-head .section-lead { margin-top: 12px; }

.kicker {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent-dk); margin-bottom: 12px;
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.intro-grid .lead { margin-top: 14px; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-align: center;
}
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent-dk); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat:first-child, .intro-stats .stat:last-child { grid-column: auto; }
.intro-stats .stat:last-child { grid-column: 1 / -1; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.products-grid, .services-grid, .values-grid { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.card-icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(43,164,216,.14), rgba(46,141,168,.14));
    color: var(--accent-dk); margin-bottom: 18px;
}
.card-icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }

.product-card { display: flex; flex-direction: column; }
.product-card .card-link {
    margin-top: 16px; font-weight: 600; color: var(--accent-dk); font-size: .95rem;
    transition: gap .2s; display: inline-block;
}
.product-card:hover .card-link { color: var(--accent); }
.product-card h3 { color: var(--navy); font-size: 1.35rem; }

.icon { width: 24px; height: 24px; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 40px; height: 40px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-num {
    flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.why-item h3 { margin-bottom: 4px; color: var(--navy); }
.why-item p { font-size: .96rem; }

/* ---------- Page hero ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--navy));
    color: #fff; padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 72px);
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(43,164,216,.4), transparent 70%);
}
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: var(--teal-light); }
.page-hero .page-lead { color: rgba(255,255,255,.85); max-width: 620px; margin: 14px auto 0; }

/* ---------- Product detail ---------- */
.product-hero .product-hero-icon {
    display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 20px;
    background: rgba(255,255,255,.12); color: #fff; margin-bottom: 18px;
}
.back-link { color: var(--teal-light); font-weight: 600; display: inline-block; margin-bottom: 18px; font-size: .95rem; }
.back-link:hover { color: #fff; }

.product-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.product-desc .lead { margin-bottom: 28px; }
.product-features {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.product-features h3 { color: var(--navy); margin-bottom: 16px; }
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--grey); }
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h2 { margin-bottom: 14px; }
.iso-block { display: flex; gap: 30px; align-items: center; }
.iso-icon {
    flex: none; width: 90px; height: 90px; border-radius: 22px; display: grid; place-items: center;
    background: var(--grad); color: #fff;
}
.iso-block h2 { margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); margin: 16px 0; font-size: .94rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col a:hover { color: var(--teal-light); }

.iso-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
    color: var(--teal-light); border: 1px solid rgba(122,198,221,.35); border-radius: 999px; padding: 7px 14px;
}
.iso-badge svg { color: var(--teal-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: rgba(255,255,255,.6); }
.footer-legal-links a:hover { color: var(--teal-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.footer-social a:hover { color: var(--teal-light); border-color: var(--teal-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 18px; margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--grey); }
.contact-form input, .contact-form textarea {
    font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,164,216,.15);
}
.contact-form .err { border-color: #e0506a; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.contact-form .btn { justify-self: start; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e6f7ee; color: #14794a; border: 1px solid #b6e6cd; }
.alert-error { background: #fdecec; color: #b02a2a; border: 1px solid #f3bcbc; }
.alert-error a { color: #b02a2a; text-decoration: underline; }

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info h2 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-info ul { list-style: none; display: grid; gap: 16px; margin-bottom: 24px; }
.contact-info li { display: flex; align-items: center; gap: 12px; }
.ci-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--accent-dk); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; color: var(--navy); margin: 32px 0 10px; }
.legal p { margin-bottom: 14px; }
.legal a { color: var(--accent-dk); text-decoration: underline; }
.legal em { color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
    max-width: 980px; margin: 0 auto; background: var(--bg-dark); color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 18px 22px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    transform: translateY(140%); transition: transform .4s var(--ease);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { color: rgba(255,255,255,.85); font-size: .92rem; margin: 0; flex: 1 1 320px; }
.cookie-bar a { color: var(--teal-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--accent-dk); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Cookie preferences modal ---------- */
.cookie-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(10,26,38,.55); backdrop-filter: blur(2px); }
.cookie-modal-box {
    position: relative; background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
    max-height: 86vh; overflow-y: auto; padding: 28px; box-shadow: var(--shadow-lg);
}
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cookie-modal-head h2 { font-size: 1.4rem; }
.cookie-modal-x { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.cookie-modal-x:hover { color: var(--ink); }
.cookie-modal-intro { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.ck-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ck-cat-head strong { color: var(--navy); font-size: 1.02rem; }
.ck-cat p { font-size: .9rem; color: var(--muted); margin: 0; }
.ck-always { font-size: .8rem; font-weight: 600; color: var(--teal); background: rgba(46,141,168,.12); padding: 4px 10px; border-radius: 999px; }
.cookie-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* toggle switch */
.ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-slider { position: absolute; inset: 0; cursor: pointer; background: #cdd6de; border-radius: 999px; transition: background .25s; }
.ck-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ck-switch input:checked + .ck-slider { background: var(--accent); }
.ck-switch input:checked + .ck-slider::before { transform: translateX(20px); }
.ck-switch input:focus-visible + .ck-slider { box-shadow: 0 0 0 3px rgba(43,164,216,.3); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.error-page h1 { margin: 8px 0 12px; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .products-grid, .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid, .product-detail, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .iso-block { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px; gap: 4px;
        transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 12px 8px; border-radius: 8px; }
    .nav-link.active::after { display: none; }
    .nav-lang { margin: 8px 0; }
    .nav-cta { margin: 8px 0 0; }
}

@media (max-width: 540px) {
    .products-grid, .services-grid, .values-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
