:root {
    --cyan: #18a9e5;
    --violet: #7e2cff;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #eef4fb;
    --white: #ffffff;
    --line: #dbe4ef;
    --grad: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    color: #334155;
    background: var(--bg);
    line-height: 1.6;
}

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

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

.container {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1rem;
}

.brand img { height: 50px; width: auto; }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-desktop a:not(.btn) {
    color: #475569;
    font-weight: 600;
    font-size: 0.94rem;
}

.nav-desktop a:not(.btn):hover { color: var(--violet); }

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 1.6rem;
    color: var(--ink);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 1rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a { color: #475569; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.82rem 1.35rem;
    border-radius: 999px;
    border: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 28px rgba(24, 169, 229, 0.3);
}

.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }

.btn-glass {
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-block { width: 100%; }

/* Hero */
.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(24, 169, 229, 0.45) 45%, rgba(126, 44, 255, 0.35) 100%),
        url("/assets/img/hero.jpg") center/cover no-repeat,
        url("https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy { color: #fff; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2.2rem, 4.8vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(90deg, #7ee8ff, #d8b4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.1rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.hero-points i { color: #7ee8ff; margin-right: 0.25rem; }

.hero-panel { position: relative; }

.device-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 4px);
    padding: 0.65rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    animation: bob 4s ease-in-out infinite;
}

.float-chip i { color: var(--violet); }

.chip-a { top: 8%; left: -3%; }
.chip-b { bottom: 8%; right: -2%; animation-delay: 1s; }

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

/* Trust bar */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
}

.trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.trust-inner i { color: var(--cyan); margin-right: 0.3rem; }

/* Sections */
.section { padding: 5rem 0; }

.section-white { background: #fff; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.75rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--violet);
}

.section-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Video */
.video-shell { max-width: 900px; margin: 0 auto; }

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.video-poster,
.video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-el { display: none; }

.video-frame.is-playing .video-poster,
.video-frame.is-playing .video-play { display: none; }

.video-frame.is-playing .video-el:not([hidden]) { display: block; }

.video-youtube { position: absolute; inset: 0; }

.video-youtube iframe { width: 100%; height: 100%; border: 0; }

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(24, 169, 229, 0.4);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.gallery-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 0.85fr; }

.gallery-media { aspect-ratio: 16 / 10; overflow: hidden; }

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.gallery-card:hover .gallery-media img { transform: scale(1.04); }

.gallery-body { padding: 1.35rem 1.5rem 1.5rem; }

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 0.4rem;
}

.gallery-body h3 { margin: 0 0 0.45rem; color: var(--ink); font-size: 1.2rem; }

.gallery-body p { margin: 0; color: var(--muted); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.step-no {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.step h3 { margin: 0 0 0.4rem; color: var(--ink); font-size: 1.05rem; }

.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(24,169,229,.12), rgba(126,44,255,.12));
    color: var(--violet);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature h3 { margin: 0 0 0.35rem; font-size: 1.02rem; color: var(--ink); }

.feature p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: var(--grad);
    color: #fff;
    box-shadow: 0 14px 30px rgba(24, 169, 229, 0.22);
}

.metric strong {
    display: block;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1.15;
}

.metric span { font-size: 0.9rem; opacity: 0.95; }

/* Contact */
.contact {
    background:
        radial-gradient(circle at 0 100%, rgba(24,169,229,.08), transparent 40%),
        radial-gradient(circle at 100% 0, rgba(126,44,255,.06), transparent 35%),
        #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-aside,
.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

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

.contact-aside ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.contact-aside li {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.contact-aside li:last-child { border-bottom: 0; }

.contact-aside i { color: var(--cyan); font-size: 1.1rem; margin-top: 0.15rem; }

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

.form-row label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-row label.full { grid-column: 1 / -1; }

.form-row label.check {
    flex-direction: row;
    align-items: flex-start;
    font-weight: 500;
    color: #475569;
}

.form-row label.check input { width: auto; margin-top: 0.2rem; }

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(24, 169, 229, 0.15);
}

.form-hint { font-size: 0.84rem; color: var(--muted); margin: 0.75rem 0 0; }

.form-alert {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
}

.form-alert.show { display: block; }

.form-alert.success { background: #d1fae5; color: #065f46; }

.form-alert.error { background: #fee2e2; color: #991b1b; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
.footer {
    background: var(--ink);
    color: #94a3b8;
    padding: 2.5rem 0 1.75rem;
}

.footer-logo {
    display: block;
    height: 48px;
    width: min(190px, 100%);
    margin-bottom: 0.85rem;
    background-color: #ffffff;
    -webkit-mask-image: url('/assets/img/SafeKids_Logo.png');
    mask-image: url('/assets/img/SafeKids_Logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer h4 { color: #fff; margin: 0 0 0.65rem; }

.footer a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.footer a:hover { color: #fff; }

.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.86rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .contact-layout,
    .gallery-wide { grid-template-columns: 1fr; }

    .steps,
    .features,
    .metrics,
    .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }

    .steps,
    .features,
    .metrics,
    .gallery,
    .form-row,
    .footer-grid { grid-template-columns: 1fr; }

    .hero { padding-top: 3rem; }
    .float-chip { display: none; }
}
