/* SA Design Bureau site styles. Plain CSS, no framework. The logo's own styles are in navbar-brand.css. */

/* ---------- Tokens ---------- */
:root {
    --pink: #FF006F;
    --blue: #002AFF;
    --grad: linear-gradient(135deg, #FF006F, #002AFF);
    --ink: #0E1530;          /* headings */
    --text: #4A5372;         /* body copy */
    --base: #66615B;         /* default text, navbar links when solid */
    --muted: #777777;
    --line: #DDDDDD;
    --tint: rgba(246, 247, 251, .55);
    --navy: #0B1A4A;
    --focus: #5A3BE8;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: #fff; color: var(--base);
    font: 300 14px/1.5 Montserrat, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: 300; }
a { color: var(--focus); text-decoration: none; }
img, svg { vertical-align: middle; }
button, input, textarea { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 90px; }   /* anchors land below the fixed navbar */

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Text runs a size smaller on phones; headings are sized in em so they follow. */
@media (max-width: 767.98px) { .hero, .section, .footer { font-size: 12px; } }

/* ---------- Icons ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    width: 1em; height: 1em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 18px; border: 2px solid transparent; border-radius: 30px; cursor: pointer;
    font-size: 12px; font-weight: 600; line-height: 21px; text-transform: uppercase; text-decoration: none;
    transition: background-color .2s, color .2s, box-shadow .2s, filter .2s;
}
.btn .icon { font-size: 12px; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--base); }
.btn-primary {
    background: var(--grad); border: 0; padding: 8px 18px; color: #fff;
    box-shadow: 0 6px 18px rgba(0, 42, 255, .18);
}
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.08); box-shadow: 0 8px 22px rgba(255, 0, 111, .25); }
.btn-lg { font-size: 14px; line-height: 24.5px; padding: 14px 34px; }
.btn-text {
    display: inline-block; padding: 7px 18px; font-size: 12px; font-weight: 500; line-height: 21px;
    text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navbar ---------- */
/* Transparent with the large stacked logo over the hero; solid white with the compact logo once scrolled.
   The logo's two layouts are in navbar-brand.css, keyed on .navbar-transparent. */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    padding-top: 25px; background: #fff; box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .15);
    transition: background-color .4s, box-shadow .4s, padding .4s;
}
.navbar.navbar-transparent { background: transparent; box-shadow: none; }
.navbar:not(.navbar-transparent) { padding-top: 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-translate { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { padding: 6px 8px; }
.navbar-nav { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-link {
    display: flex; align-items: center; gap: 6px; margin: 15px 0; padding: 10px 15px;
    font-size: 12px; font-weight: 600; line-height: 1.6; text-transform: uppercase; color: var(--base);
}
.navbar-transparent .nav-link { color: #fff; }
.nav-link .icon { font-size: 16px; }
.nav-icon span { display: none; }           /* icon-only on desktop; labelled in the phone menu */
.nav-link:hover { opacity: .75; }

.navbar-burger { display: none; width: 50px; height: 24px; padding: 4px 13px; border: 0; background: none; cursor: pointer; }
.navbar-toggler-bar {
    display: block; width: 24px; height: 2px; border-radius: 1px; background: var(--base);
    transition: transform .3s, opacity .3s;
}
.navbar-toggler-bar + .navbar-toggler-bar { margin-top: 5px; }
.navbar-transparent .navbar-toggler-bar { background: #fff; }
.nav-backdrop { display: none; }

/* Phone and tablet: links move into a panel that slides in from the right. */
@media (max-width: 991.98px) {
    .navbar-translate { width: 100%; }
    .navbar-burger { display: block; padding: 4px 0 4px 26px; }
    .navbar-collapse {
        position: fixed; top: 0; right: 0; z-index: 1032; width: 230px; height: 100vh; overflow-y: auto;
        padding: 15px 15px 15px 41px; background: #FFFCF5;
        box-shadow: -6px 0 20px rgba(0, 0, 0, .12);
        transform: translateX(240px); transition: transform .33s cubic-bezier(.685, .0473, .346, 1);
    }
    .navbar-nav { display: block; }
    .navbar-collapse .nav-link, .navbar-transparent .navbar-collapse .nav-link {
        margin: 0; padding: 15px 0; color: #9A9A9A;
    }
    .nav-icon span { display: inline; }
    .nav-open .navbar-collapse { transform: none; }
    .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1029; background: rgba(14, 21, 48, .25);   /* under the navbar, over the page */
        opacity: 0; pointer-events: none; transition: opacity .33s;
    }
    .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
    /* burger turns into a close cross while the menu is open */
    .nav-open .navbar-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .navbar-toggler-bar:nth-child(2) { opacity: 0; }
    .nav-open .navbar-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- SafeCaller menu panel ---------- */
/* Shown in SafeCaller's own look, taken from the app's theme (SafeCaller/android/.../ui/theme/Color.kt and its
   network background): royal-blue network gradient, cyan glow, sky highlights, navy, Plus Jakarta Sans. */
.sc-item {
    --sc-navy: #0B1A4A; --sc-navy-deep: #070F2E; --sc-blue: #1E63FF; --sc-cyan: #00C8F0; --sc-sky: #8FDCFF;
    --sc-node: #BDF3FF; --sc-band: #4DA6FF;
    position: relative;
}
.sc-trigger { border: 0; background: none; cursor: pointer; font-family: inherit; }
.sc-chevron { font-size: 14px; transition: transform .2s; }
.sc-item.is-open .sc-chevron { transform: rotate(180deg); }

.sc-panel {
    position: absolute; top: calc(100% - 10px); left: 50%; z-index: 5; width: 340px; overflow: hidden;
    border-radius: 20px; color: #fff; text-align: left; text-transform: none;
    font: 400 14px/1.45 "Plus Jakarta Sans", Montserrat, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(70% 55% at 0% 0%, rgba(0, 200, 240, .35), transparent 70%),
        linear-gradient(135deg, #0E58EC, #0A40CC 55%, #0A2D9E);
    box-shadow: 0 24px 60px rgba(7, 15, 46, .45), 0 0 0 1px rgba(143, 220, 255, .25);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.sc-item.is-open .sc-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.sc-panel::before {   /* a soft light band across the panel, like the app's network */
    content: ""; position: absolute; inset: -40% -20%; pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgba(77, 166, 255, .28) 50%, transparent 62%);
}
.sc-network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-network line { stroke: var(--sc-node); stroke-width: 1; }
.sc-network circle { fill: var(--sc-node); filter: drop-shadow(0 0 3px var(--sc-cyan)); }
.sc-layer { animation: sc-drift 26s ease-in-out infinite alternate; }
.sc-layer-2 { animation-duration: 20s; animation-direction: alternate-reverse; }
.sc-layer-3 { animation-duration: 15s; }
@keyframes sc-drift { from { transform: translate(-6px, 4px); } to { transform: translate(8px, -6px); } }
@media (prefers-reduced-motion: reduce) { .sc-layer { animation: none; } }

.sc-content { position: relative; padding: 22px 24px 24px; }
.sc-head { display: flex; align-items: center; gap: 14px; }
.sc-icon {   /* the app's swoosh on a white tile, like its launcher icon */
    box-sizing: content-box; width: auto; height: 48px; padding: 8px 12px; border-radius: 16px; background: #fff;
    box-shadow: 0 8px 20px rgba(7, 15, 46, .3);
}
.sc-name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.sc-name span + span { color: var(--sc-sky); }
.sc-chip {
    display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
    background: var(--sc-cyan); color: var(--sc-navy-deep); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.sc-pitch { margin: 16px 0 10px; font-size: 15px; font-weight: 600; color: #fff; }
.sc-points { margin: 0 0 18px; padding: 0; list-style: none; }
.sc-points li { display: flex; gap: 8px; margin: 6px 0; font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.sc-points .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--sc-cyan); stroke-width: 2.6; }
.sc-cta {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
    background: var(--sc-cyan); color: var(--sc-navy-deep); font-size: 13px; font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 200, 240, .35); transition: background-color .2s;
}
.sc-cta:hover, .sc-cta:focus-visible { background: var(--sc-sky); }
.sc-cta .icon { width: 15px; height: 15px; stroke-width: 2.4; }

/* In the phone menu the panel opens in place under the item. */
@media (max-width: 991.98px) {
    .sc-trigger { width: 100%; justify-content: flex-start; text-align: left; }
    .sc-panel {
        position: static; width: auto; margin: 0 0 12px; border-radius: 16px; transform: none;
        display: none; opacity: 1; visibility: visible;
    }
    .sc-item.is-open .sc-panel { display: block; transform: none; }
    .sc-content { padding: 18px 16px 18px; }
    .sc-head { flex-direction: column; align-items: flex-start; gap: 10px; }   /* narrow menu: icon above name */
    .sc-name { font-size: 22px; }
    .sc-chip { white-space: nowrap; }
    .sc-icon { height: 38px; padding: 6px 9px; border-radius: 12px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    min-height: 100vh; max-height: 999px; color: #fff; text-align: center;
    background: linear-gradient(to bottom right, rgba(255, 0, 111, .8), rgba(0, 42, 255, .8)),
                url('/img/hero-pattern.png') center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }   /* shade over the image */
.hero > .container { position: relative; }
.hero h1 { margin-top: 30px; font-size: 3.6em; line-height: 1.2; }
.hero-lead { margin-top: 20px; font-size: 1.825em; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 21px; }
/* Short windows (e.g. a phone held sideways): leave room for the navbar instead of running under it. */
@media (max-height: 640px) { .hero { padding: 110px 0 40px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 70px 0; text-align: center; }
.section-tint { background: var(--tint); }
.section-head { max-width: 730px; margin: 0 auto; }
.section-title { margin: 30px 0 25px; font-size: 2.8em; line-height: 1.2; color: var(--ink); }
.section-title::after {   /* short gradient bar, echoing the navbar */
    content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--grad);
}
.section-lead { margin-bottom: 8px; font-size: 1.35em; font-weight: 400; line-height: 1.4; color: var(--text); }
.section-head .btn { margin-top: 21px; }

.features { display: grid; gap: 30px; margin-top: 42px; }
@media (min-width: 768px) {
    .features-4 { grid-template-columns: repeat(4, 1fr); }
    .features-3 { grid-template-columns: repeat(3, 1fr); }
}
.feature-icon {
    display: block; width: 48px; height: 48px; margin: 12px auto 11px;
    fill: none; stroke: url(#icon-grad); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.feature-title { margin-top: 30px; font-size: 1.6em; line-height: 1.2; color: var(--ink); }
.feature p { margin-bottom: 5px; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--text); }

/* Products */
#products .section-head + .product-card { margin-top: 21px; }
.product-card {
    position: relative; overflow: hidden; max-width: 820px; margin: 0 auto; padding: 32px; text-align: left;
    background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(14, 21, 48, .08);
}
.product-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.badge-soon {
    display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pink);
}
.product-title { margin-bottom: 12px; font-size: 1.825em; line-height: 1.4; color: var(--ink); }
.product-card p { margin-bottom: 5px; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--text); }

/* Team: deep navy to purple with a soft glow */
.section-team {
    background:
        radial-gradient(60% 80% at 15% 0%, rgba(255, 0, 111, .22), transparent 70%),
        radial-gradient(60% 80% at 85% 100%, rgba(0, 42, 255, .28), transparent 70%),
        linear-gradient(135deg, #070F2E, var(--navy) 55%, #1A1150);
}
.section-team .section-title { color: #fff; }
.section-team .section-title::after { background: linear-gradient(90deg, #FF4D9A, #5C7BFF); }
.team { display: grid; gap: 30px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { margin-top: 40px; margin-bottom: 20px; }
.avatar {
    width: 120px; height: 120px; margin: 0 auto; padding: 4px; border-radius: 50%;
    background: linear-gradient(135deg, #FF006F, #5C7BFF);
}
.avatar span {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #2A1B5E, #13235F); color: #fff; font-size: 32px; letter-spacing: .04em;
}
.member-name { margin: 5px 0 0; font-size: 1.6em; line-height: 1.2; color: #fff; }
.member-role { margin: 12px 0 5px; font-size: .9em; font-weight: 600; line-height: 1.5; text-transform: uppercase; color: #FF7BB5; }
.member-bio { margin-bottom: 5px; font-size: 15px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.member-links { display: flex; justify-content: center; gap: 4px; padding: 15px 0; }
.member-links a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; color: #fff; font-size: 14px;
}
.member-links a:hover { background: rgba(255, 255, 255, .1); }

/* Contact form */
.section-contact { padding: 100px 0; text-align: left; }
.section-contact .section-title { margin-bottom: 0; text-align: center; }
.contact-form { max-width: 730px; margin: 30px auto 0; }
.contact-form label { display: block; margin: 15px 0 8px; font-size: 14px; }
.fields-2 { display: grid; gap: 0 30px; }
@media (min-width: 768px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.input-icon {
    display: flex; align-items: center; height: 40px; background: #fff;
    border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s;
}
.input-icon .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 0 13px; color: #495057; stroke-width: 1.6; }
.input-icon input {
    flex: 1; min-width: 0; height: 100%; padding: 7px 12px 7px 0; border: 0; background: none; outline: none;
    font-size: 14px; font-weight: 400; color: var(--base);
}
.contact-form textarea {
    display: block; width: 100%; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px;
    background: #fff; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--base); resize: vertical;
    outline: none; transition: border-color .2s;
}
.input-icon:focus-within, .contact-form textarea:focus { border-color: var(--focus); }
.contact-form ::placeholder { color: #9A9A9A; opacity: 1; }
.form-actions { text-align: center; }
.form-actions .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: #fff; border-top: 3px solid transparent; border-image: linear-gradient(90deg, #FF006F, #002AFF) 1; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 7px; }
.footer-nav { display: flex; flex-wrap: wrap; }
.footer-nav a {
    margin: 15px 3px 15px 0; padding: 10px 15px; font-size: 12px; font-weight: 600; line-height: 1.6;
    text-transform: uppercase; color: var(--muted);
}
.footer-nav a:hover { color: var(--base); }
.copyright { margin: 15px 0; padding: 10px 15px; font-size: 14px; line-height: 20px; color: var(--muted); }
.copyright .heart { font-size: 13px; color: #EB5E28; vertical-align: -1px; }
@media (max-width: 767.98px) { .footer .container { flex-direction: column; } .footer-nav { justify-content: center; } }

/* ==========================================================================================================
   Home page "Blueprint" background: a drafting grid that moves at its own pace and a drafting-style gear that
   turns as you scroll. A fixed layer behind the content; /js/scroll-bg.js sets --p (0 at the top, 1 at the
   bottom) on each layer to move it. The page body and light sections are see-through so it shows; the hero
   and the dark team section stay solid.
   ========================================================================================================== */
.sadb-home .main { position: relative; z-index: 1; }

.scroll-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scroll-bg > span { --p: 0; position: absolute; display: block; will-change: transform; }

.scroll-bg .grid {
    left: 0; right: 0; top: 0; height: 200vh;
    background-image:
        linear-gradient(rgba(0, 42, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 42, 255, .12) 1px, transparent 1px),
        linear-gradient(rgba(255, 0, 111, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 111, .07) 1px, transparent 1px);
    background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
    transform: translate3d(0, calc(var(--p) * -100vh), 0);
}
.scroll-bg .gear {
    width: 90vmin; height: 90vmin; right: -25vmin; top: 50%; margin-top: -45vmin;
    transform: rotate(calc(var(--p) * 220deg)) translate3d(0, calc(var(--p) * -10vh), 0);
}
.scroll-bg .gear svg { width: 100%; height: 100%; display: block; overflow: visible; }
.scroll-bg .gear svg * {
    fill: none; stroke: rgba(90, 59, 232, .3); stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.scroll-bg .gear .gear-outline { stroke: rgba(90, 59, 232, .34); stroke-linejoin: round; }
.scroll-bg .gear .gear-dashed { stroke: rgba(255, 0, 111, .22); stroke-dasharray: 6 5; }
.scroll-bg .gear .gear-axis { stroke: rgba(90, 59, 232, .2); stroke-width: 1; }

/* PARKED (showEasel in Pages/Index.cshtml): an easel lower-left, opposite the gear. scroll-bg.js composes a
   random scene each visit and paints it on as you scroll; each stroke's colour and width are set by the script. */
.scroll-bg .easel {
    width: 58vmin; height: 72.5vmin; left: -10vmin; top: 58%; margin-top: -36vmin;
    transform: translate3d(0, calc(var(--p) * -8vh), 0) rotate(-4deg);
}
.scroll-bg .easel svg { width: 100%; height: 100%; display: block; overflow: visible; }
.scroll-bg .easel .easel-frame * {
    fill: none; stroke: rgba(90, 59, 232, .3); stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.scroll-bg .easel .paint path {
    fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 7;
    stroke-dasharray: 1 1; stroke-dashoffset: 1;   /* painted amount is set by scroll-bg.js */
}
.scroll-bg .easel .brush * { fill: none; stroke: rgba(90, 59, 232, .45); stroke-width: 2.4; stroke-linecap: round; }
.scroll-bg .easel .brush .brush-ferrule { stroke: rgba(90, 59, 232, .6); stroke-width: 4; }
.scroll-bg .easel .brush .brush-tip { fill: rgba(255, 0, 111, .5); stroke: none; }
@media (prefers-reduced-motion: reduce) { .scroll-bg .easel .paint path { stroke-dashoffset: 0 !important; } }

/* ---------- Error page ---------- */
.page-plain { padding: 160px 0 80px; min-height: 70vh; }
