/*======================================================
  MediLinkFilm — style.css
  Design tokens, layout, and component styles.
======================================================*/

/*=========================
    RESET
=========================*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0F172A;
    background: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
    background: rgba(15, 118, 110, 0.18);
}

/*=========================
    DESIGN TOKENS
=========================*/

:root {
    --primary: #0F766E;
    --primary-light: #14B8A6;
    --primary-dark: #0c5b54;
    --secondary: #0F172A;
    --accent: #F59E0B;

    --ink-1: #0F172A;
    --ink-2: #1E293B;
    --ink-3: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;

    --surface: #F8FAFC;
    --surface-2: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.10), 0 12px 24px rgba(15, 23, 42, 0.06);

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/*=========================
    LAYOUT
=========================*/

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

section {
    padding: 96px 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink-1);
    margin-bottom: 18px;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    margin-top: 4px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(20, 184, 166, 0.10);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*=========================
    BUTTONS
=========================*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-primary,
.btn.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-1);
    border-color: transparent;
    padding: 12px 8px;
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-secondary,
.btn.btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    box-shadow: none;
}

.btn-secondary:hover {
    color: var(--ink-1);
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(248, 250, 252, 0.8);
    transform: none;
}

.btn-white {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.btn-white:hover {
    background: var(--surface);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    transition: gap var(--transition);
    gap: 4px;
}

.link-arrow:hover {
    gap: 8px;
}

/*=========================
    HEADER
=========================*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header .container {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 36px;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--ink-3);
}

.nav a {
    position: relative;
    padding: 6px 0;
    transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-3);
    transition: color var(--transition);
}

.header-link:hover {
    color: var(--primary);
}

.header.header-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/*=========================
    HERO
=========================*/

.hero {
    padding: 128px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.10), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
        "copy visual"
        "actions visual"
        "foot visual";
    align-items: start;
    gap: 28px 64px;
}

.hero-copy {
    grid-area: copy;
}

.hero-actions {
    grid-area: actions;
    align-self: start;
}

.hero-foot {
    grid-area: foot;
}

.hero-right {
    grid-area: visual;
    align-self: center;
}

.hero h1 {
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.hero-meta {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink-3);
}

.hero-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
    flex-shrink: 0;
}

.offer-inline {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.06), rgba(20, 184, 166, 0.02));
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 14.5px;
    color: var(--ink-3);
    max-width: 520px;
}

.offer-inline strong {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-right: 6px;
}

/*=========================
    HERO PHONE MOCK
    Iframe renders at native mobile viewport (390×846) and is
    scaled down with transform so the demo looks like a real phone.
=========================*/

.hero-mock {
    position: relative;
    text-align: center;
}

.phone-mock {
    /* Native mobile viewport width (390) + 2 * side padding (10) */
    width: min(340px, 100%);
    margin: 0 auto;
    padding: 10px 10px 16px;
    background: #0F172A;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid #1E293B;
}

.phone-mock-lg {
    width: min(380px, 100%);
}

.phone-mock-notch {
    width: 110px;
    height: 22px;
    margin: 0 auto 10px;
    background: #020617;
    border-radius: 0 0 14px 14px;
}

.phone-mock-screen {
    /* Height derived from 9:19.5 aspect ratio of interior width */
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 9 / 19.5;
    position: relative;
}

.phone-mock-screen iframe {
    /* Force iframe to render at real mobile viewport (390 x 846).
       PhoneMock module in script.js applies a matching transform:scale()
       so the frame visually fits the phone shell while the iframe content
       renders as it would on an actual phone. */
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 846px;
    border: 0;
    display: block;
    background: #ffffff;
    transform-origin: top left;
    /* Fallback scale so the frame is usable even before JS runs.
       320px inner width / 390px iframe width ≈ 0.82. */
    transform: scale(0.82);
}

.phone-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px auto 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.phone-demo-link:hover {
    gap: 10px;
}

/*=========================
    TRUST BAND
=========================*/

.trust-band {
    padding: 28px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-band p {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 20px;
}

.trust-band-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 48px;
    color: var(--muted-2);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
}

.trust-band-row span {
    opacity: 0.72;
    transition: opacity var(--transition), color var(--transition);
}

.trust-band-row span:hover {
    opacity: 1;
    color: var(--primary);
}

/*=========================
    FLOOR BAND (scanner room)
=========================*/

.floor-band {
    padding: 96px 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.05), transparent 40%),
        #ffffff;
}

.floor-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.floor-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 11;
    background: var(--surface-2);
}

.floor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.floor-image:hover img {
    transform: scale(1.02);
}

.floor-image-caption {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.floor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22);
    animation: floorPulse 2s ease-in-out infinite;
}

@keyframes floorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.floor-content h2 {
    text-align: left;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    font-size: clamp(26px, 3vw, 34px);
}

.floor-content > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.floor-points {
    list-style: none;
    display: grid;
    gap: 16px;
    counter-reset: floorStep;
}

.floor-points li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.floor-step {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.10);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    margin-top: 2px;
}

.floor-points li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floor-points strong {
    color: var(--ink-1);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.005em;
}

.floor-points span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/*=========================
    FEATURE / PLATFORM
=========================*/

#platform {
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 6px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ink-3);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

/*=========================
    WORKFLOW
=========================*/

#workflow {
    background: var(--surface);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.workflow-grid::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 26px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent);
    z-index: 0;
}

.workflow-step {
    position: relative;
    z-index: 1;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.workflow-step:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow-md);
}

.workflow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

.workflow-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.workflow-step p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

/*=========================
    STATS
=========================*/

.stats-band {
    padding: 64px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number span {
    font-size: 0.72em;
    font-weight: 700;
    color: var(--primary-light);
    margin-left: 2px;
}

.stat-title {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/*=========================
    VIEWER
=========================*/

#viewer {
    background: #ffffff;
}

.viewer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.viewer-image {
    display: flex;
    justify-content: center;
}

.viewer-content .eyebrow {
    margin-bottom: 14px;
}

.viewer-content h2 {
    text-align: left;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.viewer-content > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.viewer-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.viewer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-3);
    font-size: 15px;
    font-weight: 500;
}

.viewer-list .check {
    width: 22px;
    height: 22px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/*=========================
    TEAMS BAND (radiologist workstation)
=========================*/

#teams,
.teams-band {
    background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
    padding: 96px 0;
}

.teams-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.teams-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.teams-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.teams-image:hover img {
    transform: scale(1.02);
}

.teams-content h2 {
    text-align: left;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    font-size: clamp(26px, 3vw, 34px);
}

.teams-content > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.teams-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.teams-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
}

.teams-item::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.teams-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-1);
    margin: 12px 0 6px;
    letter-spacing: -0.005em;
}

.teams-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.teams-item:hover {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/*=========================
    ROUTER
=========================*/

#router {
    background: var(--surface);
}

.router-showcase {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: start;
}

.router-showcase-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 11;
    background: var(--surface-2);
    position: sticky;
    top: 100px;
}

.router-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.router-showcase-content {
    display: grid;
    gap: 24px;
}

.router-live {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.4fr;
    gap: 32px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
}

.router-live-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.router-live-row span {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.router-live-row strong {
    font-size: 16px;
    color: var(--ink-1);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

#routerStatus {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#routerStatus::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
    animation: routerPulse 2s ease-in-out infinite;
}

@keyframes routerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.router-queue {
    display: flex;
    align-items: center;
    gap: 12px;
}

.router-queue-bar {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}

#queueBar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    transition: width 0.15s linear;
}

#queuePercent {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.router-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.router-showcase-content .router-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.router-showcase-content .router-card {
    padding: 22px 24px;
}

.router-showcase-content .router-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.router-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.router-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow-md);
}

.router-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 14px;
}

.router-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.router-card li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.router-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

/*=========================
    COMPARISON
=========================*/

#comparison {
    background: #ffffff;
}

.compare-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table thead {
    background: var(--surface);
}

.compare-table th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
}

.compare-table th.highlight {
    color: var(--primary);
}

.compare-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--ink-3);
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--ink-1);
    background: var(--surface);
}

.compare-table td.highlight {
    color: var(--ink-1);
    font-weight: 500;
    background: rgba(20, 184, 166, 0.035);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover td:not(:first-child) {
    background: rgba(20, 184, 166, 0.05);
}

/*=========================
    SIGNATURE FEATURES
=========================*/

.signatures {
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    padding: 96px 0;
}

.signatures .section-head p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.signatures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sig-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.sig-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow-lg);
}

.sig-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    align-self: flex-start;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.sig-icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.sig-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.sig-card > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.sig-list {
    list-style: none;
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px dashed var(--border);
}

.sig-list li {
    position: relative;
    padding-left: 20px;
    padding-top: 8px;
    font-size: 14px;
    color: var(--ink-3);
}

.sig-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

/*=========================
    SECURITY
=========================*/

#security {
    background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.security-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.security-item:hover {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow-md);
}

.security-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 8px;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-item h4::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.security-item p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/*=========================
    BUILDERS (people team)
=========================*/

#builders,
.builders-band {
    background: var(--surface);
    padding: 96px 0;
}

.builders-roster {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.builder {
    padding: 22px 0 8px;
    border-top: 1px solid var(--border);
}

.builder:nth-child(1),
.builder:nth-child(2) {
    border-top: none;
    padding-top: 0;
}

.builder-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-1);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 6px;
}

.builder-role {
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 8px;
}

.builder-place {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.builder-place::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: var(--primary-light);
    vertical-align: middle;
}

/*=========================
    PRICING
=========================*/

#pricing {
    background: var(--surface);
}

.price-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 44px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.4), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.price-card-head {
    margin-bottom: 28px;
}

.price-tag {
    display: inline-block;
    background: rgba(20, 184, 166, 0.10);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.price-card h3 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.price-card-head p {
    color: var(--muted);
    font-size: 15px;
}

.price-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 28px;
}

.price-card li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-3);
    font-size: 15px;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    color: var(--muted-2);
    font-size: 13px;
    margin-top: 16px;
}

/*=========================
    FAQ
=========================*/

#faq {
    background: #ffffff;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item.active {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color var(--transition);
    letter-spacing: -0.005em;
}

.faq-question::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.faq-item.active .faq-question::after {
    content: "−";
    background: var(--primary);
    color: #ffffff;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/*=========================
    CTA
=========================*/

.cta {
    background: linear-gradient(135deg, #0c5b54 0%, #0F766E 50%, #14B8A6 100%);
    text-align: center;
    color: #ffffff;
    padding: 88px 0;
}

.cta h2 {
    color: #ffffff;
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.cta p {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 17px;
    opacity: 0.9;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/*=========================
    FOOTER
=========================*/

.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 64px 0 24px;
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: #94A3B8;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 340px;
    font-size: 14px;
}

.footer-legal {
    color: #64748B !important;
    font-size: 13px !important;
    margin-top: 12px !important;
}

.footer-address {
    font-style: normal;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 16px;
    max-width: 340px;
}

.footer-address strong {
    display: block;
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-title {
    color: #F8FAFC;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #94A3B8;
    transition: color var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links-inline {
    display: flex;
    gap: 20px;
}

.footer-links-inline a {
    color: #94A3B8;
    transition: color var(--transition);
}

.footer-links-inline a:hover {
    color: var(--primary-light);
}

/*=========================
    FLOATING WHATSAPP
=========================*/

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 99;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp svg {
    width: 26px;
    height: 26px;
}

.whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/*=========================
    BACK TO TOP
=========================*/

#backTop {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink-2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition), color var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backTop svg {
    width: 18px;
    height: 18px;
}

#backTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backTop:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/*=========================
    NAV TOGGLE (mobile burger)
=========================*/

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: border-color var(--transition);
}

.nav-toggle:hover {
    border-color: var(--primary);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink-2);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/*=========================
    HERO BACKGROUND SHAPES
=========================*/

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.shape.one {
    width: 320px;
    height: 320px;
    background: rgba(20, 184, 166, 0.14);
    top: -80px;
    right: -60px;
}

.shape.two {
    width: 260px;
    height: 260px;
    background: rgba(245, 158, 11, 0.10);
    bottom: 20px;
    left: -80px;
}
