/* ========================================
   SONORA - Modern Website Stilleri v2.0
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --purple: #7C5CFC;
    --purple-light: #9B7FFF;
    --purple-dark: #5A3FD4;
    --orange: #FF8C42;
    --orange-light: #FFB380;
    --pink: #FF6B9D;
    --dark: #0D0D1A;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --glow-purple: rgba(124, 92, 252, 0.4);
    --glow-orange: rgba(255, 140, 66, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0D0D1A 0%, #1A0F2E 50%, #0D1A2E 100%);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,92,252,0.3), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,140,66,0.2), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

.orb3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,157,0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   LIVE STATS
   ======================================== */

/* Status Bar */
.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 10px 22px;
    margin-top: 24px;
    backdrop-filter: blur(20px);
    font-size: 0.85em;
    color: var(--text-secondary);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
    transition: background 0.3s;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

.status-dot.offline {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.status-divider { color: var(--text-muted); }
.status-uptime  { color: #4ade80; font-weight: 600; }

/* Live Stats Section */
.live-stats {
    margin-bottom: 50px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,92,252,0.15);
    border: 1px solid rgba(124,92,252,0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--purple-light);
    margin-bottom: 20px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f87171;
    animation: blink 1s ease-in-out infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--orange));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::after { opacity: 1; }

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    border-color: rgba(124,92,252,0.35);
    box-shadow: 0 12px 30px rgba(124,92,252,0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 1.8em;
    margin-bottom: 10px;
    display: block;
}

.stat-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.stat-number {
    font-size: 1.9em;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Progress Bar */
.stat-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--orange));
    border-radius: 2px;
    transition: width 1s ease;
}

/* Refresh text */
.stats-refresh {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78em;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number { font-size: 1.5em; }
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    text-align: center;
    margin-bottom: 60px;
}

/* Logo */
.logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 36px;
}

.logo-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    border: 3px solid rgba(255,255,255,0.15);
    animation: logoBreath 4s ease-in-out infinite;
}

.logo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
                linear-gradient(135deg, var(--purple), var(--orange)) border-box;
    animation: ringRotate 6s linear infinite;
    z-index: 2;
}

.ring2 {
    inset: -22px;
    border-width: 1px;
    animation: ringRotate 10s linear infinite reverse;
    opacity: 0.5;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-purple), transparent 70%);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Hero Text */
.hero-text {
    margin-bottom: 40px;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.title-main {
    font-size: 4em;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1;
    animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.title-badge {
    font-size: 0.35em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 2px;
    -webkit-text-fill-color: white;
    animation: badgePulse 2s ease-in-out infinite;
    align-self: center;
    margin-bottom: 10px;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--glow-purple); }
    50% { box-shadow: 0 0 20px 5px var(--glow-purple); }
}

.tagline {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1em;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
}

/* Stats */
.stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item {
    text-align: center;
    padding: 0 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.6s; }
.stat-item.visible { opacity: 1; }

.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.feature-card:hover::before { opacity: 0.1; }

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 92, 252, 0.4);
    box-shadow: 0 20px 40px rgba(124,92,252,0.2);
}

.feature-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.feature-card h3 {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.78em;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 60px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    box-shadow: 0 8px 30px var(--glow-purple);
}

.btn-primary::before {
    background: linear-gradient(135deg, var(--purple-light), var(--orange-light));
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--glow-purple), 0 0 60px var(--glow-orange);
}

/* Secondary Button */
.btn-secondary {
    background: var(--card-bg);
    border-color: var(--card-border);
    backdrop-filter: blur(20px);
}

.btn-secondary::before {
    background: rgba(255,255,255,0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(124,92,252,0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Btn Icon */
.btn-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.btn-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.78em;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.btn-arrow {
    font-size: 1.3em;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
    color: #fff;
}

/* Ghost buttons row */
.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border) !important;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(124,92,252,0.4) !important;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    font-size: 1.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 12px;
}

.footer-copy strong {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82em;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-links span {
    color: var(--text-muted);
}

/* ========================================
   INNER PAGES (terms & privacy)
   ======================================== */

.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.back-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(-4px);
    text-decoration: none;
}

.page-title {
    font-size: 2.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1.2;
}

.last-update {
    color: var(--text-muted);
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-update::before {
    content: '🕐';
}

/* Content Card */
.content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 48px;
    backdrop-filter: blur(20px);
    margin-bottom: 30px;
}

.content h2 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--purple-light);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.content h2:first-child {
    margin-top: 0;
}

.content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    border-radius: 2px;
    flex-shrink: 0;
}

.content p {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 14px;
    line-height: 1.75;
}

.content ul {
    margin-left: 0;
    margin-bottom: 14px;
    list-style: none;
}

.content ul li {
    color: var(--text-secondary);
    font-size: 0.95em;
    padding: 8px 12px 8px 36px;
    position: relative;
    border-radius: 8px;
    transition: background 0.2s ease;
    line-height: 1.5;
}

.content ul li::before {
    content: '▸';
    position: absolute;
    left: 14px;
    color: var(--purple-light);
    font-size: 0.9em;
}

.content ul li:hover {
    background: rgba(255,255,255,0.03);
}

.content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content a {
    color: var(--purple-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(155,127,255,0.3);
    transition: all 0.2s ease;
}

.content a:hover {
    color: var(--orange-light);
    border-bottom-color: var(--orange-light);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 700px) {
    .container { padding: 40px 16px 30px; }

    .title-main { font-size: 2.8em; }
    
    .stats {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .stat-item { padding: 0 16px; }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-row {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 28px 22px;
    }

    .page-title { font-size: 1.8em; }
}

@media (max-width: 400px) {
    .title-main { font-size: 2.2em; }
    .features { grid-template-columns: 1fr 1fr; }
}