:root {
    --bg-dark: #0a0514;
    --primary-color: #8a2be2;
    --secondary-color: #ffb703;
    --text-main: #f0ecfc;
    --text-muted: #b8b0cf;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, .logo, .badge, .zodiac-circle {
    font-family: 'Cinzel', serif;
}

/* Background Canvas Layer */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(10, 5, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
    letter-spacing: 1px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 400;
}

nav a:hover {
    color: var(--primary-color);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-primary-small {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), #5e17eb);
    color: white;
}

.cta-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #5e17eb);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.cta-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary-color);
    font-size: 1rem;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.cta-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 2rem 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a291cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Glasscard & Floating Animation */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Mystical orb behind card */
.hero-image-container::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    opacity: 0.25;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glass-card {
    background: rgba(25, 12, 45, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 1;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.zodiac-circle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 6px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.chat-sim {
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.2rem;
    border-radius: 15px 15px 15px 4px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #e2d5f8;
}

.chat-sim-reply {
    background: linear-gradient(135deg, rgba(138,43,226,0.15), rgba(94,23,235,0.05));
    border: 1px solid rgba(138,43,226,0.3);
    padding: 1rem 1.2rem;
    border-radius: 15px 15px 4px 15px;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

.features h2 {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.glass-panel {
    background: rgba(30, 15, 50, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    background: rgba(45, 25, 75, 0.5);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.3));
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.cta-section .glass-panel {
    text-align: center;
    max-width: 850px;
    width: 100%;
    padding: 4rem 2rem;
}

.glowing-border {
    position: relative;
    overflow: hidden;
}

.glowing-border::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, var(--primary-color), transparent 40%);
    animation: rotate 6s linear infinite;
    z-index: -1;
}

.glowing-border::after {
    content: '';
    position: absolute;
    inset: 1px; /* border thickness */
    background: #0d061c;
    border-radius: 23px; /* Slightly less than the wrapper to fit precisely */
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(1turn); }
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.large-cta {
    display: block;
    width: 100%;
    max-width: 350px;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.telegram-btn {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid #0088cc;
    color: #33b5e5;
    box-shadow: none;
}

.telegram-btn:hover {
    background: rgba(0, 136, 204, 0.2);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
    border-color: #33b5e5;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    background: rgba(10, 5, 20, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 5rem;
        gap: 2rem;
    }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }
    .hero h1 { font-size: 2.6rem; }
    .hero-buttons { justify-content: center; }
    .hero-content { margin-bottom: 2rem; }
    nav { display: none; }
    .features h2 { font-size: 2.2rem; }
    .cta-section h2 { font-size: 2rem; }
}
