/* ============================================
   SIG Public Website – Ultra-Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand-dark:       #02040a;
    --brand-dark-2:     #050814;
    --brand-dark-3:     #080c1d;
    --brand-cyan:       #00F0FF;
    --brand-magenta:    #ff00ea;
    --brand-purple:     #8A2BE2;
    --brand-green:      #00D4AA;
    --text-primary:     #FFFFFF;
    --text-secondary:   #a0aec0;
    --text-muted:       #718096;
    --border-faint:     rgba(255,255,255,0.06);
    --border-cyan:      rgba(0,240,255,0.25);
    --radius-sm:        10px;
    --radius-md:        16px;
    --radius-lg:        24px;
    --radius-xl:        32px;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--brand-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Page Wrapper ─────────────────────────── */
.page-wrapper { width: 100%; }

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

/* ── Scroll Animations ────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HERO SECTION ─────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 24px 100px;
}

.hero-bg-visual {
    position: absolute;
    inset: 0;
    background-image: url('images/sig-hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: blur(100px) saturate(1.5);
    z-index: 0;
    animation: slow-zoom 20s linear infinite alternate;
}

@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-image-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
    z-index: 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0,240,255,0.1);
    background: #000;
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen; /* Makes black background of image transparent in a blendy way */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,240,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,240,255,0.3);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--brand-cyan);
    letter-spacing: 0.03em;
    margin-bottom: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 12px var(--brand-cyan);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: white;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-divider {
    color: var(--border-faint);
}

/* Hero scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    animation: float-hint 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--brand-cyan), transparent);
}

@keyframes float-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── Buttons ──────────────────────────────── */
.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-cyan);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-primary-cta:hover {
    background: #1af5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,240,255,0.3);
}

.btn-primary-cta.large { padding: 16px 36px; font-size: 1rem; }

.btn-ghost-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-faint);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ghost-cta:hover {
    border-color: rgba(255,255,255,0.25);
    color: white;
    background: rgba(255,255,255,0.04);
}

/* ── Text Gradient ────────────────────────── */
.text-gradient-cyan {
    background: linear-gradient(95deg, #fff 0%, #00F0FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Sections ─────────────────────────────── */
.section-dark {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.section-bg-mesh {
    background:
        radial-gradient(circle at 100% 0%, rgba(0,240,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(138,43,226,0.05) 0%, transparent 40%),
        var(--brand-dark-2);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── How It Works Flow ────────────────────── */
.flow-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.flow-step {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    flex: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-cyan);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.flow-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(0,240,255,0.05);
    border: 1px solid rgba(0,240,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.flow-step-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.flow-step h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.flow-step p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.flow-arrow {
    width: 40px;
    opacity: 0.2;
}

/* ── Modules Grid ─────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.module-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(138,43,226,0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(80px);
    z-index: -1;
}

.module-card:hover::before { opacity: 0.08; }

.module-card:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--color);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    display: inline-block;
}

.module-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid var(--color);
    color: var(--color);
    margin-bottom: 20px;
}

.module-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.module-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.module-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-link:hover { text-decoration: underline; }

/* ── SDK Section ──────────────────────────── */
.section-sdk {
    background: linear-gradient(180deg, var(--brand-dark-2) 0%, var(--brand-dark) 100%);
    padding: 100px 0;
}

.sdk-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sdk-text .section-label { display: block; margin-bottom: 14px; }

.sdk-text h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.sdk-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sdk-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Code Block */
.sdk-code-block {
    background: #0D1117;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.code-dot.red    { background: #FF5F57; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green  { background: #28C840; }

.code-filename {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.code-content {
    padding: 24px 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    color: #e2e8f0;
}

.code-comment { color: #4a5568; }
.code-keyword  { color: #79c0ff; }
.code-class    { color: #ffa657; }
.code-string   { color: #a5d6ff; }

/* ── Trust Grid ───────────────────────────── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--brand-dark-3);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-cyan);
}

.trust-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.trust-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── CTA Section ──────────────────────────── */
.section-cta {
    position: relative;
    padding: 120px 24px;
    text-align: center;
    overflow: hidden;
    background: var(--brand-dark-2);
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0,240,255,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }

.section-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-faint);
    background: var(--brand-dark);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Legacy Blazor Error UI ───────────────── */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }
#blazor-error-ui { display: none; }

/* ── Pricing Wizard ───────────────────────── */
.pricing-wizard-wrap {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    margin-top: 40px;
}

.tier-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tier-btn {
    background: transparent;
    border: 1px solid var(--border-faint);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-btn.active {
    background: var(--brand-cyan);
    color: var(--brand-dark);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 30px rgba(0,240,255,0.25);
}

.pricing-display {
    text-align: center;
    margin-bottom: 60px;
}

.price-value {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price-currency {
    font-size: 2rem;
    vertical-align: super;
}

.price-period {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--brand-green);
    font-weight: 800;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .flow-grid {
        flex-direction: column;
        gap: 40px;
    }
    .flow-arrow { transform: rotate(90deg); display: none; }
    .modules-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .sdk-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .modules-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
}