/* ============================================================
   AptCircle / Aptivo — Design tokens
   ============================================================ */

:root {
    /* Color — pulled from the product app: deep navy chrome,
     blue primary actions, and a warm three-way accent set that
     mirrors the app's category tiles (orange / purple / red). */
    --navy-950: #0a1830;
    --navy-900: #102a52;
    --navy-800: #163a6b;
    --navy-700: #1d4a86;
    --blue-600: #2f6fe4;
    --blue-500: #4a86f2;
    --blue-100: #e7effe;
    --orange-500: #f5a623;
    --orange-100: #fef3de;
    --purple-600: #7c3fc9;
    --purple-100: #f1e8fb;
    --red-600: #e0483f;
    --red-100: #fbe6e4;

    --ink-900: #101a2c;
    --ink-700: #37455c;
    --ink-500: #667089;
    --ink-300: #a4acbd;

    --surface: #ffffff;
    --surface-alt: #f4f7fc;
    --surface-dim: #eaeff8;
    --border: #dfe6f2;

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --step-1: clamp(1.125rem, 1.06rem + 0.35vw, 1.375rem);
    --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
    --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
    --step-4: clamp(2.25rem, 1.85rem + 1.8vw, 3.5rem);
    --step-5: clamp(2.75rem, 2.1rem + 2.8vw, 4.5rem);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 1px 2px rgba(16, 26, 44, 0.06), 0 12px 32px -12px rgba(16, 26, 44, 0.16);
    --shadow-lift: 0 1px 2px rgba(16, 26, 44, 0.08), 0 24px 48px -16px rgba(16, 42, 82, 0.28);

    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--surface);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--navy-950);
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--step-5);
    font-weight: 600;
}

h2 {
    font-size: var(--step-4);
    font-weight: 600;
}

h3 {
    font-size: var(--step-2);
    font-weight: 600;
}

h4 {
    font-size: var(--step-1);
    font-weight: 600;
}

p {
    color: var(--ink-700);
    margin: 0 0 1em;
}

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

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

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

.section {
    padding: 96px 0;
}

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

.section--alt {
    background: var(--surface-alt);
}

.section--navy {
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: #fff;
}

.section--navy p {
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--blue-100);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section--navy .eyebrow {
    background: rgba(255, 255, 255, 0.1);
    color: #bcd2ff;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head p {
    font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--orange-500);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(47, 111, 228, 0.55);
}

.btn-primary:hover {
    background: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(16, 42, 82, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(16, 26, 44, 0.16);
    color: var(--navy-950);
}

.btn-outline:hover {
    border-color: var(--navy-950);
    transform: translateY(-2px);
}

.section--navy .btn-outline {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.section--navy .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
    background: transparent;
    color: var(--navy-950);
    padding: 14px 8px;
}

.btn-ghost:hover {
    color: var(--blue-600);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy-950);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-700);
    font-weight: 500;
    font-size: 0.96rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy-950);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--blue-600);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--navy-950);
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

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

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--surface-alt);
    }

    .nav-actions .btn-outline {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 46%, var(--navy-800) 100%);
    color: #fff;
    padding: 88px 0 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    color: #fff;
}

.hero-copy h1 .grad-text {
    background: linear-gradient(100deg, #6ea1ff, #b58bff 60%, #f5a623);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.76);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 14px;
    border-radius: 999px;
}

.hero-tag i {
    color: var(--orange-500);
}

.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-meta div {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.hero-meta span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    margin-top: 2px;
}

/* Animated background blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    animation: blobDrift 14s ease-in-out infinite;
}

.hero-blob--1 {
    width: 380px;
    height: 380px;
    background: var(--blue-600);
    opacity: 0.35;
    top: -120px;
    left: -80px;
}

.hero-blob--2 {
    width: 320px;
    height: 320px;
    background: var(--purple-600);
    opacity: 0.28;
    bottom: -140px;
    right: 10%;
    animation-delay: -5s;
}

.hero-blob--3 {
    width: 220px;
    height: 220px;
    background: var(--orange-500);
    opacity: 0.2;
    top: 30%;
    right: -60px;
    animation-delay: -9s;
}

@keyframes blobDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(24px, -28px) scale(1.08);
    }
}

.hero-visual {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone mockup */
.phone-frame {
    position: relative;
    z-index: 2;
    width: 280px;
    background: var(--navy-950);
    border-radius: 42px;
    padding: 16px 14px;
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 20px;
    background: var(--navy-950);
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone-screen {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    padding-top: 26px;
}

.phone-app-card .mock-head {
    padding: 14px 16px;
}

.phone-app-card .mock-body {
    padding: 14px 16px 18px;
}

.mock-card {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 3;
}

.mock-card .mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.mock-card .mock-head strong {
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: var(--navy-950);
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.mock-body {
    padding: 16px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.86rem;
    color: var(--ink-700);
}

.mock-row:last-child {
    border-bottom: none;
}

.mock-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mock-guard {
    width: 210px;
    top: 6px;
    right: -6px;
}

.mock-app {
    width: 190px;
    bottom: 12px;
    left: -18px;
}

.hero-badge {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: var(--shadow-lift);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--navy-950);
    font-weight: 600;
    white-space: nowrap;
}

.hero-badge .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.5);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

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

    .hero-visual {
        height: 440px;
        margin-top: 20px;
    }

    .phone-frame {
        width: 240px;
    }

    .mock-guard {
        width: 180px;
    }

    .mock-app {
        width: 160px;
    }
}

@media (max-width: 560px) {
    .hero-visual {
        height: 400px;
    }

    .phone-frame {
        width: 210px;
    }

    .mock-guard {
        width: 160px;
        top: 0;
    }

    .mock-app {
        width: 140px;
        bottom: 4px;
    }
}

/* ---------- Stats strip ---------- */
.stats-strip {
    position: relative;
    z-index: 5;
    margin-top: -70px;
    padding-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.stat-item {
    padding: 32px 20px;
    text-align: center;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-item:first-child {
    border-left: none;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step-3);
    color: var(--navy-950);
    font-weight: 600;
}

.stat-item span {
    color: var(--ink-500);
    font-size: 0.88rem;
}

@media (max-width: 767px) {
    .stats-strip {
        margin-top: -40px;
    }

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

    .stat-item:nth-child(3) {
        border-left: none;
    }

    .stat-item {
        padding: 24px 14px;
    }
}

/* ---------- Tabs (stakeholders) ---------- */
.tabs-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.tabs-nav {
    background: var(--surface-alt);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    padding: 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
}

.tab-btn .tab-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tab-btn .tab-label {
    font-weight: 600;
    color: var(--navy-950);
    display: block;
    font-size: 0.98rem;
}

.tab-btn .tab-sub {
    color: var(--ink-500);
    font-size: 0.82rem;
}

.tab-btn.active {
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.tab-panels {
    padding: 44px;
    display: flex;
    align-items: center;
}

.tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.tab-panel.active {
    display: grid;
}

.tab-panel ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.tab-panel li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.tab-panel li i {
    color: var(--blue-600);
    margin-top: 4px;
}

.tab-visual {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: 28px;
}

@media (max-width: 900px) {
    .tabs-shell {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        flex-direction: column;
        text-align: center;
        min-width: 130px;
    }

    .tab-panel {
        grid-template-columns: 1fr;
    }

    .tab-panels {
        padding: 28px;
    }
}

/* ---------- Feature cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue-600);
    border-radius: var(--radius-md);
    padding: 34px 30px 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:nth-child(2) {
    border-top-color: var(--orange-500);
}

.feature-card:nth-child(3) {
    border-top-color: var(--purple-600);
}

.feature-card:nth-child(4) {
    border-top-color: var(--red-600);
}

.feature-card:nth-child(5) {
    border-top-color: var(--navy-800);
}

.feature-card:nth-child(6) {
    border-top-color: var(--blue-600);
}

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

.feature-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink-300);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px var(--surface-alt);
}

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    margin: 0;
    font-size: 0.94rem;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.bg-blue {
    background: var(--blue-600);
}

.bg-orange {
    background: var(--orange-500);
}

.bg-purple {
    background: var(--purple-600);
}

.bg-red {
    background: var(--red-600);
}

.bg-navy {
    background: var(--navy-800);
}

.text-blue {
    color: var(--blue-600);
}

.text-orange {
    color: var(--orange-500);
}

.text-purple {
    color: var(--purple-600);
}

.text-red {
    color: var(--red-600);
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
    position: relative;
}

.step-item {
    position: relative;
    padding-top: 8px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--blue-100);
    -webkit-text-stroke: 1.5px var(--blue-600);
    display: block;
    margin-bottom: 14px;
}

.step-item h4 {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---------- Ecosystem ---------- */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eco-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 26px;
    background: rgba(255, 255, 255, 0.04);
}

.eco-card .feature-icon {
    margin-bottom: 22px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.eco-card h4 {
    color: #fff;
}

.eco-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Closing CTA ---------- */
.cta-panel {
    background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
    border-radius: var(--radius-lg);
    padding: 64px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-panel h2 {
    color: #fff;
    max-width: 620px;
    margin: 0 auto 14px;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    margin: 0 auto 32px;
}

.cta-panel .hero-ctas {
    justify-content: center;
}

.cta-panel .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(170deg, var(--navy-950), var(--navy-800));
    color: #fff;
    padding: 76px 0;
}

.page-hero h1 {
    color: #fff;
    font-size: var(--step-4);
    max-width: 760px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    max-width: 620px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.68);
}

/* ---------- Alt rows (feature detail sections) ---------- */
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-row.reverse .detail-copy {
    order: 2;
}

.detail-row.reverse .detail-visual {
    order: 1;
}

.detail-copy .icon-chip {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.detail-list li {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    color: var(--ink-700);
}

.detail-list i {
    color: var(--blue-600);
    margin-top: 5px;
}

.detail-visual {
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.detail-row+.detail-row {
    margin-top: 96px;
}

@media (max-width: 900px) {

    .detail-row,
    .detail-row.reverse {
        grid-template-columns: 1fr;
    }

    .detail-row.reverse .detail-copy,
    .detail-row.reverse .detail-visual {
        order: initial;
    }

    .detail-row+.detail-row {
        margin-top: 56px;
    }
}

/* ---------- Comparison / feature table ---------- */
.feature-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}

.feature-table th,
.feature-table td {
    text-align: left;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.feature-table th {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--navy-950);
    background: var(--surface-alt);
}

.feature-table tr:last-child td {
    border-bottom: none;
}

.feature-table td {
    color: var(--ink-700);
    font-size: 0.94rem;
}

.feature-table td strong {
    color: var(--navy-950);
    display: block;
    margin-bottom: 2px;
}

/* ---------- Security page badges ---------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.security-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    background: var(--surface);
}

.security-card .feature-icon {
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ Accordion ---------- */
.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 22px 4px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy-950);
    cursor: pointer;
    text-align: left;
}

.accordion-trigger i {
    transition: transform 0.25s ease;
    color: var(--blue-600);
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-item.open .accordion-trigger i {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-panel-inner {
    padding: 0 4px 22px;
    color: var(--ink-700);
}

/* ---------- Forms ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-soft);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-950);
    margin-bottom: 8px;
}

.form-group .req {
    color: var(--red-600);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--ink-900);
    background: var(--surface-alt);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-600);
    background: #fff;
    box-shadow: 0 0 0 4px var(--blue-100);
}

.form-control.is-invalid {
    border-color: var(--red-600);
    background: var(--red-100);
}

.error-text {
    color: var(--red-600);
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .error-text {
    display: block;
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.expect-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expect-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.expect-list li:last-child {
    border-bottom: none;
}

.expect-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--orange-500);
    flex-shrink: 0;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

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

.form-success i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.68);
    padding: 72px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 56px;
}

.footer-grid h5 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer-social a:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Misc ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.chip {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--ink-700);
    border: 1px solid var(--border);
}

/* ============================================================
   REVAMP ADDITIONS — inspired by a review of Orbit Living,
   MyGate, and ADDA (see internal notes). Original copy/markup.
   ============================================================ */

/* ---------- Hero live-activity toasts ---------- */
.live-toast {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--navy-950);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    animation: toastCycle 9s ease-in-out infinite;
    white-space: nowrap;
}

.live-toast i {
    color: #2ecc71;
    font-size: 0.85rem;
}

.live-toast--1 {
    top: -14px;
    right: 30px;
    animation-delay: 0s;
}

.live-toast--2 {
    top: 250px;
    right: -16px;
    animation-delay: 3s;
}

.live-toast--3 {
    bottom: 96px;
    left: -14px;
    animation-delay: 6s;
}

@keyframes toastCycle {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    6% {
        opacity: 1;
        transform: translateY(0);
    }

    24% {
        opacity: 1;
        transform: translateY(0);
    }

    32% {
        opacity: 0;
        transform: translateY(-6px);
    }

    100% {
        opacity: 0;
    }
}

#heroTicker {
    transition: opacity 0.2s ease;
}

@media (max-width: 991px) {
    .live-toast {
        display: none;
    }
}

/* ---------- Problem / Solution ---------- */
.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.ps-card {
    border-radius: var(--radius-lg);
    padding: 36px;
}

.ps-card--old {
    background: var(--surface-alt);
    border: 1px solid var(--border);
}

.ps-card--new {
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.ps-card--new h3 {
    color: #fff;
}

.ps-card h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
    margin-bottom: 18px;
}

.ps-card--new h5 {
    color: rgba(255, 255, 255, 0.55);
}

.ps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.96rem;
}

.ps-card--old .ps-list li {
    color: var(--ink-700);
}

.ps-card--new .ps-list li {
    color: rgba(255, 255, 255, 0.85);
}

.ps-list i.fa-circle-xmark {
    color: var(--red-600);
    margin-top: 4px;
    flex-shrink: 0;
}

.ps-list i.fa-circle-check {
    color: #2ecc71;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .ps-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Comparison table ---------- */
.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: #fff;
}

.compare-table th {
    font-family: var(--font-display);
    font-size: 0.98rem;
    padding: 20px 24px;
    text-align: left;
}

.compare-table thead th:first-child {
    background: var(--surface-alt);
    color: var(--navy-950);
}

.compare-table thead th.col-aptivo {
    background: var(--navy-950);
    color: #fff;
}

.compare-table thead th.col-others {
    background: var(--surface-alt);
    color: var(--ink-700);
}

.compare-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    vertical-align: top;
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--navy-950);
    width: 26%;
}

.compare-table td.col-aptivo {
    background: var(--blue-100);
    color: var(--navy-950);
}

.compare-table td.col-others {
    color: var(--ink-500);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table td i.fa-circle-check {
    color: var(--blue-600);
    margin-right: 8px;
}

.compare-table td i.fa-circle-xmark {
    color: var(--ink-300);
    margin-right: 8px;
}

/* ---------- Privacy / ad-free section ---------- */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.privacy-card {
    text-align: center;
    padding: 8px;
}

.privacy-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 1.6rem;
}

@media (max-width: 900px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card i.fa-quote-left {
    color: var(--blue-100);
    font-size: 2rem;
    margin-bottom: 18px;
}

.testimonial-quote {
    font-size: 1.15rem;
    color: var(--navy-950);
    font-family: var(--font-display);
    line-height: 1.5;
    margin-bottom: 24px;
}

.testimonial-person strong {
    display: block;
    color: var(--navy-950);
}

.testimonial-person span {
    color: var(--ink-500);
    font-size: 0.88rem;
}

#testimonialCarousel .carousel-indicators {
    position: static;
    margin-top: 28px;
}

#testimonialCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--ink-300);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--blue-600);
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: -10px;
}

#testimonialCarousel .carousel-control-next {
    right: -10px;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    filter: invert(0.2);
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 767px) {

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }
}

/* ---------- WhatsApp floating action button ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    color: #fff;
}

@media (max-width: 560px) {
    .whatsapp-fab {
        bottom: 90px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        right: 18px;
    }
}

/* ---------- Announcement bar ---------- */
.announce-bar {
    background: linear-gradient(90deg, var(--blue-600), var(--purple-600));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: center;
    padding: 10px 44px 10px 16px;
    position: relative;
}

.announce-bar i {
    margin-right: 6px;
}

.announce-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.announce-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}

.announce-close:hover {
    color: #fff;
}

.announce-bar.hide {
    display: none;
}

/* ---------- Trust marquee (cities) ---------- */
.marquee-section {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.marquee-strip {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 52px;
    width: max-content;
    animation: marqueeScroll 26s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-700);
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.marquee-item i {
    color: var(--blue-600);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Closing CTA blobs ---------- */
.cta-panel::before,
.cta-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.cta-panel::before {
    width: 260px;
    height: 260px;
    background: #fff;
    opacity: 0.14;
    top: -100px;
    right: -60px;
}

.cta-panel::after {
    width: 220px;
    height: 220px;
    background: var(--orange-500);
    opacity: 0.3;
    bottom: -90px;
    left: -50px;
}

.cta-panel .eyebrow,
.cta-panel h2,
.cta-panel p,
.cta-panel .hero-ctas {
    position: relative;
    z-index: 1;
}

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(16, 26, 44, 0.14);
    padding: 10px 14px;
    gap: 10px;
}

.mobile-cta-bar a {
    flex: 1;
}

@media (max-width: 767px) {
    .mobile-cta-bar {
        display: flex;
    }

    body {
        padding-bottom: 72px;
    }
}