/* --- Global Variables & Resets --- */
:root {
    --brand-pink: #d94d88;
    --brand-purple: #403363;
    --gradient-main: linear-gradient(135deg, #d94d88 0%, #403363 100%);
    --text-dark: #282436;
    --text-gray: #757085;
    --bg-light: #fbfafc;
    --bg-white: #ffffff;
    --divider: #eeecf5;
    --btn-dark: #403363;
    
    --shadow-card: 0 8px 24px rgba(64, 51, 99, 0.05);
    --shadow-hover: 0 12px 32px rgba(64, 51, 99, 0.1);
    --radius-pill: 999px;
    --radius-card: 16px;
    --radius-sm: 8px;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    background: var(--bg-white);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

body {
    padding-top: 64px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo .brand-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.logo span { color: var(--brand-pink); font-size: 14px; margin-left: 2px; }

.nav-links {
    display: flex;
    gap: 36px;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 15px;
}

.nav-links a:hover { color: var(--brand-pink); }
.nav-links a.active {
    color: var(--brand-pink);
    font-weight: 700;
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--brand-pink);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.action-item:hover { color: var(--brand-pink); }

/* --- Language Switcher Dropdown --- */
.lang-switcher {
    position: relative;
}
.lang-caret {
    transition: transform 0.2s ease;
}
.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(64, 51, 99, 0.14), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 152px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
    border: 1px solid var(--divider);
}
.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid var(--divider);
}
.lang-dropdown-item:last-child {
    border-bottom: none;
}
.lang-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--brand-pink);
}
.lang-dropdown-item.active {
    color: var(--brand-pink);
    font-weight: 600;
    background: rgba(217, 77, 136, 0.05);
}
.lang-flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-outline {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient-main);
    padding: 80px 0 60px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.hero-plat-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.hero-plat-tag i { font-size: 15px; }
.hero-plat-tag:hover {
    background: var(--btn-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64,51,99,0.22);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.css-phone {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.css-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.css-phone-screen {
    background: #f4f5f9;
    width: 100%;
    height: 100%;
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screen-header { font-weight: 700; color: #1b163e; font-size: 18px; }

.screen-stats { display: flex; gap: 10px; }
.stat-box { background: var(--bg-white); padding: 12px; border-radius: 12px; flex: 1; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.stat-box h4 { font-size: 20px; font-weight: 700; color: #1b163e; line-height: 1; margin-bottom: 4px; }
.stat-box p { font-size: 10px; color: #888; }

.screen-card-dark {
    background: var(--btn-dark);
    color: white;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.screen-card-dark .badge { background: #00e0ff; color: #000; font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: bold; }

.screen-list { background: var(--bg-white); border-radius: 16px; flex: 1; padding: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.screen-list-title { font-size: 12px; font-weight: 600; color: #888; margin-bottom: 10px; }
.screen-list-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.screen-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; justify-content:center; align-items:center; color: white; font-size: 14px; }

/* --- Hero Devices Combo (Phone + PC) --- */
.hero-devices {
    position: relative;
    width: 560px;
    height: 368px;
    flex-shrink: 0;
}

/* PC/Laptop: occupies left portion, no tilt */
.css-pc {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    filter:
        drop-shadow(0 22px 55px rgba(0,0,0,0.48))
        drop-shadow(0 6px 20px rgba(64,51,99,0.24));
}

/* Premium aluminum-style lid */
.css-pc-lid {
    width: 460px;
    background: linear-gradient(170deg, #1c1f32 0%, #101220 55%, #090c18 100%);
    border-radius: 16px 16px 5px 5px;
    padding: 14px 12px 8px;
    position: relative;
    border: 1.5px solid rgba(255,255,255,0.08);
    margin: 0 auto;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.09),
        inset 0 -1px 0 rgba(0,0,0,0.45),
        0 0 0 1px rgba(0,0,0,0.5);
}

/* Subtle edge highlight on lid top */
.css-pc-lid::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.18) 60%, transparent);
    border-radius: 1px;
}

/* Realistic camera dot */
.css-pc-camera-dot {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle at 38% 32%, #45436a, #16152a);
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
}

/* Screen bezel with depth */
.css-pc-display {
    background: #f4f5f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    position: relative;
    height: 286px;
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.18),
        inset 0 2px 10px rgba(0,0,0,0.14);
}

/* Screen glare effect */
.css-pc-display::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 50;
}

/* Hinge-area chin */
.css-pc-chin {
    width: 460px;
    height: 11px;
    background: linear-gradient(180deg, #12152a 0%, #0c0f1e 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0 0 3px 3px;
    margin: 0 auto;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5);
}

/* Keyboard base with subtle gradient */
.css-pc-base {
    width: 490px;
    height: 24px;
    background: linear-gradient(180deg, #0d1022 0%, #080a16 100%);
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1.5px solid rgba(255,255,255,0.09);
    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Premium glass-look trackpad */
.css-pc-trackpad {
    width: 60px;
    height: 10px;
    background: linear-gradient(155deg, #151828 0%, #0b0e1c 100%);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,255,255,0.03);
    opacity: 0.8;
}

/* Tapered bottom edge */
.css-pc-foot {
    width: 510px;
    height: 5px;
    background: linear-gradient(180deg, #07091a 0%, #030409 100%);
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* PC Screen: Sidebar with gradient depth */
.pc-sidebar {
    width: 50px;
    background: linear-gradient(180deg, #201966 0%, #1b163e 40%, #120f2c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 4px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.pc-sb-logo {
    color: var(--brand-pink);
    font-size: 18px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 6px rgba(217,77,136,0.5));
}

.pc-sb-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    align-items: center;
}

.pc-sb-item {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    cursor: default;
}

.pc-sb-item.active {
    background: linear-gradient(135deg, rgba(217,77,136,0.28) 0%, rgba(217,77,136,0.12) 100%);
    color: var(--brand-pink);
    box-shadow: 0 0 0 1px rgba(217,77,136,0.22), 0 2px 10px rgba(217,77,136,0.18);
}

/* PC Screen: Main Content */
.pc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    gap: 11px;
    overflow: hidden;
}

.pc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-topbar-title {
    font-weight: 700;
    font-size: 14px;
    color: #1b163e;
}

.pc-topbar-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #2ecc71;
    font-weight: 600;
}

.pc-status-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(46,204,113,0.75), 0 0 0 2px rgba(46,204,113,0.15);
}

.pc-metrics {
    display: flex;
    gap: 9px;
}

/* Refined metric cards */
.pc-metric {
    flex: 1;
    background: linear-gradient(145deg, #ffffff 0%, #f8f7fc 100%);
    border-radius: 9px;
    padding: 9px 10px 7px;
    border: 1px solid rgba(64,51,99,0.07);
    box-shadow: 0 2px 8px rgba(64,51,99,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.pc-metric-lbl {
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
}

.pc-metric-lbl i { font-size: 9px; margin-right: 3px; }

.pc-metric-val {
    font-size: 16px;
    font-weight: 700;
    color: #1b163e;
    line-height: 1;
}

.pc-metric-val em {
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
}

/* Refined proxy list card */
.pc-proxies {
    background: linear-gradient(145deg, #ffffff 0%, #f8f7fc 100%);
    border-radius: 9px;
    padding: 11px 12px 8px;
    flex: 1;
    border: 1px solid rgba(64,51,99,0.07);
    box-shadow: 0 2px 8px rgba(64,51,99,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
}

.pc-proxies-title {
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-proxy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(64,51,99,0.06);
}

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

.pc-proxy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 5px currentColor;
}

.pc-proxy-name {
    font-size: 12px;
    font-weight: 600;
    color: #1b163e;
    flex: 1;
}

.pc-proxy-ms {
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}

.pc-proxy-ms.fast { color: #2ecc71; }

/* Phone: same deep-navy frame as the PC lid */
.hero-devices .css-phone {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 174px;
    height: 348px;
    border-radius: 30px;
    /* screen area stays light; frame uses the exact same gradient as .css-pc-lid */
    background:
        #f4f5f9 padding-box,
        linear-gradient(170deg, #1c1f32 0%, #101220 55%, #090c18 100%) border-box;
    border: 9px solid transparent;
    transform: none;
    z-index: 2;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 22px 55px rgba(0,0,0,0.48),
        0 6px 20px rgba(64,51,99,0.24);
}

/* Dynamic Island — pill-shaped notch */
.hero-devices .css-phone-notch {
    width: 58px;
    height: 18px;
    top: 11px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 60%, #12101e, #06060d);
    border: none;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.07),
        inset 0 1px 3px rgba(0,0,0,0.8);
}

.hero-devices .css-phone-screen {
    padding: 36px 12px 18px;
    gap: 9px;
    position: relative;
}

/* Home indicator bar */
.hero-devices .css-phone-screen::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 4px;
    background: rgba(27,22,62,0.25);
    border-radius: 2px;
}

.hero-devices .screen-header { font-size: 11px; }

.hero-devices .screen-stats { gap: 7px; }

.hero-devices .stat-box {
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f4fb 100%);
    border: 1px solid rgba(64,51,99,0.06);
    box-shadow: 0 2px 6px rgba(64,51,99,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}

.hero-devices .stat-box h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.hero-devices .stat-box p { font-size: 8px; }

.hero-devices .screen-card-dark {
    padding: 10px 11px;
    border-radius: 13px;
    background: linear-gradient(135deg, #4a3878 0%, #2e2257 60%, #1b163e 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 14px rgba(64,51,99,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-devices .screen-card-dark .badge {
    font-size: 9px;
    padding: 2px 7px;
    background: linear-gradient(135deg, #00eeff, #00c4ff);
    box-shadow: 0 2px 8px rgba(0,200,255,0.35);
    color: #000;
}

.hero-devices .screen-list {
    padding: 10px;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f4fb 100%);
    border: 1px solid rgba(64,51,99,0.06);
    box-shadow: 0 2px 8px rgba(64,51,99,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}

.hero-devices .screen-list-title {
    font-size: 9px;
    margin-bottom: 6px;
}

.hero-devices .screen-list-item {
    gap: 7px;
    margin-bottom: 7px;
    padding-bottom: 7px;
}

.hero-devices .screen-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── Ambient glow behind the entire device group ── */
.hero-devices::before {
    content: '';
    position: absolute;
    inset: -50px -60px -50px -80px;
    background:
        radial-gradient(ellipse at 30% 55%, rgba(217,77,136,0.18) 0%, transparent 52%),
        radial-gradient(ellipse at 72% 48%, rgba(64,51,99,0.22) 0%, transparent 48%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}


/* ── Phone wrapper — enables side hardware buttons ── */
.phone-wrap {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 174px;
    height: 348px;
    z-index: 2;
}

/* Volume buttons (left side) */
.phone-wrap::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 72px;
    width: 3px;
    height: 44px;
    background:
        linear-gradient(170deg, #252838, #0c0d18) 0 0 / 3px 18px no-repeat,
        linear-gradient(170deg, #252838, #0c0d18) 0 24px / 3px 18px no-repeat;
    border-radius: 2px 0 0 2px;
}

/* Power button (right side) */
.phone-wrap::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 90px;
    width: 3px;
    height: 28px;
    background: linear-gradient(170deg, #252838, #0c0d18);
    border-radius: 0 2px 2px 0;
}

/* ── macOS traffic-light dots ── */
.pc-traffic-lights {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pc-tl {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pc-tl-r { background: #ff5f57; box-shadow: 0 0 5px rgba(255,95,87,0.55); }
.pc-tl-y { background: #febc2e; box-shadow: 0 0 5px rgba(254,188,46,0.50); }
.pc-tl-g { background: #28c840; box-shadow: 0 0 5px rgba(40,200,64,0.55); }

/* Adjust topbar to hold traffic lights */
.pc-topbar {
    gap: 8px;
}

/* ── Pulsing animation ── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(46,204,113,0.75), 0 0 0 2px rgba(46,204,113,0.15); }
    50%       { box-shadow: 0 0 16px rgba(46,204,113,0.95), 0 0 0 5px rgba(46,204,113,0.1); }
}

.pc-status-dot { animation: pulse-glow 2.2s ease-in-out infinite; }

/* ── 3rd metric card fades behind phone naturally — accent style ── */
.pc-metric-accent {
    background: linear-gradient(135deg, rgba(217,77,136,0.10) 0%, rgba(64,51,99,0.08) 100%);
    border-color: rgba(217,77,136,0.14);
}

.pc-metric-accent .pc-metric-val { color: var(--brand-pink); }

/* ── Phone header row with avatar ── */
.phone-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phone-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(217,77,136,0.35);
}

/* ── Phone connected status card ── */
.sc-conn-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-conn-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    opacity: 0.75;
    font-weight: 500;
}

.sc-conn-dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse-glow 2.2s ease-in-out infinite;
}

.sc-conn-server {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.sc-conn-ms {
    font-size: 11px;
    font-weight: 700;
    color: #2ecc71;
    background: rgba(46,204,113,0.14);
    padding: 4px 9px;
    border-radius: 10px;
    border: 1px solid rgba(46,204,113,0.22);
    white-space: nowrap;
    align-self: center;
}

/* Override hero-devices phone position to target phone-wrap instead */
.hero-devices .css-phone {
    position: static;
    width: 100%;
    height: 100%;
    bottom: auto;
    right: auto;
}

/* --- Features (3 Columns) --- */
.features {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--divider);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--divider);
}

.feature-icon-wrapper {
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 32px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Platforms Section --- */
.platforms {
    background: var(--bg-light);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.platform-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #f0ecf9;
}

.platform-info { display: flex; align-items: center; gap: 15px; }
.p-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; }

.bg-win { background: #00a4ef; }
.bg-mac { background: #000000; }
.bg-and { background: #3ddc84; }
.bg-ios { background: #555555; }
.bg-lin { background: #f5a90f; }
.bg-rou { background: #6c5ce7; }
.bg-mer { background: #e84393; }
.bg-doc { background: #00a8ff; }

.platform-info span { font-weight: 700; font-size: 16px; color: var(--text-dark); }
.platform-card i.fa-circle-chevron-right { color: var(--btn-dark); font-size: 24px; }

/* Global Plan Banner */
.global-banner {
    background: #6c5e9b;
    border-radius: var(--radius-card);
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.global-banner::after {
    content: '\f0ac';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    color: rgba(255,255,255,0.08);
    pointer-events: none;
}

.global-banner-content { z-index: 2; position: relative; }
.global-banner-content h3 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.global-banner-content p { opacity: 0.9; font-size: 15px; }

.btn-banner {
    background: var(--btn-dark);
    color: var(--bg-white);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    z-index: 2;
}
.btn-banner:hover { background: #1b1043; }

/* --- Trust Stats --- */
.stats {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--divider);
}

.stats-container { display: flex; justify-content: space-between; align-items: center; }
.stat-block { display: flex; align-items: center; gap: 20px; flex: 1; }
.stat-block:not(:last-child) { border-right: 1px solid var(--divider); margin-right: 40px; }
.stat-val { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.stat-text { color: var(--text-gray); font-size: 14px; line-height: 1.4; max-width: 140px; }

.stars-green { color: #00b67a; font-size: 18px; display: block; margin-top: 4px;}

/* --- NEW: Feature Spotlight (Image + Text) --- */
.spotlight {
    padding: 100px 0;
    background: var(--bg-white);
}

.spotlight-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.spotlight-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    aspect-ratio: 4 / 3;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(217, 77, 136, 0.2), transparent);
    pointer-events: none;
}

.spotlight-content { flex: 1; }
.spotlight-content h2 { font-size: 38px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.spotlight-content p { color: var(--text-gray); font-size: 16px; margin-bottom: 30px; line-height: 1.6; }

.spotlight-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.spotlight-list i {
    color: var(--brand-pink);
    font-size: 20px;
    margin-top: 4px;
}
.spotlight-list h4 { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.spotlight-list p { font-size: 14px; margin-bottom: 0; }

/* --- How it works --- */
.how-it-works {
    background: var(--gradient-main);
    padding: 100px 0;
    color: var(--bg-white);
}

.how-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.how-text h2 { font-size: 38px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.how-text > p { font-size: 16px; opacity: 0.9; margin-bottom: 40px; }

.steps-wrapper { display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { width: 40px; height: 40px; background: var(--btn-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.step-info h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.step-info p { font-size: 14px; opacity: 0.8; max-width: 350px; }

.how-visual {
    flex: 1;
    position: relative;
}
.how-visual img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 6px solid rgba(255,255,255,0.1);
}

/* --- NEW: Community Reviews (Trustpilot Style) --- */
.reviews {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.reviews-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.reviews-header p { color: var(--text-gray); margin-bottom: 40px; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.review-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--divider);
}

.review-card .stars { color: #00b67a; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.review-card p { font-size: 14px; color: var(--text-gray); margin-bottom: 20px; line-height: 1.5; }
.review-author { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--divider); padding-top: 15px;}
.author-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.author-info span { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.author-info span i { color: #00b67a; }

/* --- NEW: FAQ Section --- */
.faq {
    padding: 80px 0;
    background: var(--bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.faq-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.faq-item h4 i { color: var(--brand-pink); margin-top: 4px; }
.faq-item p { color: var(--text-gray); font-size: 15px; margin-left: 28px; line-height: 1.6; }


/* --- Download App Banner --- */
.app-banner-section { background: var(--bg-light); padding: 60px 0; }
.app-banner { background: var(--btn-dark); border-radius: 24px; padding: 60px 80px; display: flex; justify-content: space-between; align-items: center; color: white; }
.app-banner h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.app-banner p { font-size: 16px; opacity: 0.8; margin-bottom: 30px; max-width: 400px; }

.store-badges { display: flex; gap: 15px; }
.store-badge { display: flex; align-items: center; gap: 10px; background: black; border-radius: 8px; padding: 8px 16px; border: 1px solid #333; }
.store-badge i { font-size: 24px; }
.store-badge span { font-size: 10px; display: block; line-height: 1.2; }
.store-badge strong { font-size: 16px; font-weight: 600; }

/* --- Footer --- */
.footer { background: #2f274a; color: var(--bg-white); padding: 60px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 50px; }

.socials { display: flex; gap: 15px; }
.socials a { background: var(--bg-white); color: #2f274a; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #a09caf; font-size: 14px; }
.footer-col a:hover { color: var(--bg-white); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #a09caf; font-size: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }

/* --- Mobile hamburger button --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px 8px;
}

/* Mobile dropdown nav */
@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Scenarios (Use Cases) --- */
.scenarios { padding: 100px 0; background: var(--bg-light); }
.scenarios-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(217,77,136,0.1), rgba(64,51,99,0.07));
    color: var(--brand-pink); font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.scenarios > .container > h2 { font-size: 40px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.scenarios-intro { color: var(--text-gray); font-size: 16px; margin-bottom: 50px; max-width: 580px; line-height: 1.7; }
.scenarios-mosaic {
    display: grid; grid-template-columns: 56fr 44fr; gap: 16px; height: 560px;
}
.scenarios-right { display: flex; flex-direction: column; gap: 16px; }
.scenario-tile { position: relative; border-radius: 24px; overflow: hidden; cursor: pointer; display: block; }
.scenario-tile.main { height: 100%; }
.scenarios-right .scenario-tile { flex: 1; }
.scenario-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); display: block; }
.scenario-tile:hover img { transform: scale(1.06); }
.scenario-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,2,18,0.9) 0%, rgba(6,2,18,0.28) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: white;
}
.scenario-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); color: white;
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
    margin-bottom: 12px; width: fit-content;
}
.scenario-overlay h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.scenario-tile.main .scenario-overlay h3 { font-size: 28px; }
.scenario-overlay p { font-size: 13px; opacity: 0.76; line-height: 1.5; }
.scenario-tile.main .scenario-overlay p { font-size: 15px; max-width: 380px; }

/* --- Protocols Wall --- */
.protocols-wall {
    padding: 100px 0; background: #06020e; color: white; position: relative; overflow: hidden;
}
.protocols-wall::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, rgba(217,77,136,0.14) 0%, rgba(64,51,99,0.1) 45%, transparent 70%);
    pointer-events: none;
}
.proto-eyebrow {
    display: inline-block;
    background: rgba(217,77,136,0.16); border: 1px solid rgba(217,77,136,0.32); color: #f09bc5;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.protocols-wall-top { text-align: center; margin-bottom: 60px; position: relative; z-index: 2; }
.protocols-wall-top h2 { font-size: 40px; font-weight: 700; margin-bottom: 14px; }
.protocols-wall-top p { color: rgba(255,255,255,0.52); font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.7; }
.proto-bento {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px;
    position: relative; z-index: 2;
}
.proto-cell {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 22px 24px; transition: all 0.3s ease; overflow: hidden;
}
.proto-cell:hover {
    background: rgba(255,255,255,0.07); border-color: rgba(217,77,136,0.4);
    transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}
.pc4 { grid-column: span 4; } .pc3 { grid-column: span 3; } .pc5 { grid-column: span 5; }
.pc6 { grid-column: span 6; } .pc7 { grid-column: span 7; }
.proto-cell.hl { background: linear-gradient(135deg, rgba(217,77,136,0.18), rgba(64,51,99,0.28)); border-color: rgba(217,77,136,0.28); }
.proto-icon-wrap { font-size: 22px; margin-bottom: 12px; color: rgba(255,255,255,0.35); }
.proto-cell.hl .proto-icon-wrap { color: #f09bc5; }
.proto-n { font-size: 20px; font-weight: 800; color: white; margin-bottom: 6px; letter-spacing: -0.3px; }
.pc6 .proto-n, .pc7 .proto-n { font-size: 26px; }
.proto-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-bottom: 8px; }
.pt-pop { background: rgba(217,77,136,0.28); color: #f09bc5; }
.pt-new { background: rgba(0,210,120,0.2); color: #00d278; }
.pt-stb { background: rgba(255,190,0,0.2); color: #ffbe00; }
.proto-d { font-size: 12px; color: rgba(255,255,255,0.43); line-height: 1.55; }
.pc6 .proto-d, .pc7 .proto-d { font-size: 13px; }
.proto-footer { text-align: center; margin-top: 48px; position: relative; z-index: 2; }
.proto-footer p { color: rgba(255,255,255,0.42); font-size: 14px; margin-bottom: 20px; }
.btn-github-outline {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9); padding: 12px 28px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 14px; transition: all 0.3s;
}
.btn-github-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(217,77,136,0.5); color: white; }

/* --- Why Clash (Split Comparison) --- */
.why-clash { padding: 100px 0; background: var(--bg-white); }
.why-split {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 28px; overflow: hidden;
    box-shadow: 0 32px 64px rgba(64,51,99,0.1);
}
.why-panel { padding: 56px 48px; }
.why-old { background: linear-gradient(145deg, #ddd5f0 0%, #cec3e8 100%); }
.why-new { background: var(--btn-dark); color: white; }
.why-panel-badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.why-old .why-panel-badge { background: rgba(64,51,99,0.12); color: #8b7aaa; }
.why-new .why-panel-badge { background: rgba(217,77,136,0.25); color: #f09bc5; }
.why-panel h3 { font-size: 24px; font-weight: 700; margin-bottom: 36px; line-height: 1.35; }
.why-old h3 { color: #8b7aaa; }
.why-new h3 { color: white; }
.why-items-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0; margin-top: 1px;
}
.why-old .why-item-icon { background: rgba(64,51,99,0.1); color: #9d8fc0; }
.why-new .why-item-icon { background: rgba(217,77,136,0.2); color: #f09bc5; }
.why-item-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.why-old h4 { color: #9d8fc0; text-decoration: line-through; text-decoration-color: rgba(157,143,192,0.5); }
.why-new h4 { color: white; }
.why-item-body p { font-size: 13px; line-height: 1.55; }
.why-old p { color: #a899c4; }
.why-new p { color: rgba(255,255,255,0.55); }

/* --- Blog Preview (Magazine layout) --- */
.blog-preview { padding: 100px 0; background: var(--bg-light); }
.blog-preview-head {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px;
}
.blog-preview-head h2 { font-size: 36px; font-weight: 700; line-height: 1.25; }
.blog-preview-head p { color: var(--text-gray); font-size: 16px; margin-top: 8px; }
.blog-view-all {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand-pink); font-weight: 600; font-size: 14px; white-space: nowrap; margin-left: 20px;
}
.blog-view-all:hover { opacity: 0.8; }
.blog-magazine { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.blog-hero-link {
    position: relative; border-radius: 24px; overflow: hidden;
    height: 420px; cursor: pointer; display: block;
}
.blog-hero-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.blog-hero-link:hover img { transform: scale(1.04); }
.blog-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,2,18,0.92) 0%, rgba(6,2,18,0.4) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; color: white;
}
.blog-cat-pill {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; width: fit-content;
}
.blog-hero-overlay .blog-cat-pill { background: rgba(217,77,136,0.4); color: rgba(255,255,255,0.95); }
.blog-hero-overlay h3 { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.blog-hero-overlay .blog-post-meta { font-size: 12px; color: rgba(255,255,255,0.5); }
.blog-side-list { display: flex; flex-direction: column; gap: 16px; }
.blog-side-card {
    display: flex; background: white; border-radius: 18px; overflow: hidden;
    cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-card);
    text-decoration: none; color: inherit;
}
.blog-side-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.blog-side-thumb { width: 110px; min-height: 110px; flex-shrink: 0; overflow: hidden; }
.blog-side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.blog-side-card:hover .blog-side-thumb img { transform: scale(1.08); }
.blog-side-body { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.blog-side-body .blog-cat-pill { background: rgba(217,77,136,0.1); color: var(--brand-pink); }
.blog-side-body h4 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text-dark); margin-bottom: 6px; }
.blog-side-body .blog-post-meta { font-size: 11px; color: var(--text-gray); }

/* Responsive */
@media (max-width: 1024px) {
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-container, .spotlight-container { flex-direction: column; text-align: center; }
    .hero-platforms { justify-content: center; }
    .spotlight-list li { text-align: left; }
    .how-container { flex-direction: column-reverse; }
    .stats-container { flex-wrap: wrap; gap: 40px; }
    .stat-block:not(:last-child) { border-right: none; margin-right: 0; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    /* New sections 1024px */
    .scenarios-mosaic { grid-template-columns: 1fr; height: auto; }
    .scenario-tile.main { height: 380px; }
    .scenarios-right { flex-direction: row; height: 220px; }
    .proto-bento { grid-template-columns: repeat(6, 1fr); }
    .pc4 { grid-column: span 3; } .pc3 { grid-column: span 3; }
    .pc5 { grid-column: span 3; } .pc6 { grid-column: span 6; } .pc7 { grid-column: span 6; }
    .why-split { grid-template-columns: 1fr; }
    .blog-magazine { grid-template-columns: 1fr; }
    .blog-hero-link { height: 320px; }
    /* Hide PC mockup on narrow screens, keep phone only */
    .css-pc { display: none; }
    .hero-visual { justify-content: center; }
    /* Collapse hero-devices to phone-only size and center the phone */
    .hero-devices { width: 220px; height: 380px; }
    .phone-wrap { right: auto; left: 50%; transform: translateX(-50%); }
}

/* --- Global Search Overlay --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 36, 54, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-modal {
    background: var(--bg-white);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.2s ease;
    margin: 0 16px;
}
.search-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--divider);
    flex-shrink: 0;
}
.search-input-wrap .search-icon {
    color: var(--text-gray);
    font-size: 18px;
    flex-shrink: 0;
}
.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}
.search-input-wrap input::placeholder { color: #b0abc0; }
.search-close-btn {
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: var(--text-gray);
    padding: 3px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    transition: background 0.15s;
    line-height: 1.6;
}
.search-close-btn:hover { background: rgba(0, 0, 0, 0.12); }
.search-results {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}
.search-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
    padding: 10px 20px 6px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover,
.search-result-item.focused {
    background: var(--bg-light);
}
.search-result-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(217,77,136,0.12), rgba(64,51,99,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-pink);
    font-size: 15px;
    flex-shrink: 0;
}
.search-result-body {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-title mark {
    background: rgba(217, 77, 136, 0.15);
    color: var(--brand-pink);
    border-radius: 2px;
    padding: 0 1px;
}
.search-result-desc {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-cat {
    font-size: 11px;
    color: var(--text-gray);
    background: var(--bg-light);
    border: 1px solid var(--divider);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.search-result-arrow {
    color: var(--text-gray);
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.12s;
}
.search-result-item:hover .search-result-arrow,
.search-result-item.focused .search-result-arrow { opacity: 1; }
.search-empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-gray);
}
.search-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    color: #d0cbd8;
    display: block;
}
.search-empty p { font-size: 14px; }
.search-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 20px;
    border-top: 1px solid var(--divider);
    font-size: 11px;
    color: var(--text-gray);
    flex-shrink: 0;
}
.search-footer-hint {
    display: flex;
    align-items: center;
    gap: 4px;
}
.search-footer kbd {
    background: var(--bg-light);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    color: var(--text-gray);
}
/* Keyboard shortcut hint on the search button */
#nav-search-btn .search-kbd-hint {
    font-size: 10px;
    background: var(--bg-light);
    border: 1px solid var(--divider);
    border-radius: 5px;
    padding: 1px 5px;
    color: var(--text-gray);
    font-weight: 400;
}
@media (max-width: 768px) {
    #nav-search-btn .search-kbd-hint { display: none; }
    .search-overlay { padding-top: 24px; }
    .search-footer { display: none; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    /* Compact nav-actions on mobile */
    .nav-actions { gap: 14px; }
    .nav-actions > .btn-outline { display: none; }
    .nav-search-label { display: none; }
    .hero-text h1 { font-size: 36px; letter-spacing: -0.5px; }
    .hero-text p { font-size: 16px; margin-bottom: 28px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 999;
    }
    .nav-links li a {
        display: block;
        padding: 12px 24px;
        font-size: 16px;
    }
    .nav-links a.active::after { display: none; }
    .nav-links a.active {
        border-left: 3px solid var(--brand-pink);
        padding-left: 21px;
    }
    nav.nav-open .nav-links {
        display: flex;
        animation: menuSlideDown 0.2s ease forwards;
    }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-item:not(:last-child)::after { display: none; }
    .global-banner, .app-banner { flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
    .footer-grid, .reviews-grid { grid-template-columns: 1fr; }
    .footer-top, .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    /* Stats section — reduce font at tablet width */
    .stat-val { font-size: 34px; letter-spacing: -0.5px; }
    .stat-text { font-size: 13px; }

    /* New sections 768px */
    .scenarios > .container > h2 { font-size: 28px; }
    .scenario-tile.main { height: 380px; }
    .scenarios-right { flex-direction: column; height: auto; }
    .scenarios-right .scenario-tile { height: 220px; flex: none; }
    .scenario-overlay { padding: 20px; }
    .scenario-tile.main .scenario-overlay h3 { font-size: 22px; }
    .protocols-wall-top h2 { font-size: 28px; }
    .proto-bento { grid-template-columns: repeat(4, 1fr); }
    .pc4 { grid-column: span 2; } .pc3 { grid-column: span 2; }
    .pc5 { grid-column: span 4; } .pc6 { grid-column: span 4; } .pc7 { grid-column: span 4; }
    .proto-n { font-size: 16px; } .pc6 .proto-n, .pc7 .proto-n { font-size: 20px; }
    .why-panel { padding: 36px 28px; }
    .why-panel h3 { font-size: 20px; margin-bottom: 28px; }
    .blog-preview-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .blog-preview-head h2 { font-size: 28px; }
    .blog-hero-link { height: 260px; }
}

@media (max-width: 480px) {
    /* Stats: 2-column grid — first block spans full width, next two share a row */
    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
        align-items: start;
    }
    .stat-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-right: none !important;
        margin-right: 0 !important;
        text-align: left;
        flex: none;
    }
    /* 4.9/5 block: span both columns, keep number+text side by side */
    .stat-block:first-child {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    .stat-val { font-size: 30px; }
    .stat-text { max-width: none; font-size: 13px; line-height: 1.5; }

    /* Extra compact header for small phones */
    .nav-lang-label { display: none; }
    .nav-actions { gap: 10px; }
    .hero-text h1 { font-size: 28px; letter-spacing: 0; }
    .hero-text p { font-size: 15px; }
    .hero-platforms { gap: 8px; }
    .hero-plat-tag { padding: 8px 14px; font-size: 13px; }
    /* Phone-only: keep phone centered but scale down slightly */
    .hero-devices { width: 180px; height: 336px; }
    .phone-wrap { width: 160px; height: 320px; }
    .hero { padding: 60px 0 40px; }
    .platforms-grid { grid-template-columns: repeat(1, 1fr); }
}
