/* ═══════════════════════════════════════════════════════════
   SPECTI — Showcase Site Stylesheet
   Dark premium gaming aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ── RESET + TOKENS ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #0a0b10;
    --bg2:         #10111a;
    --surface:     #161820;
    --surface2:    #1b1d25;
    --border:      #262832;
    --border-lo:   #1e2028;
    --text:        #eceff4;
    --text-dim:    #969aa2;
    --text-dim2:   #60626e;
    --accent:      #e84057;
    --accent-soft: rgba(232, 64, 87, 0.15);
    --accent-glow: rgba(232, 64, 87, 0.4);
    --green:       #3cd250;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:        'JetBrains Mono', monospace;
    --radius:      16px;
    --radius-sm:   10px;
    --radius-xs:   6px;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow:      0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg:   0 24px 64px rgba(0,0,0,0.6);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }

.accent { color: var(--accent); }

/* ── PARTICLES CANVAS ──────────────────────────────────── */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10, 11, 16, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 11, 16, 0.92);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent-soft);
    border-radius: 10px;
    border: 1px solid rgba(232,64,87,0.15);
}

.logo-icon-sm { width: 28px; height: 28px; border-radius: 8px; }

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}



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

.nav-links a {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px !important;
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 16, 0.7) 0%,
        rgba(10, 11, 16, 0.4) 40%,
        rgba(10, 11, 16, 0.85) 80%,
        var(--bg) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeUp 1s ease-out;
}

.hero-logo-mark {
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease-out;
}

.hero-logo-mark svg {
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-soft);
    border: 1px solid rgba(232, 64, 87, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(60, 210, 80, 0.5); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(60, 210, 80, 0); }
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-dim2);
    line-height: 1.7;
    margin-bottom: 36px;
    font-family: var(--mono);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.btn-ghost:hover {
    border-color: var(--text-dim2);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 48px;
    background: var(--border);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 50%;
    background: var(--accent);
    border-radius: 1px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%   { top: -50%; }
    100% { top: 150%; }
}

/* ── SECTIONS COMMON ───────────────────────────────────── */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

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

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(232,64,87,0.2);
    border-radius: 999px;
    background: var(--accent-soft);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* ── FEATURES GRID ─────────────────────────────────────── */
.features {
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-lo);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.feature-card:hover::before { opacity: 1; }

.card-highlight {
    background: linear-gradient(135deg, var(--surface), rgba(232,64,87,0.05));
    border-color: rgba(232,64,87,0.15);
}

.card-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags li {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
    color: var(--text-dim2);
    border: 1px solid rgba(255,255,255,0.04);
}

/* ── SHOWCASE / GALLERY ────────────────────────────────── */
.showcase {
    position: relative;
    z-index: 1;
    background: var(--bg2);
}

.showcase-gallery {
    max-width: 720px;
    margin: 0 auto;
}

.gallery-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(10,11,16,0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    border: 1px solid rgba(232,64,87,0.2);
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.gallery-btn {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all var(--transition);
}

.gallery-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transform: scale(1.2);
}

.dot:hover { background: var(--text-dim2); }

/* ── PRICING ───────────────────────────────────────────── */
.pricing {
    position: relative;
    z-index: 1;
}

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.price-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.price-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    padding: 5px 14px;
    border: 1px solid rgba(232,64,87,0.2);
    background: var(--accent-soft);
    border-radius: 999px;
    margin-bottom: 24px;
}

.price-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.price-amount {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dim);
}

.price-num {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 500;
}

.price-features {
    text-align: left;
    margin-bottom: 36px;
}

.price-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li:last-child { border-bottom: none; }

.check {
    color: var(--green);
    font-weight: 700;
    font-size: 16px;
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-lo);
    background: var(--bg);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-dim2);
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

/* ── ABOUT SECTION ─────────────────────────────────────── */
.about {
    position: relative;
    z-index: 1;
    background: var(--bg2);
    border-top: 1px solid var(--border-lo);
    border-bottom: 1px solid var(--border-lo);
}

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

.about-text .section-tag { margin-bottom: 20px; }
.about-text .section-title { text-align: left; margin-bottom: 20px; font-size: clamp(28px, 4vw, 40px); }

.about-desc {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-desc strong { color: var(--text); font-weight: 600; }

.about-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.point-icon {
    font-size: 20px;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    flex-shrink: 0;
}

.about-point strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about-point span {
    font-size: 13px;
    color: var(--text-dim2);
}

/* code block */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-lo);
}

.code-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.code-title {
    font-size: 12px;
    color: var(--text-dim2);
    font-family: var(--mono);
    margin-left: 8px;
}

.code-content {
    padding: 24px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dim);
    overflow-x: auto;
    margin: 0;
}

.code-content .kw { color: #c678dd; }
.code-content .fn { color: #61afef; }
.code-content .cm { color: #5c6370; font-style: italic; }
.code-content .num { color: #e5c07b; }

/* pricing logo */
.price-logo-mark {
    margin-bottom: 20px;
}

.price-logo-mark svg {
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.feature-card,
.pricing-card,
.showcase-gallery,
.about-grid {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.pricing-card.visible,
.showcase-gallery.visible,
.about-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger feature cards */
.feature-card:nth-child(1) { transition-delay: 0.0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .navbar { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .hero-stats { gap: 24px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-sub br { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .pricing-card { padding: 36px 24px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
}
