/* ==========================================
   shizengakari bot — Premium Design System v2
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #8b5cf6;
    --primary-rgb: 139, 92, 246;
    --primary-dark: #7c3aed;
    --primary-light: #c4b5fd;
    --accent: #f472b6;
    --accent-rgb: 244, 114, 182;
    --secondary: #06b6d4;
    --secondary-rgb: 6, 182, 212;
    --success: #34d399;
    --success-rgb: 52, 211, 153;
    --warning: #fbbf24;
    --error: #f87171;

    --bg-base: #06080f;
    --bg-surface: #0c1021;
    --bg-card: rgba(12, 16, 33, 0.7);
    --bg-card-hover: rgba(20, 26, 50, 0.85);
    --bg-elevated: rgba(20, 28, 55, 0.6);

    --text-primary: #eeeef3;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;

    --border-subtle: rgba(139, 92, 246, 0.06);
    --border-default: rgba(139, 92, 246, 0.1);
    --border-hover: rgba(139, 92, 246, 0.35);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.1);
    --shadow-glow-lg: 0 0 80px rgba(var(--primary-rgb), 0.12), 0 0 160px rgba(var(--primary-rgb), 0.04);

    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --transition-base: 300ms cubic-bezier(.16, 1, .3, 1);
    --transition-slow: 500ms cubic-bezier(.16, 1, .3, 1);
    --transition-spring: 600ms cubic-bezier(.34, 1.56, .64, 1);

    --blur: 16px;
    --blur-lg: 24px;

    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle noise grain overlay for premium texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.4);
}

/* Selection */
::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: #fff;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    z-index: 10000;
    transition: none;
}

/* ---------- Utility ---------- */
.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.text-center {
    text-align: center;
}

.bg-surface {
    background: var(--bg-surface);
}

/* ---------- Layout ---------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1), filter 0.9s ease;
    filter: blur(4px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1), filter 0.9s ease;
    filter: blur(4px);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1), filter 0.9s ease;
    filter: blur(4px);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Scale up reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-delay-1,
.delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2,
.delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3,
.delay-3 {
    transition-delay: 0.36s;
}

.delay-4 {
    transition-delay: 0.48s;
}

.delay-5 {
    transition-delay: 0.6s;
}

/* Stagger children reveal */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1), filter 0.7s ease;
    filter: blur(3px);
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.06s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.30s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.36s; }
.stagger-reveal.visible > *:nth-child(7) { transition-delay: 0.42s; }
.stagger-reveal.visible > *:nth-child(8) { transition-delay: 0.48s; }

.stagger-reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 8, 15, 0.3);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(.16, 1, .3, 1);
}

.main-nav.scrolled {
    background: rgba(6, 8, 15, 0.95);
    border-bottom-color: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(var(--primary-rgb), 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    gap: 10px;
    transition: all var(--transition-base);
}

.logo:hover {
    opacity: 0.85;
    color: var(--text-primary);
}

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

.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.2);
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover::after {
    width: 60%;
}

.nav-item.active {
    color: var(--primary-light);
}

.nav-item.active::after {
    width: 60%;
}

.nav-item.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 16px rgba(var(--primary-rgb), 0.35);
    transition: all var(--transition-spring);
}

.nav-item.highlight::after {
    display: none;
}

.nav-item.highlight:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
    color: white;
}

.nav-hover-effect {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================
   HERO SECTION — Dramatic Minimalist Design
   ========================================================== */
/* ========== HERO — Premium Cinematic ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-4xl);
    background: #030508;
}

/* --- Aurora gradient mesh --- */
.hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    animation: auroraFadeIn 2s ease-out forwards;
}

.hero-aurora-1 {
    width: 130%;
    height: 70%;
    top: -30%;
    left: -20%;
    background: conic-gradient(from 180deg at 50% 50%,
        rgba(139, 92, 246, 0.25) 0deg,
        rgba(6, 182, 212, 0.12) 120deg,
        rgba(244, 114, 182, 0.18) 240deg,
        rgba(139, 92, 246, 0.25) 360deg);
    animation: auroraFadeIn 2s ease-out forwards, auroraDrift1 25s ease-in-out infinite 2s;
}

.hero-aurora-2 {
    width: 80%;
    height: 60%;
    bottom: -20%;
    right: -10%;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(244, 114, 182, 0.15) 0deg,
        rgba(139, 92, 246, 0.2) 140deg,
        rgba(52, 211, 153, 0.1) 280deg,
        rgba(244, 114, 182, 0.15) 360deg);
    animation: auroraFadeIn 2.5s ease-out 0.3s forwards, auroraDrift2 30s ease-in-out infinite 2.5s;
}

.hero-aurora-3 {
    width: 50%;
    height: 50%;
    top: 20%;
    left: 25%;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.08), rgba(139, 92, 246, 0.12), transparent 70%);
    animation: auroraFadeIn 3s ease-out 0.6s forwards, auroraPulse 20s ease-in-out infinite 3s;
}

@keyframes auroraFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(40px, 20px) rotate(3deg) scale(1.05); }
    50% { transform: translate(-20px, -10px) rotate(-2deg) scale(0.97); }
    75% { transform: translate(15px, -25px) rotate(1deg) scale(1.03); }
}

@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-50px, 20px) rotate(-3deg) scale(1.06); }
    66% { transform: translate(30px, -15px) rotate(2deg) scale(0.95); }
}

@keyframes auroraPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* --- Perspective grid --- */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    opacity: 0;
    animation: gridReveal 3s ease-out 0.5s forwards;
}

@keyframes gridReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Atmospheric orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 700px;
    height: 700px;
    top: -25%;
    left: -10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15), transparent 70%);
    filter: blur(100px);
    animation: orbFloat1 28s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 70%);
    filter: blur(120px);
    animation: orbFloat2 32s ease-in-out infinite;
}

.hero-orb-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.08), transparent 70%);
    filter: blur(100px);
    animation: orbFloat3 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 25px) scale(0.97); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-45px, 35px) scale(1.06); }
    66% { transform: translate(35px, -20px) scale(0.94); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, -30px) scale(1.08); }
}

/* --- Film grain noise --- */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* --- Vignette --- */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 15%, rgba(3, 5, 8, 0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- Particle canvas --- */
#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Hero content --- */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Floating bot icon showcase --- */
.hero-icon-showcase {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: heroIconReveal 1.2s cubic-bezier(.16, 1, .3, 1) 0.1s forwards;
}

.hero-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 26%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    animation: iconFloat 6s ease-in-out infinite;
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.25);
}

.hero-icon-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3), transparent 70%);
    filter: blur(20px);
    z-index: 0;
    animation: iconGlowPulse 4s ease-in-out infinite;
}

.hero-icon-ring {
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    z-index: 1;
    animation: iconRingSpin 20s linear infinite;
}

.hero-icon-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
    transform: translateX(-50%);
}

.hero-icon-ring-2 {
    inset: -30%;
    border-color: rgba(var(--accent-rgb), 0.08);
    animation: iconRingSpin 30s linear infinite reverse;
}

.hero-icon-ring-2::before {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes iconGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes iconRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroIconReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.7);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* --- Eyebrow --- */
.hero-eyebrow {
    font-size: clamp(0.78rem, 1.2vw, 0.9rem);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: heroFadeIn 0.8s ease-out 0.3s forwards;
}

/* --- Title --- */
.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    animation: heroTextReveal 1s cubic-bezier(.16, 1, .3, 1) 0.5s forwards;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* --- Highlight character 彩 --- */
.hero-title .highlight-char {
    display: inline-block;
    font-size: 1.15em;
    vertical-align: baseline;
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1), filter 0.3s ease;
    animation: iroGradientCycle 8s ease-in-out infinite;
    position: relative;
}

.hero-title .highlight-char::after {
    content: '彩';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: blur(14px);
    opacity: 0.45;
    z-index: -1;
    animation: iroGradientCycle 8s ease-in-out infinite;
}

.hero-title .highlight-char:hover {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 0 36px rgba(var(--accent-rgb), 0.5));
}

.hero-title .highlight-char:active,
.hero-title .highlight-char.iro-clicked {
    transform: scale(0.9);
    filter: brightness(1.5) drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.8));
    transition: transform 0.1s ease, filter 0.1s ease;
}

/* --- Subtitle --- */
.hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    letter-spacing: 0.06em;
    opacity: 0;
    animation: heroFadeIn 0.8s ease-out 0.7s forwards;
}

/* --- Feature pills --- */
.hero-pills {
    display: none;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-pill:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.hero-pill-icon {
    font-size: 0.85rem;
}

/* --- Hero CTA button --- */
.btn-hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 300%;
    animation: heroBtnGradient 6s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.2), 0 0 0 0 rgba(var(--primary-rgb), 0);
}

.btn-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.35), 0 0 60px rgba(var(--primary-rgb), 0.1);
}

.btn-hero-bg {
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: rgba(3, 5, 8, 0.85);
    z-index: 0;
    transition: background 0.3s ease;
}

.btn-hero-cta:hover .btn-hero-bg {
    background: rgba(3, 5, 8, 0.7);
}

.btn-hero-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.02em;
}

.btn-hero-label svg {
    transition: transform 0.3s ease;
}

.btn-hero-cta:hover .btn-hero-label svg {
    transform: translateX(3px);
}

@keyframes heroBtnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Hero actions --- */
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    opacity: 0;
    animation: heroFadeIn 0.8s ease-out 0.9s forwards;
}

/* --- Text link --- */
.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease, gap 0.3s ease;
    position: relative;
}

.hero-text-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transition: width 0.4s cubic-bezier(.16, 1, .3, 1);
}

.hero-text-link:hover {
    color: var(--text-primary);
    gap: 10px;
}

.hero-text-link:hover::after {
    width: 100%;
}

/* --- Scroll indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    animation: heroFadeIn 0.6s ease-out 1.3s forwards;
}

.hero-scroll-text {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(var(--primary-rgb), 0.4);
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.4), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* --- Entrance animations --- */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-spring);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Magnetic button effect */
.btn-magnetic {
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% auto;
    color: white;
    box-shadow:
        0 4px 24px rgba(var(--primary-rgb), 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(.16, 1, .3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 16px 40px rgba(var(--accent-rgb), 0.35),
        0 4px 15px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    background-position: right center;
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* Base style for premium sparkle particles */
.iro-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(var(--primary-rgb), 0.08);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}


/* Text shuffle/reveal animation for non-numeric stats */
.stat-text-anim {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.stat-text-anim::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    color: transparent;
    z-index: 1;
}

.stat-text-anim.animate::before {
    animation: textRevealSwipe 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textRevealSwipe {
    0% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

.stat-text-anim.animate {
    animation: textPopFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes textPopFade {
    0% { opacity: 0; transform: scale(0.95) translateY(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-sm);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Section divider line — animated width on scroll reveal */
.section-divider {
    max-width: 60px;
    height: 2px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.25);
}

/* Subtle section separator */
.section + .section::before {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-rgb), 0.2), transparent);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.35;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.95rem;
}

.about-text .about-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    padding: 8px 0;
    position: relative;
}

.about-text .about-cta::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(.16, 1, .3, 1);
}

.about-text .about-cta:hover {
    gap: 14px;
    color: var(--accent);
}

.about-text .about-cta:hover::after {
    width: 100%;
}

.about-stats-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

/* Gradient border glow on hover */
.stat-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(var(--primary-rgb), 0.4), rgba(var(--accent-rgb), 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Inner glow on hover */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 80%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.stat-card:hover::after {
    opacity: 1;
}

.stat-card .stat-icon {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
    transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 3.5ch;
    text-align: center;
}

.stat-card .stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ==========================================================
   FEATURES — Tab-based design
   ========================================================== */
.features-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.features-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.features-tab:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.04);
}

.features-tab.active {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-light);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.08);
}

.features-panel {
    display: none;
    animation: panelFadeIn 0.5s cubic-bezier(.16, 1, .3, 1);
}

.features-panel.active {
    display: block;
}

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

.features-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

/* Animated gradient line at top */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: featureLineShift 4s linear infinite paused;
}

.feature-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes featureLineShift {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Inner spotlight effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.feature-card:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.feature-card:hover .feature-card-icon {
    background: rgba(var(--primary-rgb), 0.14);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* ==========================================================
   CTA BANNER (index bottom)
   ========================================================== */
.cta-banner {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.06), rgba(var(--accent-rgb), 0.04));
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease;
}

.cta-banner:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Animated rotating gradient border */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--cta-angle, 0deg), transparent, rgba(var(--primary-rgb), 0.3), transparent, rgba(var(--accent-rgb), 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ctaBorderRotate 8s linear infinite;
}

@keyframes ctaBorderRotate {
    to { --cta-angle: 360deg; }
}

@property --cta-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Ambient inner glow */
.cta-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaGlowPulse 6s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.cta-banner h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.cta-banner .btn-primary {
    flex-shrink: 0;
}

/* ==========================================================
   PRICING
   ========================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

/* Gradient border effect on pricing card */
.pricing-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-header {
    margin-bottom: var(--space-xl);
}

.pricing-header h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.price span {
    font-size: 1rem;
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.92rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.pricing-button.disabled {
    pointer-events: none;
}

.compare-button-container {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.compare-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
}

.compare-button:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
}

.badge-free {
    background: var(--success);
    color: white;
}

.badge-stopped {
    background: var(--error);
    color: white;
}

/* Quick payment guide */
.quick-payment-guide {
    margin-top: var(--space-3xl);
}

.quick-payment-guide h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.quick-payment-steps {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding-left: 40px;
}

.quick-payment-steps::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.quick-payment-steps li {
    position: relative;
    padding: var(--space-lg) 0 var(--space-lg) var(--space-xl);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.quick-payment-steps li .step-icon {
    position: absolute;
    left: -32px;
    top: var(--space-lg);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
}

/* PARTNER Section */
.partner-plan-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-top: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partner-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.partner-plan-icon {
    font-size: 1.5rem;
}

.partner-plan-content h3 {
    font-size: 1.4rem;
    text-align: center;
}

.partner-plan-content > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.partner-conditions-wrapper,
.partner-notice-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-subtle);
    margin-bottom: var(--space-xl);
}

.partner-notice-wrapper h4 {
    margin-bottom: var(--space-md);
    color: var(--warning);
}

.partner-condition-list li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.partner-notice-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    color: var(--text-secondary);
}

/* Notice banners */
.notice-banner {
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.main-footer {
    background: linear-gradient(180deg, var(--bg-base) 0%, #040610 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), transparent);
    pointer-events: none;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-weight: 700;
    font-size: 1rem;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-links-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-links-group li {
    margin-bottom: var(--space-sm);
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all var(--transition-base);
    position: relative;
}

.footer-link:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(var(--primary-rgb), 0.06);
    padding-top: var(--space-xl);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-copyright-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    color: var(--text-muted);
    transition: all var(--transition-spring);
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

/* ==========================================================
   SUBPAGE HERO
   ========================================================== */
.page-hero {
    padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
    background: var(--bg-base);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 350px at 30% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 70% 30%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Vignette for subpage hero too */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(4, 6, 12, 0.6) 100%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    animation: heroFadeIn 0.6s ease-out 0.1s both;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    animation: heroFadeIn 0.6s ease-out 0.25s both;
}

.page-hero .section-divider {
    margin: var(--space-md) auto;
    animation: heroFadeIn 0.6s ease-out 0.15s both;
}

/* ==========================================================
   PAGE TRANSITION
   ========================================================== */
.page-transition {
    animation: fadeInUp 0.5s cubic-bezier(.16, 1, .3, 1);
}

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

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(12, 16, 33, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: 2px;
        transition: right var(--transition-slow);
        z-index: 999;
        border-left: 1px solid rgba(var(--primary-rgb), 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    .nav-item::after {
        display: none;
    }

    .nav-item.highlight {
        text-align: center;
        justify-content: center;
        margin-top: var(--space-md);
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 92vh;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
        white-space: normal;
    }

    .hero-icon-showcase {
        width: 85px;
        height: 85px;
    }

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

    .about-stats-col {
        grid-template-columns: 1fr 1fr;
    }

    .features-card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-2xl);
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2.2rem);
        white-space: normal;
    }

    .hero-title .highlight-char {
        font-size: 1.1em;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .hero-icon-showcase {
        width: 72px;
        height: 72px;
        margin-bottom: var(--space-xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-hero-cta {
        width: 100%;
    }

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

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .about-stats-col {
        grid-template-columns: 1fr;
    }

    .features-tabs {
        gap: 6px;
    }

    .features-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

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

    .cta-banner .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   LEGAL PAGES (shared: terms, privacy, payment)
   ========================================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* Sidebar TOC */
.legal-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
    align-self: start;
    max-height: calc(100vh - var(--nav-height) - var(--space-2xl));
    overflow-y: auto;
    padding-right: var(--space-md);
}

.legal-sidebar h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.legal-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-sidebar li a {
    display: block;
    padding: 7px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: all var(--transition-base);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-sidebar li a:hover,
.legal-sidebar li a.active {
    color: var(--primary-light);
    border-left-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Main Content */
.legal-content {
    min-width: 0;
}

.legal-content .updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
    margin-bottom: var(--space-2xl);
    scroll-margin-top: calc(var(--nav-height) + var(--space-xl));
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-left: var(--space-md);
    border-left: 3px solid var(--primary);
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--space-sm);
}

.legal-section ul,
.legal-section ol {
    margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
    padding: 0;
}

.legal-section ul {
    list-style: disc;
}

.legal-section ol {
    list-style: decimal;
}

.legal-section li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding: 3px 0;
}

/* Data category cards (privacy page) */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.data-card:hover {
    border-color: rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
}

.data-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-card ul {
    list-style: disc;
    margin: 0 0 0 var(--space-lg);
    padding: 0;
}

.data-card li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 2px 0;
}

/* Related Links */
.related-links {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.related-links h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.related-btns {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.related-btns a {
    display: inline-flex;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition-spring);
}

.related-btns a:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.08);
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(145deg, rgba(var(--success-rgb), 0.08), rgba(var(--success-rgb), 0.04));
    border: 1px solid rgba(var(--success-rgb), 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.notice-banner h3 {
    color: var(--success);
    margin-bottom: var(--space-xs);
    font-size: 1.15rem;
}

.notice-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: rgba(12, 16, 33, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-spring);
    z-index: 50;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
}

/* Legal Responsive */
@media (max-width: 768px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

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

/* ==========================================================
   PREMIUM EFFECTS
   ========================================================== */

/* Glow card - reusable premium card effect */
.glow-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-spring);
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), transparent 40%, transparent 60%, rgba(var(--accent-rgb), 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-anim {
    animation: float 5s ease-in-out infinite;
}

/* Gradient border animation */
@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scale in animation */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Slide in from left */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slide in from right */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1); }
    50% { box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.2); }
}

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

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        filter: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================
   CURSOR GLOW EFFECT
   ========================================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.cursor-glow.active {
    opacity: 1;
}
