:root {
    --bg: #070A12;
    --bg2: #0B1021;
    --card: rgba(255,255,255,.06);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.70);
    --muted2: rgba(255,255,255,.55);
    --border: rgba(255,255,255,.12);
    --accent: #7C5CFF;
    --accent2: #2DE2E6;
    --shadow: 0 12px 40px rgba(0,0,0,.35);
    --radius: 18px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background-color: var(--bg2);
    color: var(--text);
    line-height: 1.55;
}

/* Fixed gradient that stays in place on all devices (including iOS Safari) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(1200px 600px at 15% 0%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(45,226,230,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: .92;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Tech canvas background ── */
#techCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content sits above canvas */
.header { position: relative; z-index: 50; }
main    { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

/* ── Scroll-reveal animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards within a grid */
.grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ── Enhanced card hover ── */
.card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,255,.35);
    box-shadow: 0 0 30px rgba(124,92,255,.12), 0 8px 32px rgba(0,0,0,.3);
}

/* Subtle shimmer line on card hover */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(124,92,255,.08) 45%,
        rgba(45,226,230,.06) 55%,
        transparent 60%
    );
    transition: opacity .3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* ── Custom card hover (subpage cards) ── */
.sv-card,
.fb-card,
.fl-card,
.ws-card,
.pricing-card,
.fb-price-card,
.ws-price-card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sv-card:hover,
.fb-card:hover,
.fl-card:hover,
.ws-card:hover,
.pricing-card:hover,
.fb-price-card:hover,
.ws-price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,255,.35);
    box-shadow: 0 0 30px rgba(124,92,255,.12), 0 8px 32px rgba(0,0,0,.3);
}

/* Stagger reveals in custom grids */
.sv-grid .reveal:nth-child(2),
.fb-grid .reveal:nth-child(2),
.fl-grid .reveal:nth-child(2),
.ws-grid .reveal:nth-child(2) { transition-delay: .08s; }

.sv-grid .reveal:nth-child(3),
.fb-grid .reveal:nth-child(3),
.fl-grid .reveal:nth-child(3),
.ws-grid .reveal:nth-child(3) { transition-delay: .16s; }

/* ── Chip / pill float on hover ── */
.chip {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: rgba(45,226,230,.3);
    box-shadow: 0 0 12px rgba(45,226,230,.1);
}

/* ── Hero entrance animation ── */
.page-hero h1,
.page-hero p,
.page-hero .btn,
.sv-hero h1,
.sv-hero p,
.sv-hero .btn,
.pricing-hero h1,
.pricing-hero p,
.fb-hero h1,
.fb-hero p,
.fb-hero .btn,
.fl-hero h1,
.fl-hero p,
.fl-hero .btn,
.ws-hero h1,
.ws-hero p,
.ws-hero .btn {
    animation: fadeInUp .7s cubic-bezier(.16,1,.3,1) both;
}

.page-hero p,
.sv-hero p,
.pricing-hero p,
.fb-hero p,
.fl-hero p,
.ws-hero p       { animation-delay: .1s; }

.page-hero .btn,
.sv-hero .btn,
.fb-hero .btn,
.fl-hero .btn,
.ws-hero .btn    { animation-delay: .2s; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(7,10,18,.55);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

/* Top-left action button */
.header__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-weight: 850;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0px);
}

.action-btn__icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    font-weight: 900;
}

/* Brand logo only (no container, no box) */
.brand {
    display: flex;
    align-items: center;
}

.header .brand {
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}

.header .brand:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.brand__logo {
    display: block;
    width: 200px;

    /* larger, intentional */
    height: auto;
}

/* Mobile tuning */
@media (max-width: 980px) {
    .brand__logo {
        width: 150px;
    }
}

@media (max-width: 980px){
    .hide_mobile {
        display: none !important;
    }
}

@media (min-width: 981px){
    .hide_pc {
        display: none !important;
    }
}

.contact-details {
    font-size: clamp(14px, 3.5vw, 22px);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Logo container: remove box + background */
.brand__mark {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-weight: 900;
    letter-spacing: .2px;
}

.brand__tag {
    font-size: 12px;
    color: var(--muted2);
    margin-top: 4px;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--text);
}

.nav__burger {
    width: 18px;
    height: 2px;
    background: var(--text);
    display: block;
    margin: 0 auto;
    position: relative;
}

.nav__burger::before,
.nav__burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
}

.nav__burger::before {
    top: -6px;
}

.nav__burger::after {
    top: 6px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav__menu a {
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.nav__menu a:hover {
    color: var(--text);
    opacity: 1;
    transform: translateY(-1px);
}

.nav__menu a.is-active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Nav Dropdowns */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-trigger {
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
    opacity: .85;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity .2s ease, color .2s ease;
}

.nav__dropdown-trigger:hover {
    color: var(--text);
    opacity: 1;
}

.nav__dropdown-trigger.is-active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav__dropdown-trigger::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 2px;
    transition: transform .2s ease;
}

.nav__dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 10px;
    background: rgba(7,10,18,.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 4px;
    z-index: 60;
}

.nav__dropdown.is-open .nav__dropdown-menu {
    display: flex;
}

@media (min-width: 981px) {
    .nav__dropdown:hover .nav__dropdown-menu {
        display: flex;
    }
}

.nav__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav__dropdown-menu a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.nav__dropdown-menu a:hover {
    background: rgba(255,255,255,.06);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(45,226,230,.70));
    color: #0A0B10;
    font-weight: 900;
    box-shadow: var(--shadow);
}

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

.btn:active {
    transform: translateY(0px);
}

.btn--ghost {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn--small {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 750;
    font-size: 13px;
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Strip */
.strip {
    padding: 16px 0 34px;
}

.strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 16px;
    background: rgba(255,255,255,.04);
}

.strip__text {
    margin: 0;
    color: var(--muted2);
    font-weight: 900;
    font-size: 13px;
}

.strip__logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-weight: 750;
    font-size: 12px;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section--tight {
    padding: 40px 0;
}

.section--alt {
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    margin-bottom: 22px;
}

.section__head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -.3px;
}

.section__head p {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
}

.grid {
    display: grid;
    gap: 14px;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: -.2px;
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.list li {
    margin: 6px 0;
}

/* Timeline */
.timeline {
    display: grid;
    gap: 12px;
}

.step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.step__num {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    font-weight: 950;
}

.step__body h3 {
    margin: 0 0 6px;
}

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

/* FAQ */
.faq {
    display: grid;
    gap: 10px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    padding: 14px 14px;
}

.faq__item summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
}

.faq__item p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.contact__bullets {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-weight: 700;
}

.bullet__icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-weight: 950;
}

.contact__note {
    margin-top: 14px;
    color: var(--muted2);
}

.contact__note a {
    text-decoration: underline;
}

.form label {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

input,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.25);
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(124,92,255,.6);
}

.form__note {
    margin: 10px 0 0;
    color: var(--muted2);
    font-size: 12px;
}

/* Simple page header (non-home) */
.page-hero {
    padding: 54px 0 18px;
}

.page-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
}

/* Footer (upgraded to match header) */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(7,10,18,.55);

    /* match header tone */
    backdrop-filter: blur(10px);

    /* match header glass */
    padding: 56px 0 28px;

    /* more breathing room */
}

/* Layout: 4 columns (brand | services | products+company | legal) */
.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 200px;
}

.footer__tagline {
    margin: 0;
    color: var(--muted2);
    font-size: 13px;
    font-weight: 600;
    max-width: 220px;
    line-height: 1.45;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__heading {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .7;
}

/* Keep legacy class for any remaining usage */
.footer__nav,
.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Link styling consistent with site */
.footer a {
    color: var(--text);
    text-decoration: none;
    opacity: .85;
    padding: 6px 0;

    /* adds click padding */
    font-weight: 800;
    font-size: 13px;
    transition: opacity .2s ease, transform .2s ease;
}

.footer a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Bottom bar */
.footer__bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    opacity: .7;
    font-size: 12px;
    text-align: center;
}

/* Mobile: stack nicely */
@media (max-width: 980px) {
    .footer {
        padding: 40px 0 22px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        text-align: left;
    }

    .footer__left {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        min-width: 0;
    }

    .footer__tagline {
        max-width: none;
        text-align: center;
    }

    .footer__col nav {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col {
        align-items: center;
    }

    .footer__col nav {
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 980px){
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid--4 {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav__menu {
        display: none;
        position: absolute;
        right: 20px;
        top: 70px;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
        border: 1px solid var(--border);
        background: rgba(7,10,18,.92);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        min-width: 220px;
    }

    .nav__menu.is-open {
        display: flex;
    }

    .nav__dropdown {
        position: static;
    }

    .nav__dropdown-trigger {
        width: 100%;
        text-align: left;
    }

    .nav__dropdown-menu {
        position: static;
        transform: none;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 4px 0 0 16px;
        min-width: auto;
        border-radius: 0;
        gap: 8px;
    }

    .nav__dropdown.is-open .nav__dropdown-trigger::after {
        transform: rotate(-135deg);
        margin-bottom: -2px;
    }

    .strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .strip__logos {
        justify-content: flex-start;
    }

    .header__left {
        min-width: unset;
    }

    .action-btn__label {
        display: none;
    }

    /* Hide Call Us button on mobile */
    .call-only {
        /* shown on mobile only via separate rule */
    }

    /* keeps it compact on mobile */
}

/* Hide Call Us button on desktop */
@media (min-width: 981px) {
    .call-only {
        display: none !important;
    }
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    #techCanvas {
        display: none;
    }
}
