:root {
    --sq-background: #0F172A;
    --sq-surface: #334155;
    --sq-surface-2: #1E293B;
    --sq-accent: #6366F1;
    --sq-accent-2: #818CF8;
    --sq-live: #22C55E;
    --sq-warning: #F59E0B;
    --sq-text: #F8FAFC;
    --sq-text-secondary: #94A3B8;
    --sq-border: rgba(148, 163, 184, 0.12);
}

[data-bs-theme="dark"] {
    --bs-body-bg: var(--sq-background);
    --bs-body-color: var(--sq-text);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--sq-background);
    color: var(--sq-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code, pre, .mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-secondary,
.text-muted {
    color: var(--sq-text-secondary) !important;
}

/* Navbar */
.navbar-sq {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--sq-border);
}

.navbar-sq .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sq-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-sq .navbar-brand .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sq-accent) 0%, var(--sq-live) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Logo image (replaces the placeholder gradient box) */
.logo-mark-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 34px;
    height: 34px;
}

.hero-logo {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 10px 28px rgba(99, 102, 241, 0.4));
}

@media (max-width: 768px) {
    .hero-logo { width: 84px; height: 84px; }
}

.navbar-sq .nav-link {
    color: var(--sq-text-secondary);
    font-weight: 500;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.navbar-sq .nav-link:hover,
.navbar-sq .nav-link:focus {
    color: var(--sq-text);
}

/* Hero */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
        radial-gradient(40% 40% at 80% 30%, rgba(34, 197, 94, 0.10) 0%, transparent 70%),
        var(--sq-background);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    color: var(--sq-text-secondary);
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn-accent {
    background-color: var(--sq-accent);
    border-color: var(--sq-accent);
    color: white;
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--sq-accent-2);
    border-color: var(--sq-accent-2);
    color: white;
}

.btn-live {
    background-color: var(--sq-live);
    border-color: var(--sq-live);
    color: #052e16;
    font-weight: 700;
}

.btn-live:hover,
.btn-live:focus {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #052e16;
}

.btn-outline-light {
    border-color: var(--sq-border);
    color: var(--sq-text);
}

.btn-outline-light:hover {
    background-color: var(--sq-surface);
    border-color: var(--sq-surface);
    color: var(--sq-text);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 0.75rem;
}

/* App Store badge */
.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s ease;
}

.appstore-badge:hover {
    color: #fff;
    transform: translateY(-1px);
}

.appstore-badge svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.appstore-badge .badge-small {
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.9;
}

.appstore-badge .badge-big {
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 600;
}

.appstore-badge.compact .badge-big {
    font-size: 0.95rem;
}

.appstore-badge.compact svg {
    width: 22px;
    height: 22px;
}

/* Hero visual mock */
.hero-mock {
    margin-top: 3.5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.20) 0%, rgba(99, 102, 241, 0) 100%);
    border-radius: 2rem;
    border: 1px solid var(--sq-border);
}

.phone-frame {
    background: #0b1224;
    border-radius: 1.75rem;
    border: 1px solid var(--sq-border);
    padding: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.phone-frame .ph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.phone-frame .ph-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sq-live);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: live-pulse 1.6s infinite;
    margin-right: 0.4rem;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.participants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.participant {
    background: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
}

.participant .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sq-accent), var(--sq-accent-2));
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
}

.participant.speaking .avatar {
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.4),
        0 0 0 8px rgba(34, 197, 94, 0.25),
        0 0 0 14px rgba(34, 197, 94, 0.1);
    animation: speaking-pulse 1.2s infinite;
}

@keyframes speaking-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.participant .name {
    font-size: 0.78rem;
    color: var(--sq-text-secondary);
}

.ptt-button {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0.5rem auto 0;
    background: radial-gradient(circle at 30% 30%, var(--sq-accent-2), var(--sq-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    box-shadow:
        0 0 0 6px rgba(99, 102, 241, 0.18),
        0 12px 28px rgba(99, 102, 241, 0.45);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--sq-accent-2);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--sq-text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
}

/* Cards */
.sq-card {
    background-color: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 1.1rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sq-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
}

.sq-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--sq-accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.sq-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sq-card p {
    color: var(--sq-text-secondary);
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sq-accent);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Use cases */
.usecase-card {
    background-color: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 1.1rem;
    padding: 2rem;
    height: 100%;
}

.usecase-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 197, 94, 0.15));
    color: var(--sq-accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
}

.usecase-card h3 {
    font-size: 1.35rem;
}

.usecase-card .quote {
    border-left: 3px solid var(--sq-live);
    padding-left: 0.9rem;
    color: var(--sq-text);
    font-style: italic;
    margin-top: 1rem;
}

.usecase-card .scenario {
    color: var(--sq-text-secondary);
    margin-bottom: 1rem;
}

.usecase-card .scenario strong,
.usecase-card .resolution strong {
    color: var(--sq-text);
    font-weight: 700;
}

.usecase-card .resolution {
    color: var(--sq-text-secondary);
}

/* Safety section */
.safety-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sq-border);
}

.safety-item:last-child {
    border-bottom: none;
}

.safety-item .check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: var(--sq-live);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.safety-item strong {
    color: var(--sq-text);
}

/* Tech highlights */
.tech-grid {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(34, 197, 94, 0.06));
    border: 1px solid var(--sq-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.tech-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--sq-border);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item strong {
    color: var(--sq-text);
    font-weight: 700;
}

/* Pricing */
.price-card {
    background-color: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--sq-accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), var(--sq-surface-2));
    position: relative;
}

.price-card .tier {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--sq-accent-2);
    font-weight: 700;
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem;
}

.price-card .price small {
    font-size: 1rem;
    color: var(--sq-text-secondary);
    font-weight: 500;
}

.price-card .lead {
    color: var(--sq-text-secondary);
    margin-bottom: 1.25rem;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.price-card ul li {
    padding: 0.45rem 0;
    color: var(--sq-text);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.price-card ul li::before {
    content: '✓';
    color: var(--sq-live);
    font-weight: 700;
    flex-shrink: 0;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--sq-accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

/* Testimonials */
.testimonial {
    background-color: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 1.1rem;
    padding: 2rem;
    height: 100%;
    font-size: 1.1rem;
    color: var(--sq-text);
}

.testimonial::before {
    content: '"';
    display: block;
    font-size: 3rem;
    line-height: 0.8;
    color: var(--sq-accent-2);
    margin-bottom: 0.5rem;
}

/* Footer CTA */
.cta-band {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(34, 197, 94, 0.12));
    border-top: 1px solid var(--sq-border);
    border-bottom: 1px solid var(--sq-border);
    padding: 5rem 0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--sq-surface-2);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--sq-border);
}

.site-footer h6 {
    color: var(--sq-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--sq-text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
}

.site-footer a:hover {
    color: var(--sq-text);
}

.site-footer .footer-brand {
    font-weight: 800;
    color: var(--sq-text);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer .footer-tag {
    color: var(--sq-text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.site-footer .copyright {
    color: var(--sq-text-secondary);
    font-size: 0.88rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sq-border);
}

/* Legal pages */
.legal-content {
    max-width: 800px;
    padding: 6rem 1rem 4rem;
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--sq-text);
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--sq-surface-2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.legal-content th,
.legal-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sq-border);
    text-align: left;
}

.legal-content th {
    background: rgba(99, 102, 241, 0.10);
    font-weight: 700;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

.legal-content code {
    background: var(--sq-surface-2);
    color: var(--sq-accent-2);
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.92em;
}

.legal-content .last-updated {
    color: var(--sq-text-secondary);
    margin-bottom: 1.5rem;
}

.legal-content hr {
    border-color: var(--sq-border);
    margin: 1.5rem 0;
}

/* FAQ */
.faq-item {
    background-color: var(--sq-surface-2);
    border: 1px solid var(--sq-border);
    border-radius: 0.85rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.85rem;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--sq-text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--sq-accent-2);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--sq-text-secondary);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 6rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .tech-grid { padding: 1.5rem; }
    .navbar-sq .navbar-collapse { background: var(--sq-surface-2); padding: 1rem; border-radius: 0.75rem; margin-top: 0.5rem; }
}
