/*
 * Famelec Minimal SaaS visual layer.
 * Inspired by agent-memory.dev: dark minimal, warm copper accents, clean typography.
 */

:root {
    --fm-bg: #050505;
    --fm-bg-2: #0a0a0a;
    --fm-panel: rgba(18, 18, 18, 0.92);
    --fm-panel-soft: rgba(255, 255, 255, 0.035);
    --fm-panel-strong: rgba(255, 255, 255, 0.06);
    --fm-line: rgba(255, 255, 255, 0.08);
    --fm-line-strong: rgba(255, 255, 255, 0.14);
    --fm-line-hair: rgba(255, 255, 255, 0.05);
    --fm-grid-line: rgba(240, 185, 11, 0.06);
    --fm-grid-line-soft: rgba(240, 185, 11, 0.03);
    --fm-text: #e8e8e8;
    --fm-muted: #8a8a8a;
    --fm-soft: #c0c0c0;
    --fm-primary: #F0B90B;
    --fm-primary-strong: #D4A20A;
    --fm-cyan: #F0B90B;
    --fm-green: #22c55e;
    --fm-amber: #D4942A;
    --fm-radius: 12px;
    --fm-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] {
    --fm-bg: #faf8f6;
    --fm-bg-2: #f0ece7;
    --fm-panel: rgba(255, 255, 255, 0.88);
    --fm-panel-soft: rgba(30, 20, 10, 0.04);
    --fm-panel-strong: rgba(30, 20, 10, 0.07);
    --fm-line: rgba(30, 20, 10, 0.10);
    --fm-line-strong: rgba(30, 20, 10, 0.16);
    --fm-line-hair: rgba(30, 20, 10, 0.07);
    --fm-grid-line: rgba(240, 185, 11, 0.10);
    --fm-grid-line-soft: rgba(240, 185, 11, 0.05);
    --fm-text: #1a1a1a;
    --fm-muted: #666666;
    --fm-soft: #444444;
    --fm-shadow: 0 24px 70px rgba(30, 20, 10, 0.08);
    --bg-body: #faf8f6;
    --bg-deep: #f0ece7;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-strong: rgba(255, 255, 255, 0.95);
    --bg-soft: rgba(30, 20, 10, 0.04);
    --bg-soft-strong: rgba(30, 20, 10, 0.07);
    --text-primary: var(--fm-text);
    --text-secondary: var(--fm-soft);
    --text-muted: var(--fm-muted);
    --line: var(--fm-line);
    --line-strong: var(--fm-line-strong);
    --blue: #2563eb;
    --cyan: #0891b2;
    --green: #15803d;
    --violet: #6d28d9;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-slate-50,
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-gray-50,
html[data-theme="light"] .text-gray-100,
html[data-theme="light"] .text-gray-200,
html[data-theme="light"] .text-zinc-50,
html[data-theme="light"] .text-zinc-100,
html[data-theme="light"] .text-zinc-200,
html[data-theme="light"] .text-neutral-50,
html[data-theme="light"] .text-neutral-100,
html[data-theme="light"] .text-neutral-200 {
    color: var(--fm-text) !important;
}

html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-zinc-300,
html[data-theme="light"] .text-zinc-400,
html[data-theme="light"] .text-neutral-300,
html[data-theme="light"] .text-neutral-400 {
    color: var(--fm-soft) !important;
}

html[data-theme="light"] .text-slate-500,
html[data-theme="light"] .text-slate-600,
html[data-theme="light"] .text-gray-500,
html[data-theme="light"] .text-gray-600,
html[data-theme="light"] .text-zinc-500,
html[data-theme="light"] .text-zinc-600,
html[data-theme="light"] .text-neutral-500,
html[data-theme="light"] .text-neutral-600 {
    color: var(--fm-muted) !important;
}

html[data-theme="light"] .text-violet-300,
html[data-theme="light"] .text-violet-400,
html[data-theme="light"] .text-purple-300,
html[data-theme="light"] .text-purple-400 {
    color: #6d28d9 !important;
}

html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-400,
html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-sky-400 {
    color: #0891b2 !important;
}

html[data-theme="light"] .text-blue-300,
html[data-theme="light"] .text-blue-400 {
    color: #2563eb !important;
}

html[data-theme="light"] .text-green-300,
html[data-theme="light"] .text-green-400,
html[data-theme="light"] .text-green-500 {
    color: #15803d !important;
}

html[data-theme="light"] .text-amber-300,
html[data-theme="light"] .text-amber-400,
html[data-theme="light"] .text-yellow-300,
html[data-theme="light"] .text-yellow-400 {
    color: #b45309 !important;
}

html[data-theme="light"] .bg-white,
html[data-theme="light"] .bg-slate-50,
html[data-theme="light"] .bg-slate-100,
html[data-theme="light"] .bg-gray-50,
html[data-theme="light"] .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme="light"] .bg-dark,
html[data-theme="light"] .bg-dark-lighter,
html[data-theme="light"] .bg-black {
    background-color: rgba(255, 255, 255, 0.72) !important;
}

html,
body {
    min-height: 100%;
    background: var(--fm-bg) !important;
    color: var(--fm-text);
    scroll-behavior: smooth;
}

html {
    overflow-x: clip !important;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 50% -10%, rgba(240, 185, 11, 0.10), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(240, 185, 11, 0.06), transparent 24rem),
        linear-gradient(180deg, var(--fm-bg) 0%, var(--fm-bg-2) 45%, var(--fm-bg) 100%) !important;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] strong,
html[data-theme="light"] .brand-title,
html[data-theme="light"] .brand-copy,
html[data-theme="light"] .footer-brand,
html[data-theme="light"] .contact-modal-title {
    color: var(--fm-text) !important;
}

html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] small,
html[data-theme="light"] .brand-caption,
html[data-theme="light"] .mobile-menu-meta,
html[data-theme="light"] .assistant-note {
    color: var(--fm-soft) !important;
}

html[data-theme="light"] a:not(.btn-primary):not(.create-account-btn):not(.contact-create-btn):not(.pricing-card-cta) {
    color: #2563eb !important;
}

html[data-theme="light"] i.fa-solid,
html[data-theme="light"] i.fa-regular,
html[data-theme="light"] i.fa-brands {
    color: currentColor;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(240, 185, 11, 0.08), transparent 34rem),
        linear-gradient(180deg, var(--fm-bg) 0%, var(--fm-bg-2) 45%, var(--fm-bg) 100%) !important;
}

* {
    box-sizing: border-box;
}

::selection {
    background: rgba(240, 185, 11, 0.35);
    color: white;
}

/* Stop old reveal/animation stack from causing white flashes or late paints. */
.global-bg-texture,
.hero-background,
.login-bg-svg,
.login-blob {
    display: none !important;
}

[data-aos],
.aos-init,
.aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.animate-pulse-glow,
.login-node,
.login-scanline {
    animation: none !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.62) 44%, transparent 82%);
}

header,
section,
footer,
.floating-buttons,
.site-assistant {
    position: relative;
    z-index: 1;
}

.container {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Navigation */
#mainNav {
    position: fixed !important;
    top: 0;
    padding-top: 0 !important;
    background: rgba(5, 5, 5, 0.80);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

#mainNav.scrolled {
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.site-nav-shell {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.brand-link,
.nav-pill-group,
.header-actions,
.mobile-menu-toggle {
    transform: none;
}

.brand-mark,
.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-mark {
    padding: 4px 6px !important;
    border-radius: 8px !important;
}

.brand-logo-header {
    height: 22px !important;
    max-width: 100px;
    width: auto;
    object-fit: contain;
}

.nav-pill-group {
    gap: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px !important;
    color: var(--fm-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1 !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    position: relative;
    transition: color .2s ease !important;
}

.nav-link::before,
.nav-link::after {
    display: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--fm-text) !important;
    background: transparent !important;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--fm-primary);
    border-radius: 1px;
}

.header-actions {
    gap: 10px !important;
}

.user-login-btn,
.create-account-btn,
.language-btn,
.btn-primary,
.btn-secondary,
.contact-launch-btn,
.pricing-card-cta,
.famvoip-cta {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease !important;
}

.create-account-btn,
.btn-primary,
.contact-create-btn {
    color: #0a0a0a !important;
    background: var(--fm-primary) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.create-account-btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.25) !important;
    background: #f5c731 !important;
}

.user-login-btn,
.btn-secondary,
.language-btn,
.theme-toggle-btn,
.contact-launch-btn:not(.contact-create-btn) {
    color: var(--fm-soft) !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
.user-login-btn:hover,
.language-btn:hover,
.theme-toggle-btn:hover,
.contact-launch-btn:hover {
    transform: none;
    color: var(--fm-text) !important;
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.20) !important;
}

.theme-toggle-btn {
    width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

.theme-toggle-btn .theme-icon-light,
html[data-theme="light"] .theme-toggle-btn .theme-icon-dark {
    display: none;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-light {
    display: inline-block;
}

/* Yellow icons in header and key sections */
.user-login-btn i,
.language-btn i,
.theme-toggle-btn i,
.nav-link i,
.mobile-menu-surface nav a i,
#mobileMenuClose i {
    color: var(--fm-primary) !important;
}

/* CTA button icons inherit text color (dark on yellow) */
.create-account-btn i,
.btn-primary i,
.contact-create-btn i,
.famvoip-cta i,
.pricing-card-cta i {
    color: inherit !important;
}

.mobile-menu-toggle span {
    background: var(--fm-primary) !important;
}

html[data-theme="light"] #mainNav {
    background: rgba(250, 248, 246, 0.82);
    border-bottom-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] #mainNav.scrolled {
    background: rgba(250, 248, 246, 0.96);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

html[data-theme="light"] .nav-pill-group,
html[data-theme="light"] .user-login-btn,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .language-btn,
html[data-theme="light"] .theme-toggle-btn,
html[data-theme="light"] .contact-launch-btn:not(.contact-create-btn) {
    background: transparent !important;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
    color: var(--fm-text) !important;
    background: transparent !important;
}

html[data-theme="light"] .user-login-btn,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .language-btn,
html[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0,0,0,0.10) !important;
}

/* Mobile menu */
.mobile-menu-toggle {
    border: 0 !important;
    background: transparent !important;
}

.mobile-menu-toggle span {
    background: var(--fm-text) !important;
    width: 20px !important;
    height: 1.5px !important;
    border-radius: 1px;
}

#mobileMenu {
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(8px);
    overflow: clip;
}

html[data-theme="light"] #mobileMenu {
    background: rgba(255, 255, 255, 0.40);
}

html[data-theme="light"] .mobile-menu-surface {
    background: rgba(250, 248, 246, 0.98);
    border-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .mobile-menu-surface nav a,
html[data-theme="light"] #mobileMenuClose {
    color: var(--fm-text) !important;
}

#mobileMenu.mobile-menu-open {
    transform: translateX(0) !important;
    overflow: visible;
}

.mobile-menu-surface {
    width: min(340px, calc(100% - 16px));
    margin: 8px;
    margin-left: auto;
    min-height: calc(100dvh - 16px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.mobile-menu-surface nav a {
    min-height: 40px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--fm-text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: 0;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}

.mobile-menu-surface nav a:hover {
    background: rgba(255,255,255,0.04);
}

.mobile-menu-surface nav a i {
    color: var(--fm-primary);
    width: 18px;
    font-size: 13px;
    text-align: center;
}

#mobileMenuClose {
    color: var(--fm-muted) !important;
    font-size: 18px !important;
    border-radius: 8px;
    border: 0 !important;
    background: transparent !important;
}

#mobileMenuClose:hover {
    color: var(--fm-text) !important;
    background: rgba(255,255,255,0.04) !important;
}

.mobile-menu-meta {
    display: none !important;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fm-text);
}

.brand-caption {
    font-size: 11px;
    color: var(--fm-muted);
}

/* Hero */
#home {
    min-height: auto !important;
    padding: 73px 0 68px !important;
    overflow: visible !important;
    background: none !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    gap: 58px;
    align-items: center;
}

.hero-copy {
    max-width: 640px;
}

.hero-kicker-row,
.famvoip-kicker-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.service-badge,
.hero-inline-tag,
.section-badge,
.tech-tag,
.pricing-card-kicker,
.contact-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(8, 13, 30, 0.85);
    box-shadow: 0 0 0 4px rgba(5, 8, 22, 0.36);
    color: var(--fm-soft) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

html[data-theme="light"] .service-badge,
html[data-theme="light"] .hero-inline-tag,
html[data-theme="light"] .section-badge,
html[data-theme="light"] .tech-tag,
html[data-theme="light"] .pricing-card-kicker,
html[data-theme="light"] .contact-panel-badge {
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 0 0 4px rgba(247, 249, 255, 0.60);
}

.service-badge i,
.section-badge i,
.tech-tag i {
    color: var(--fm-primary) !important;
}

html[data-theme="light"] .service-badge i,
html[data-theme="light"] .section-badge i,
html[data-theme="light"] .hero-inline-tag i,
html[data-theme="light"] .tech-tag i,
html[data-theme="light"] .pricing-card-kicker i,
html[data-theme="light"] .contact-panel-badge i {
    color: var(--fm-primary-strong) !important;
}

.hero-title {
    margin: 0 0 22px !important;
    max-width: 780px;
    font-size: clamp(40px, 6vw, 72px) !important;
    line-height: .96 !important;
    letter-spacing: -0.06em;
    color: var(--fm-text);
}

.text-gradient,
.text-gradient-blue,
.text-gradient-green,
.text-gradient-amber {
    color: var(--fm-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.text-gradient-green {
    color: var(--fm-green) !important;
}

.text-gradient-amber {
    color: var(--fm-amber) !important;
}

html[data-theme="light"] .text-gradient-green {
    color: #15803d !important;
}

html[data-theme="light"] .text-gradient-amber {
    color: #92400e !important;
}

.text-gradient-blue {
    color: var(--fm-primary) !important;
}

html[data-theme="light"] .text-gradient-blue {
    color: var(--fm-primary-strong) !important;
}

.hero-description,
.section-description,
.famvoip-showcase-text,
.pricing-note,
.contact-panel p {
    max-width: 640px;
    margin: 0 !important;
    color: var(--fm-soft) !important;
    font-size: clamp(16px, 1.4vw, 19px) !important;
    line-height: 1.72 !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 0;
}

.hero-proof-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--fm-line);
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
}

.hero-proof-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-cyan);
    background: rgba(240, 185, 11, 0.09);
}

.hero-proof-item > i,
.pricing-feature-list i,
.trust-point i {
    color: var(--fm-cyan) !important;
}

html[data-theme="light"] .hero-proof-item > i,
html[data-theme="light"] .pricing-feature-list i,
html[data-theme="light"] .trust-point i,
html[data-theme="light"] .fa-circle-check {
    color: #15803d !important;
}

.hero-proof-copy strong {
    display: block;
    color: var(--fm-text);
    font-size: 13px;
}

.hero-proof-copy span {
    display: block;
    margin-top: 3px;
    color: var(--fm-muted);
    font-size: 12px;
    line-height: 1.45;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-metric-card,
.stat-card,
.famvoip-stat-chip {
    flex: 1 1 150px;
    padding: 15px;
    border: 1px solid var(--fm-line);
    border-radius: 18px;
    background: rgba(255,255,255,0.036);
}

.hero-metric-number,
.stat-number,
.famvoip-stat-chip strong {
    display: block;
    color: var(--fm-text) !important;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero-metric-label,
.stat-label,
.famvoip-stat-chip small,
.famvoip-stat-chip span {
    color: var(--fm-muted) !important;
    font-size: 12px;
    line-height: 1.45;
}

.hero-media-shell {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-media-stack,
.famvoip-device-stage {
    position: relative;
    width: min(100%, 18.5rem);
    margin-inline: auto;
    padding: 14px;
    border: 1px solid var(--fm-line);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035)),
        rgba(8,23,56,.58);
    box-shadow: var(--fm-shadow);
}

html[data-theme="light"] .hero-media-stack,
html[data-theme="light"] .famvoip-device-stage {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62)),
        rgba(255,255,255,.62);
}

.hero-media-stack::before,
.famvoip-device-stage::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: -1;
    border-radius: 34px;
    background: rgba(240, 185, 11, 0.06);
    filter: blur(24px);
}

.hero-media-float,
.famvoip-device-badge {
    position: relative !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--fm-line);
    background: rgba(5, 8, 22, 0.8);
    color: var(--fm-soft);
    font-size: 11px;
}

.hero-media-float-bottom {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 0;
}

.hero-media-float strong {
    color: var(--fm-text) !important;
    font-size: 12px;
    line-height: 1.15;
}

.hero-media-float span {
    display: block;
    margin-top: 2px;
    color: var(--fm-muted) !important;
    font-size: 10px;
    line-height: 1.3;
}

html[data-theme="light"] .hero-media-float,
html[data-theme="light"] .famvoip-device-badge {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(240, 185, 11, 0.18) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .hero-media-float strong,
html[data-theme="light"] .famvoip-device-badge strong {
    color: var(--fm-text) !important;
}

html[data-theme="light"] .hero-media-float span,
html[data-theme="light"] .famvoip-device-badge span {
    color: var(--fm-soft) !important;
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fm-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.hero-phone-mockup,
.famvoip-device-shell {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--fm-line-strong);
    background: #0d0d0d;
}

html[data-theme="light"] .hero-phone-mockup,
html[data-theme="light"] .famvoip-device-shell {
    background: #ffffff;
}

.hero-phone-mockup img,
.famvoip-showcase-shot,
.video-vertical {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-container-vertical {
    width: min(100%, 12.3rem) !important;
    margin-inline: auto;
    padding: 6px !important;
    border-radius: 26px !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(96,165,250,0.05)) !important;
    border: 1px solid var(--fm-line-strong) !important;
    box-shadow: 0 18px 52px rgba(2, 6, 23, 0.26) !important;
}

.video-container-vertical::before {
    opacity: 0.42 !important;
}

.video-vertical {
    aspect-ratio: 576 / 1280;
    max-height: 27.5rem;
    border-radius: 22px;
    background: #0d0d0d;
}

html[data-theme="light"] .video-container-vertical {
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14) !important;
}

.hero-scroll-indicator {
    display: none !important;
}

/* Sections */
section[id]:not(#home) {
    padding: 94px 0 !important;
    border-top: 1px solid var(--fm-line-hair);
    position: relative;
    background-image:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px) !important;
    background-size: 34px 34px !important;
    background-position: center top !important;
}

section[id]:not(#home)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1120px, calc(100% - 32px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.28), transparent);
    opacity: 0.55;
}

section[id] > .container {
    position: relative;
}

section[id] > .container::before {
    content: "";
    position: absolute;
    inset: -24px 0;
    z-index: -1;
    pointer-events: none;
    border-left: 1px solid var(--fm-line-hair);
    border-right: 1px solid var(--fm-line-hair);
    background-image:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.30;
}

.section-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 36px !important;
    text-align: left;
}

.section-icon-wrapper {
    display: none !important;
}

.section-title-wrapper {
    max-width: 760px;
    display: grid;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.section-title {
    margin: 0 !important;
    color: var(--fm-text) !important;
    font-size: clamp(30px, 4.5vw, 52px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.05em;
    font-weight: 800 !important;
}

.section-badge {
    width: max-content;
}

.section-badge i,
.service-badge i,
.hero-inline-tag i,
.tech-tag i,
.pricing-card-kicker i,
.contact-panel-badge i {
    position: relative;
    z-index: 1;
}

.famvoip-spotlight-grid,
.pricing-layout,
.faq-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 0;
    align-items: start;
    border: 1px solid var(--fm-line-hair);
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(8, 23, 56, 0.18);
    background-size:
        34px 34px,
        34px 34px,
        auto;
}

html[data-theme="light"] .famvoip-spotlight-grid,
html[data-theme="light"] .pricing-layout,
html[data-theme="light"] .faq-layout,
html[data-theme="light"] .contact-layout,
html[data-theme="light"] .services-grid,
html[data-theme="light"] .hero-proof-grid,
html[data-theme="light"] .famvoip-stat-strip,
html[data-theme="light"] .stats-grid,
html[data-theme="light"] .trust-proof-grid {
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255, 255, 255, 0.58) !important;
    background-size: 34px 34px, 34px 34px, auto !important;
}

.famvoip-side-stack {
    display: grid;
    gap: 0;
    align-self: stretch;
    border-left: 1px solid var(--fm-line-hair);
}

.famvoip-side-stack > * + * {
    border-top: 1px solid var(--fm-line-hair) !important;
}

.premium-card,
.glass-card,
.pricing-card,
.contact-panel,
.contact-form-card,
.trust-proof-list,
.faq-accordion,
.famvoip-showcase-card,
.famvoip-rate-card,
.famvoip-onboarding-card,
.service-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 26px !important;
    overflow: hidden;
}

.premium-card:hover,
.card-hover:hover {
    transform: none !important;
    border-color: rgba(240, 185, 11, 0.34) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.22) !important;
}

.famvoip-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.famvoip-card-icon,
.contact-point-icon,
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-cyan) !important;
    background: rgba(240, 185, 11, 0.09) !important;
    border: 1px solid rgba(240, 185, 11, 0.14);
}

html[data-theme="light"] .famvoip-card-icon,
html[data-theme="light"] .contact-point-icon,
html[data-theme="light"] .social-icon,
html[data-theme="light"] .icon-box {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.10) !important;
    border-color: rgba(8, 145, 178, 0.20) !important;
}

html[data-theme="light"] .icon-box-green {
    color: #15803d !important;
    background: rgba(21, 128, 61, 0.10) !important;
    border-color: rgba(21, 128, 61, 0.20) !important;
}

html[data-theme="light"] .icon-box-blue {
    color: #2563eb !important;
    background: rgba(240, 185, 11, 0.10) !important;
    border-color: rgba(240, 185, 11, 0.20) !important;
}

html[data-theme="light"] .icon-box-purple {
    color: #6d28d9 !important;
    background: rgba(109, 40, 217, 0.10) !important;
    border-color: rgba(109, 40, 217, 0.20) !important;
}

.famvoip-card-heading h3,
.pricing-card-title,
.famvoip-showcase-title,
.service-card h3,
.contact-panel h3 {
    color: var(--fm-text) !important;
    font-size: clamp(20px, 2.2vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em;
    font-weight: 750 !important;
}

.famvoip-card-heading p,
.service-card p,
.faq-answer,
.trust-point,
.pricing-feature-list,
.contact-support-strip {
    color: var(--fm-muted) !important;
}

.famvoip-stat-strip,
.stats-grid,
.trust-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Rate finder */
.select-field,
.input-field,
.textarea-field {
    width: 100%;
    min-height: 48px;
    color: var(--fm-text) !important;
    background: rgba(5, 8, 22, 0.58) !important;
    border: 1px solid var(--fm-line) !important;
    border-radius: 15px !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .select-field,
html[data-theme="light"] .input-field,
html[data-theme="light"] .textarea-field,
html[data-theme="light"] .assistant-input {
    background: rgba(255, 255, 255, 0.78) !important;
}

.select-field:focus,
.input-field:focus,
.textarea-field:focus {
    border-color: rgba(240, 185, 11, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.10) !important;
}

.famvoip-country-pill,
.rate-spotlight-card {
    border: 1px solid var(--fm-line) !important;
    background: rgba(255,255,255,.04) !important;
    color: var(--fm-soft) !important;
    border-radius: 999px !important;
}

.famvoip-country-pill {
    border-radius: 999px !important;
}

.rate-spotlight-card {
    border-radius: 10px !important;
}

html[data-theme="light"] .famvoip-country-pill,
html[data-theme="light"] .rate-spotlight-card,
html[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.70) !important;
}

html[data-theme="light"] .rate-spotlight-copy strong,
html[data-theme="light"] .rate-spotlight-price span,
html[data-theme="light"] .faq-question,
html[data-theme="light"] .trust-point strong,
html[data-theme="light"] .famvoip-rate-main,
html[data-theme="light"] .pricing-subamount,
html[data-theme="light"] .pricing-note {
    color: var(--fm-text) !important;
}

html[data-theme="light"] .rate-spotlight-copy span,
html[data-theme="light"] .rate-spotlight-price small,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .trust-point span,
html[data-theme="light"] .famvoip-rate-sub {
    color: var(--fm-soft) !important;
}

html[data-theme="light"] .rate-spotlight-flag {
    background: rgba(240, 185, 11, 0.10) !important;
    border-color: rgba(240, 185, 11, 0.20) !important;
}

html[data-theme="light"] .faq-question::after,
html[data-theme="light"] .trust-banner i {
    color: var(--fm-primary-strong) !important;
}

html[data-theme="light"] .trust-banner {
    color: var(--fm-soft) !important;
    background: linear-gradient(180deg, rgba(240, 185, 11, 0.08), rgba(240, 185, 11, 0.03)) !important;
    border-color: rgba(240, 185, 11, 0.16) !important;
}

.famvoip-country-pill.is-active,
.rate-spotlight-card.is-active {
    border-color: rgba(240, 185, 11, 0.48) !important;
    background: rgba(240, 185, 11, 0.12) !important;
    color: var(--fm-text) !important;
}

#rateResult {
    margin-top: 18px;
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 22px;
    background: rgba(240, 185, 11, 0.06);
}

.famvoip-rate-main {
    display: block;
    color: var(--fm-text);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 850;
    letter-spacing: -0.055em;
}

.famvoip-rate-sub {
    color: var(--fm-muted);
}

/* Pricing, FAQ, services */
.pricing-amount {
    color: var(--fm-text) !important;
    font-size: clamp(40px, 6vw, 64px) !important;
    letter-spacing: -0.06em;
}

.pricing-subamount {
    color: var(--fm-muted) !important;
    font-size: 14px !important;
    line-height: 1.5;
}

.pricing-note {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.pricing-feature-list li,
.trust-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pricing-feature-list li:last-child,
.trust-point:last-child {
    border-bottom: 0;
}

.faq-item {
    border: 1px solid var(--fm-line) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.035) !important;
    overflow: hidden;
}

.faq-question {
    color: var(--fm-text) !important;
    font-weight: 700 !important;
    padding: 16px 18px !important;
    font-size: 15px !important;
}

.faq-answer {
    padding: 0 18px 16px !important;
    line-height: 1.65;
    font-size: 14px !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--fm-line-hair);
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(8, 23, 56, 0.18);
    background-size:
        34px 34px,
        34px 34px,
        auto;
}

.services-grid > * {
    border-right: 1px solid var(--fm-line-hair) !important;
}

.services-grid > *:nth-child(3n) {
    border-right: 0 !important;
}

.services-grid > *:nth-child(n+4) {
    border-top: 1px solid var(--fm-line-hair) !important;
}

.pricing-layout > *,
.faq-layout > *,
.contact-layout > *,
.famvoip-spotlight-grid > * {
    min-height: 100%;
}

.pricing-layout > * + *,
.faq-layout > * + *,
.contact-layout > * + *,
.famvoip-spotlight-grid > * + * {
    border-left: 1px solid var(--fm-line-hair) !important;
}

.hero-proof-grid,
.famvoip-stat-strip,
.stats-grid,
.trust-proof-grid {
    gap: 0;
    border: 1px solid var(--fm-line-hair);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.105) calc(50% - .5px), rgba(255,255,255,.105) calc(50% + .5px), transparent calc(50% + .5px)),
        rgba(255,255,255,0.026);
    background-size:
        34px 34px,
        34px 34px,
        auto,
        auto;
}

.hero-proof-grid > *,
.famvoip-stat-strip > *,
.stats-grid > *,
.trust-proof-grid > * {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-right: 1px solid var(--fm-line-hair) !important;
    border-bottom: 1px solid var(--fm-line-hair) !important;
}

.hero-proof-grid > *:nth-child(2n),
.famvoip-stat-strip > *:nth-child(2n),
.stats-grid > *:nth-child(2n),
.trust-proof-grid > *:nth-child(2n) {
    border-right: 0 !important;
}

.hero-proof-grid > *:nth-last-child(-n+2),
.famvoip-stat-strip > *:nth-last-child(-n+2),
.stats-grid > *:nth-last-child(-n+2),
.trust-proof-grid > *:nth-last-child(-n+2) {
    border-bottom: 0 !important;
}

/* Contact and footer */
.contact-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--fm-soft) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-point:last-child {
    border-bottom: 0;
}

.contact-direct-actions,
.contact-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    background: rgba(5, 8, 22, 0.92) !important;
    border-top: 1px solid var(--fm-line) !important;
}

html[data-theme="light"] .site-footer {
    background: rgba(247, 249, 255, 0.94) !important;
}

html[data-theme="light"] .footer-shell,
html[data-theme="light"] .footer-legal-links .footer-link {
    background-color: rgba(255, 255, 255, 0.70);
}

.footer-shell {
    border: 1px solid var(--fm-line-hair);
    border-radius: 22px;
    padding: 28px 24px 20px;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255,255,255,.032);
    background-size: 34px 34px, 34px 34px, auto;
}

.footer-link {
    color: var(--fm-muted) !important;
    transition: color .16s ease;
}

.footer-link:hover {
    color: var(--fm-text) !important;
}

.footer-brand p {
    max-width: 260px;
    margin-bottom: 18px !important;
    font-size: 14px;
    line-height: 1.6 !important;
}

.footer-logo {
    max-width: 132px;
    height: auto;
}

.site-footer h4 {
    margin-bottom: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fm-soft) !important;
}

.site-footer ul {
    display: grid;
    gap: 6px !important;
}

.site-footer .grid {
    gap: 24px !important;
    margin-bottom: 20px !important;
}

.footer-mini-pills {
    display: flex;
    gap: 8px;
}

.divider {
    height: 1px;
    margin: 10px 0 18px;
    background: linear-gradient(90deg, transparent, var(--fm-line), transparent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.footer-bottom p {
    margin: 0 !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.5;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.footer-legal-links .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--fm-line-hair);
    border-radius: 999px;
    background: rgba(5, 8, 22, 0.42);
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(12px);
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal-dialog {
    width: min(560px, 100%);
    border: 1px solid var(--fm-line);
    border-radius: 28px;
    background: #0a0a0a;
    box-shadow: var(--fm-shadow);
    padding: 24px;
    position: relative;
}

html[data-theme="light"] .contact-modal-dialog,
html[data-theme="light"] .assistant-panel {
    background: #ffffff;
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--fm-muted);
}

.contact-modal-title {
    color: var(--fm-text);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.contact-modal-description,
.contact-modal-help,
.contact-modal-tip {
    color: var(--fm-muted);
}

.contact-modal-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

.contact-modal-tab {
    flex: 1;
    min-height: 42px;
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    color: var(--fm-muted);
    background: rgba(255,255,255,.04);
}

.contact-modal-tab.is-active {
    color: #0a0a0a;
    border-color: rgba(240, 185, 11, 0.48);
    background: rgba(240, 185, 11, 0.14);
}

html[data-theme="light"] .create-account-btn,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .contact-create-btn,
html[data-theme="light"] .assistant-send-btn,
html[data-theme="light"] .contact-modal-tab.is-active {
    color: #0a0a0a !important;
}

html[data-theme="light"] .create-account-btn i,
html[data-theme="light"] .btn-primary i,
html[data-theme="light"] .contact-create-btn i,
html[data-theme="light"] .assistant-send-btn i,
html[data-theme="light"] .contact-modal-tab.is-active i {
    color: inherit !important;
}

/* Assistant */
.floating-buttons {
    position: fixed !important;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60 !important;
}

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(240, 185, 11, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F0B90B;
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 8px 28px rgba(0,0,0,.30);
}

html[data-theme="light"] .floating-btn {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
}

.back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.assistant-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(390px, calc(100vw - 24px));
    height: auto !important;
    max-height: calc(100dvh - 76px) !important;
    min-height: 380px;
    display: none;
    flex-direction: column;
    border: 1px solid var(--fm-line);
    border-radius: 26px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: var(--fm-shadow);
    z-index: 59 !important;
}

.site-assistant.is-open .assistant-panel,
.assistant-panel.is-open {
    display: flex;
}

.assistant-panel[aria-hidden="false"] {
    display: flex;
}

.assistant-panel-header,
.assistant-panel-footer {
    padding: 10px 14px;
    border-bottom: 1px solid var(--fm-line);
}

.site-assistant.is-open ~ .floating-buttons .back-to-top,
.assistant-toggle.is-open {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.assistant-panel-footer {
    border-top: 1px solid var(--fm-line);
    border-bottom: 0;
}

.assistant-panel-body {
    padding: 14px;
    overflow-y: auto;
}

.assistant-input {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    color: var(--fm-text);
}

.assistant-send-btn {
    background: var(--fm-primary-strong);
    color: white;
}

/* Assistant compact header & footer overrides */
.assistant-panel-header {
    padding: 0.5rem 0.7rem 0.3rem;
    gap: 0.5rem;
}

.assistant-panel-badge {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.65rem;
    font-size: 0.75rem;
}

.assistant-panel-copy strong {
    font-size: 0.82rem;
}

.assistant-panel-copy p {
    font-size: 0.65rem;
    margin-top: 0.08rem;
}

.assistant-panel-close {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
}

.assistant-panel-status {
    margin: 0 0.7rem 0.3rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.58rem;
}

.assistant-panel-footer {
    padding: 0.55rem 0.7rem 0.65rem;
}

.assistant-panel-body {
    padding: 0.55rem 0.7rem;
}

/* Hero refinement — minimal SaaS */
.hero-description {
    max-width: 560px !important;
    font-size: clamp(15px, 1.3vw, 17px) !important;
    line-height: 1.68 !important;
}

.hero-proof-grid {
    margin-top: 22px;
}

.hero-proof-item {
    padding: 11px 13px !important;
}

.hero-proof-item > i {
    font-size: 13px !important;
}

.hero-proof-copy strong {
    font-size: 12.5px;
}

.hero-proof-copy span {
    font-size: 11.5px;
}

.hero-metrics {
    margin-top: 22px;
    gap: 0 !important;
    border: 1px solid var(--fm-line-hair);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255,255,255,0.026);
    background-size: 34px 34px, 34px 34px, auto;
}

html[data-theme="light"] .hero-metrics {
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255, 255, 255, 0.58) !important;
    background-size: 34px 34px, 34px 34px, auto !important;
}

.hero-metric-card {
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-right: 1px solid var(--fm-line-hair) !important;
}

.hero-metric-card:last-child {
    border-right: 0 !important;
}

.hero-metric-number {
    font-size: 22px;
}

.hero-media-stack,
.famvoip-device-stage {
    box-shadow: 0 12px 40px rgba(0,0,0,0.30) !important;
}

.video-container-vertical {
    box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important;
}

/* FamVoIP section refinement — minimal SaaS */
.famvoip-card-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
}

.famvoip-card-heading {
    gap: 12px;
    margin-bottom: 14px;
}

.famvoip-showcase-title {
    font-size: clamp(18px, 1.8vw, 24px) !important;
    font-weight: 750 !important;
}

.famvoip-showcase-text,
.famvoip-card-heading p {
    font-size: clamp(14px, 1.2vw, 16px) !important;
    line-height: 1.6 !important;
}

.famvoip-stat-chip {
    padding: 12px 14px !important;
}

.famvoip-stat-chip strong {
    font-size: 18px !important;
}

.famvoip-stat-chip small {
    font-size: 11px !important;
}

.famvoip-stat-chip span:not(:first-child) {
    font-size: 11px !important;
}

.famvoip-device-badge {
    padding: 5px 9px !important;
    font-size: 10px !important;
    gap: 6px !important;
}

.famvoip-device-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--fm-line);
    background: rgba(255,255,255,0.035);
    color: var(--fm-soft);
    font-size: 10px;
}

.famvoip-device-chip i {
    color: var(--fm-primary);
    font-size: 9px;
}

html[data-theme="light"] .famvoip-device-chip {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
}

.famvoip-platforms-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.famvoip-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--fm-line);
    background: rgba(255,255,255,0.03);
    color: var(--fm-soft);
    font-size: 13px;
    font-weight: 600;
}

.famvoip-platform-chip i {
    color: var(--fm-primary);
    font-size: 14px;
}

.famvoip-platform-chip--android {
    position: relative;
}

.famvoip-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--fm-primary);
    color: #0a0a0a;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 2px;
}

html[data-theme="light"] .famvoip-platform-chip {
    background: rgba(255,255,255,0.72);
    border-color: rgba(0,0,0,0.08);
}

.famvoip-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    counter-reset: famvoip-step;
}

.famvoip-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(240, 185, 11, 0.12);
    color: var(--fm-primary);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

html[data-theme="light"] .step-number {
    background: rgba(240, 185, 11, 0.15);
}

.famvoip-step-list li p {
    color: var(--fm-soft);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.famvoip-step-list li a {
    color: var(--fm-primary) !important;
    text-decoration: none;
}

.famvoip-step-list li a:hover {
    text-decoration: underline;
}

.select-field {
    min-height: 44px !important;
    border-radius: 12px !important;
}

#rateResult {
    border-radius: 16px !important;
}

.famvoip-rate-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.famvoip-rate-country {
    display: flex;
    align-items: center;
    gap: 8px;
}

.famvoip-result-flag {
    font-size: 22px;
}

.famvoip-billing-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(240, 185, 11, 0.10);
    color: var(--fm-primary);
    font-size: 11px;
    font-weight: 600;
}

.famvoip-rate-value {
    font-size: clamp(28px, 4vw, 40px) !important;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: var(--fm-text);
}

.famvoip-cta {
    margin-top: 4px;
}

/* Pricing section refinement */
.pricing-primary-card {
    position: relative;
}

.pricing-primary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--fm-primary);
    border-radius: 0 2px 2px 0;
}

html[data-theme="light"] .pricing-primary-card::before {
    background: var(--fm-primary-strong);
}

.pricing-card-cta {
    margin-top: 18px;
}

.pricing-card-kicker {
    margin-bottom: 12px;
}

.pricing-card-title {
    margin-bottom: 6px !important;
}

.rate-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.rate-spotlight-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--fm-line) !important;
    background: rgba(255,255,255,.04) !important;
    color: var(--fm-soft) !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
    text-align: left;
}

.rate-spotlight-card:hover {
    border-color: rgba(240, 185, 11, 0.36) !important;
    background: rgba(240, 185, 11, 0.06) !important;
}

html[data-theme="light"] .rate-spotlight-card {
    background: rgba(255, 255, 255, 0.70) !important;
}

.rate-spotlight-card .rate-spotlight-flag {
    font-size: 20px;
    flex-shrink: 0;
}

.rate-spotlight-card .rate-spotlight-copy {
    flex: 1;
    min-width: 0;
}

.rate-spotlight-card .rate-spotlight-copy strong {
    display: block;
    color: var(--fm-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rate-spotlight-card .rate-spotlight-copy span {
    display: none;
}

.rate-spotlight-card .rate-spotlight-price {
    flex-shrink: 0;
    text-align: right;
}

.rate-spotlight-card .rate-spotlight-price span {
    display: block;
    color: var(--fm-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.rate-spotlight-card .rate-spotlight-price small {
    display: block;
    color: var(--fm-muted);
    font-size: 9px;
    line-height: 1;
}

html[data-theme="light"] .rate-spotlight-card .rate-spotlight-copy strong,
html[data-theme="light"] .rate-spotlight-card .rate-spotlight-price span {
    color: var(--fm-text) !important;
}

html[data-theme="light"] .rate-spotlight-card .rate-spotlight-copy span,
html[data-theme="light"] .rate-spotlight-card .rate-spotlight-price small {
    color: var(--fm-muted) !important;
}

.pricing-spotlight-card {
    grid-column: 1 / -1;
}

/* FAQ section refinement */
.trust-proof-grid {
    margin-top: 14px;
}

.trust-point {
    padding: 9px 0 !important;
}

.trust-point i {
    font-size: 14px !important;
    margin-top: 2px !important;
}

.trust-banner {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(240, 185, 11, 0.12);
    background: linear-gradient(180deg, rgba(240, 185, 11, 0.06), rgba(240, 185, 11, 0.02));
    color: var(--fm-soft);
    font-size: 13px;
    line-height: 1.55;
}

.trust-banner i {
    color: var(--fm-primary);
}

.faq-accordion {
    display: grid;
    gap: 8px;
}

.faq-item details[open] {
    border-color: rgba(240, 185, 11, 0.22) !important;
}

.faq-question summary {
    list-style: none;
    cursor: pointer;
}

.faq-question summary::-webkit-details-marker {
    display: none;
}

.faq-question summary::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--fm-muted);
    border-bottom: 2px solid var(--fm-muted);
    transform: rotate(-45deg);
    transition: transform .2s ease, border-color .2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

details[open] .faq-question summary::after {
    transform: rotate(45deg);
    border-color: var(--fm-primary);
}

.faq-question {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

/* Web & Software section refinement */
.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-box-green {
    color: var(--fm-green) !important;
    background: rgba(34, 197, 94, 0.09) !important;
    border: 1px solid rgba(34, 197, 94, 0.14) !important;
}

.icon-box-amber {
    color: var(--fm-amber) !important;
    background: rgba(212, 148, 42, 0.09) !important;
    border: 1px solid rgba(212, 148, 42, 0.14) !important;
}

html[data-theme="light"] .icon-box-amber {
    color: #92400e !important;
    background: rgba(212, 148, 42, 0.10) !important;
    border-color: rgba(212, 148, 42, 0.20) !important;
}

#web .premium-card,
#dev .premium-card {
    border: 1px solid var(--fm-line) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.035) !important;
}

html[data-theme="light"] #web .premium-card,
html[data-theme="light"] #dev .premium-card {
    background: rgba(255, 255, 255, 0.70) !important;
}

#web .premium-card:hover,
#dev .premium-card:hover {
    background: rgba(255,255,255,.055) !important;
}

#web h3,
#dev h3 {
    margin-bottom: 2px !important;
}

#web .tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#dev .space-y-4 > div {
    padding: 8px 0;
}

/* Stats section refinement */
.stats-intro {
    margin-bottom: 22px;
}

.stats-intro-text,
.stats-intro p {
    color: var(--fm-soft) !important;
    font-size: clamp(15px, 1.3vw, 17px) !important;
    line-height: 1.68 !important;
    max-width: 640px;
}

#stats .grid {
    gap: 0 !important;
    border: 1px solid var(--fm-line-hair);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255,255,255,0.026);
    background-size: 34px 34px, 34px 34px, auto;
}

html[data-theme="light"] #stats .grid {
    background:
        linear-gradient(var(--fm-grid-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--fm-grid-line-soft) 1px, transparent 1px),
        rgba(255, 255, 255, 0.58) !important;
    background-size: 34px 34px, 34px 34px, auto !important;
}

#stats .stat-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-right: 1px solid var(--fm-line-hair) !important;
    border-bottom: 1px solid var(--fm-line-hair) !important;
}

@media (min-width: 769px) {
    #stats .stat-card:nth-child(4n) {
        border-right: 0 !important;
    }

    #stats .stat-card:nth-last-child(-n+4) {
        border-bottom: 0 !important;
    }
}

.stat-number {
    font-size: clamp(26px, 4vw, 36px) !important;
    font-weight: 850;
    letter-spacing: -0.05em;
}

/* Contact section refinement */
.contact-panel-badge {
    margin-bottom: 14px;
}

.contact-panel h3 {
    margin-bottom: 4px !important;
}

.contact-support-strip {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--fm-line-hair);
    background: rgba(240, 185, 11, 0.04);
    font-size: 13px;
    line-height: 1.5;
}

html[data-theme="light"] .contact-support-strip {
    background: rgba(240, 185, 11, 0.06);
    border-color: rgba(240, 185, 11, 0.12);
}

.contact-direct-actions {
    margin-top: 14px;
}

.contact-launch-btn {
    min-height: 40px;
    padding: 0 18px !important;
}

.contact-form-card {
    background: rgba(255,255,255,0.02) !important;
}

html[data-theme="light"] .contact-form-card {
    background: rgba(255, 255, 255, 0.72) !important;
}

.contact-modal-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.contact-modal-description,
.contact-modal-help,
.contact-modal-tip {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.contact-modal-tip {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(240, 185, 11, 0.06);
    border: 1px solid rgba(240, 185, 11, 0.12);
    margin: 12px 0;
}

html[data-theme="light"] .contact-modal-tip {
    background: rgba(240, 185, 11, 0.08);
    border-color: rgba(240, 185, 11, 0.16);
}

/* Footer refinement */
.site-footer .text-violet-400,
.site-footer .text-violet-300 {
    color: var(--fm-primary) !important;
}

html[data-theme="light"] .site-footer .text-violet-400,
html[data-theme="light"] .site-footer .text-violet-300 {
    color: var(--fm-primary-strong) !important;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 280px;
    margin-bottom: 14px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

.footer-link:hover {
    color: var(--fm-primary) !important;
}

.divider {
    height: 1px;
    margin: 12px 0 16px;
    background: linear-gradient(90deg, transparent, var(--fm-line), transparent);
}

html[data-theme="light"] .footer-legal-links .footer-link {
    background-color: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .hero-grid,
    .famvoip-spotlight-grid,
    .pricing-layout,
    .faq-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-media-shell {
        max-width: 520px;
    }

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

    .famvoip-side-stack,
    .pricing-layout > * + *,
    .faq-layout > * + *,
    .contact-layout > * + *,
    .famvoip-spotlight-grid > * + * {
        border-left: 0 !important;
        border-top: 1px solid var(--fm-line-hair) !important;
    }

    .services-grid > * {
        border-right: 0 !important;
        border-top: 1px solid var(--fm-line-hair) !important;
    }

    .services-grid > *:first-child {
        border-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 100%) !important;
    }

    .famvoip-platforms-row {
        gap: 8px;
    }

    .famvoip-platform-chip {
        font-size: 12px;
        padding: 5px 10px;
    }

    #home {
        padding: 63px 0 58px !important;
    }

    section[id]:not(#home) {
        padding: 62px 0 !important;
    }

    .hero-title {
        font-size: clamp(38px, 12vw, 54px) !important;
        letter-spacing: -0.05em;
    }

    .hero-proof-grid,
    .famvoip-stat-strip,
    .stats-grid,
    .trust-proof-grid {
        grid-template-columns: 1fr;
    }

    .hero-proof-grid > *,
    .famvoip-stat-strip > *,
    .stats-grid > *,
    .trust-proof-grid > * {
        border-right: 0 !important;
        border-bottom: 1px solid var(--fm-line-hair) !important;
    }

    .hero-proof-grid > *:last-child,
    .famvoip-stat-strip > *:last-child,
    .stats-grid > *:last-child,
    .trust-proof-grid > *:last-child {
        border-bottom: 0 !important;
    }

    #stats .grid {
        grid-template-columns: 1fr 1fr !important;
    }

    #stats .stat-card {
        border-right: 1px solid var(--fm-line-hair) !important;
        border-bottom: 1px solid var(--fm-line-hair) !important;
    }

    #stats .stat-card:nth-child(2n) {
        border-right: 0 !important;
    }

    #stats .stat-card:nth-last-child(-n+2) {
        border-bottom: 0 !important;
    }

    .hero-actions,
    .contact-direct-actions,
    .contact-modal-actions {
        flex-direction: column;
    }

    .hero-actions > *,
    .contact-direct-actions > *,
    .contact-modal-actions > * {
        width: 100%;
    }

    .premium-card,
    .glass-card,
    .pricing-card,
    .contact-panel,
    .contact-form-card,
    .trust-proof-list,
    .faq-accordion,
    .famvoip-showcase-card,
    .famvoip-rate-card,
    .famvoip-onboarding-card,
    .service-card {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    .footer-shell {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-legal-links {
        justify-content: flex-start;
    }

    .footer-legal-links .footer-link {
        min-height: 30px;
        font-size: 11px !important;
    }

    .floating-buttons {
        right: 12px;
        bottom: 12px;
    }

    .assistant-panel {
        right: 8px;
        left: 8px;
        width: auto !important;
        bottom: 8px;
        border-radius: 22px;
        max-height: calc(100dvh - 68px) !important;
        min-height: 320px;
    }

    .rate-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rate-spotlight-card {
        padding: 5px 8px !important;
    }

    .rate-spotlight-card .rate-spotlight-flag {
        font-size: 18px;
    }

    .rate-spotlight-card .rate-spotlight-copy strong {
        font-size: 10px;
    }

    .rate-spotlight-card .rate-spotlight-price span {
        font-size: 12px;
    }

    .site-assistant.is-open ~ .floating-buttons .back-to-top,
    .assistant-toggle.is-open {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transform: scale(0.8) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
