/* ==========================================================================
   GOOGLE FONTS IMPORT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

/* ==========================================================================
   ROOT DESIGN TOKENS (Premium Color Palette & Easing)
   ========================================================================== */
:root {
    /* Backgrounds & Surfaces */
    --bg-base:        #030305;
    --bg-surface:     #0a0a10;
    --bg-surface2:    #12121c;
    --bg-glass:       rgba(10, 10, 16, 0.6);
    
    /* Borders */
    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-focus:   rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --text-main:      #f0f2f8;
    --text-muted:     #8b949e;
    
    /* Neon Accents (Refined for better contrast) */
    --mint:           #00e5ff; /* Cyan-mint */
    --purple:         #b366ff;
    --orange:         #ff7e33;
    --pink:           #ff3385;
    --blue:           #3399ff;

    /* Radii */
    --radius-xl:      24px;
    --radius-lg:      18px;
    --radius-md:      12px;
    --radius-sm:      8px;

    /* Easing & Shadows */
    --ease-out:       cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-glass:   0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CSS HOUDINI (For performant gradient spinning)
   ========================================================================== */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   ANIMATED AMBIENT BACKGROUND MESH
   ========================================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, color-mix(in srgb, var(--mint) 8%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 20%,  color-mix(in srgb, var(--purple) 8%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 110%, color-mix(in srgb, var(--pink) 8%, transparent) 0%, transparent 60%);
    pointer-events: none;
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-2%, 2%); }
}

/* Cinematic Noise Grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.page-wrap { 
    position: relative; 
    z-index: 1; 
}

/* ==========================================================================
   HEADER (Glassmorphism)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--mint), var(--blue));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 24px color-mix(in srgb, var(--mint) 40%, transparent);
}

.logo-mark svg { width: 20px; height: 20px; fill: var(--bg-base); }

.logo-text em {
    font-style: normal;
    background: linear-gradient(90deg, var(--mint) 0%, var(--blue) 60%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text sup {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--mint);
    -webkit-text-fill-color: var(--mint);
    margin-left: 4px;
    opacity: 0.9;
    vertical-align: super;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 40px;
    background: color-mix(in srgb, var(--mint) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--mint) 25%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mint);
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent); }
    50%      { opacity: 0.4; box-shadow: 0 0 0 6px transparent; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 40px;
    background: color-mix(in srgb, var(--mint) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--mint) 20%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--mint);
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.6s var(--ease-out) both;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}

.hero h1 .g {
    background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}

/* Stats Ribbon */
.stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 40px;
    box-shadow: var(--shadow-glass);
    animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}

.stat-item {
    text-align: center;
    padding: 0 32px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--border-focus);
}

.stat-n {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-n b { color: var(--mint); }

.stat-l {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

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

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.sec-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sec-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-focus), transparent);
}

/* ==========================================================================
   PRO-MAX BUTTONS (Interactive Cards)
   ========================================================================== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.domain-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
    will-change: transform, box-shadow;
}

/* Structural inner wrapper */
.btn-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Animated Conic Glow (Hidden until hover) */
.domain-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 10%,
        var(--glow, var(--mint)) 30%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: spinAura 3s linear infinite paused;
    filter: blur(8px);
}

.domain-btn:hover::before {
    opacity: 0.7;
    animation-play-state: running;
}

@keyframes spinAura {
    to { --angle: 360deg; }
}

/* Card Surface Background */
.domain-btn .card-surface {
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    background: var(--bg-surface2);
    z-index: 1;
    transition: background 0.4s ease;
}

/* Dynamic Glass Shimmer */
.domain-btn .shimmer {
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.02) 55%,
        transparent 100%
    );
    transform: skewX(-20deg);
    z-index: 3;
    pointer-events: none;
    transition: left 0.8s var(--ease-out);
}

.domain-btn:hover .shimmer { left: 150%; }

/* Ambient Floor Glow Reflection */
.domain-btn .glow-floor {
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 1px;
    background: var(--glow, var(--mint));
    opacity: 0;
    filter: blur(4px);
    z-index: 3;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(2px);
}

.domain-btn:hover .glow-floor { 
    opacity: 0.6; 
    transform: translateY(0);
}

/* Top Edge Highlight */
.domain-btn .top-line {
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow, var(--mint)), transparent);
    opacity: 0.2;
    z-index: 4;
    transition: opacity 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.domain-btn:hover .top-line {
    opacity: 0.8;
    left: 10%; right: 10%;
}

/* Content Container */
.btn-content { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    position: relative; 
    z-index: 2; 
}

/* 3D Icon Box */
.icon-box {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--glow, var(--mint)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--glow, var(--mint)) 20%, transparent);
    color: var(--glow, var(--mint));
    transition: all 0.4s var(--ease-spring);
}

.domain-btn:hover .icon-box {
    background: var(--glow, var(--mint));
    color: var(--bg-base);
    border-color: transparent;
    box-shadow: 0 0 24px color-mix(in srgb, var(--glow, var(--mint)) 60%, transparent), 
                inset 0 4px 10px rgba(255,255,255,0.4);
    transform: scale(1.1) rotate(-4deg);
}

.domain-btn:hover .icon-box svg { 
    stroke: var(--bg-base); 
    position: relative; 
    z-index: 1; 
}

/* Text Layout */
.text-box { 
    display: flex; 
    flex-direction: column; 
}

.btn-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.btn-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.domain-btn:hover .btn-title { color: var(--glow, #fff); }
.domain-btn:hover .btn-desc { color: rgba(255,255,255,0.7); }

/* Category Tags */
.btn-chip {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--chip-bg, color-mix(in srgb, var(--mint) 10%, transparent));
    color: var(--glow, var(--mint));
    border: 1px solid var(--chip-border, color-mix(in srgb, var(--mint) 20%, transparent));
    width: fit-content;
}

/* Arrow Interaction */
.arrow-icon {
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.4s var(--ease-spring);
}

.domain-btn:hover .arrow-icon {
    color: var(--glow, var(--mint));
    transform: translateX(8px);
}

/* Card Hover Lift */
.domain-btn:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: color-mix(in srgb, var(--glow, var(--mint)) 40%, transparent);
    box-shadow: 
        0 24px 48px color-mix(in srgb, var(--glow, var(--mint)) 15%, transparent),
        0 8px 16px rgba(0,0,0,0.8);
}

.domain-btn:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: 0.1s;
}

/* ==========================================================================
   THEME VARIANTS (Data-driven colors)
   ========================================================================== */

/* Neon Mint */
.btn-primary {
    --glow: var(--mint);
    --chip-bg: color-mix(in srgb, var(--mint) 12%, transparent);
    --chip-border: color-mix(in srgb, var(--mint) 25%, transparent);
}
.btn-primary .card-surface {
    background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--mint) 8%, transparent) 0%, var(--bg-surface2) 80%);
}

/* Deep Purple */
.btn-mirror {
    --glow: var(--purple);
    --chip-bg: color-mix(in srgb, var(--purple) 12%, transparent);
    --chip-border: color-mix(in srgb, var(--purple) 25%, transparent);
}
.btn-mirror .card-surface {
    background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--purple) 8%, transparent) 0%, var(--bg-surface2) 80%);
}

/* Fire Orange */
.btn-hindi {
    --glow: var(--orange);
    --chip-bg: color-mix(in srgb, var(--orange) 12%, transparent);
    --chip-border: color-mix(in srgb, var(--orange) 25%, transparent);
}
.btn-hindi .card-surface {
    background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--orange) 8%, transparent) 0%, var(--bg-surface2) 80%);
}

/* Tokyo Pink */
.btn-web {
    --glow: var(--pink);
    --chip-bg: color-mix(in srgb, var(--pink) 12%, transparent);
    --chip-border: color-mix(in srgb, var(--pink) 25%, transparent);
}
.btn-web .card-surface {
    background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--pink) 8%, transparent) 0%, var(--bg-surface2) 80%);
}

/* Full Width Cyber Blue (Telegram Banner) */
.btn-telegram {
    --glow: var(--blue);
    --chip-bg: color-mix(in srgb, var(--blue) 12%, transparent);
    --chip-border: color-mix(in srgb, var(--blue) 25%, transparent);
    grid-column: 1 / -1;
}
.btn-telegram .card-surface {
    background: 
        radial-gradient(ellipse 60% 100% at 0% 50%, color-mix(in srgb, var(--blue) 12%, transparent) 0%, transparent 60%),
        var(--bg-surface2);
}
.btn-telegram .btn-inner { padding: 32px 40px; }
.btn-telegram .icon-box  { width: 64px; height: 64px; border-radius: var(--radius-lg); }
.btn-telegram .btn-title {
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Telegram Pulse Ring */
.btn-telegram .icon-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid var(--blue);
    opacity: 0;
    animation: iconPulseRing 2.5s ease-out infinite;
}
@keyframes iconPulseRing {
    0%   { opacity: 0; transform: scale(0.9); }
    40%  { opacity: 0.6; }
    100% { opacity: 0; transform: scale(1.6); }
}

/* ==========================================================================
   SEO CONTENT SECTIONS
   ========================================================================== */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.seo-section {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

/* Colored Accent Bar */
.seo-section::before {
    content: '';
    position: absolute;
    top: 32px; left: 0;
    width: 4px;
    height: calc(100% - 64px);
    background: var(--accent, var(--mint));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px var(--accent, var(--mint));
}

.seo-section h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent, var(--mint));
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-focus);
    line-height: 1.3;
}

.seo-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 10px;
}

.seo-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-section p:last-child { margin-bottom: 0; }

.keyword-cluster {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.keyword-cluster p {
    margin: 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--text-muted) 80%, transparent);
    line-height: 2.2;
    word-spacing: 4px;
}

.keyword-cluster b {
    color: #a3b8cc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* SEO Theme Hooks */
.s-mint   { --accent: var(--mint); }
.s-purple { --accent: var(--purple); }
.s-orange { --accent: var(--orange); }
.s-blue   { --accent: var(--blue); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-surface);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

footer p {
    font-size: 13px;
    color: color-mix(in srgb, var(--text-muted) 70%, transparent);
    line-height: 1.8;
}

/* ==========================================================================
   SCROLL REVEAL UTILITY
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.in { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ==========================================================================
   RESPONSIVE DESIGN (Flawless Scaling)
   ========================================================================== */
@media (max-width: 1100px) {
    .link-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 0 24px; }
    .container { padding: 0 24px 60px; }
    .stats { padding: 20px 24px; }
    .stat-item { padding: 0 20px; }
}

@media (max-width: 640px) {
    header { height: 64px; }
    .logo  { font-size: 18px; }
    .logo-mark { width: 34px; height: 34px; }
    .live-badge { font-size: 10px; padding: 4px 12px; }

    .hero { padding: 60px 16px 40px; }
    .stats { width: 100%; border-radius: var(--radius-lg); flex-wrap: wrap; gap: 16px; }
    .stat-item { border: none !important; width: 50%; padding: 0; }
    .stat-n { font-size: 24px; }

    .link-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .domain-btn .btn-inner { padding: 20px; }
    .icon-box  { width: 50px; height: 50px; border-radius: var(--radius-sm); }
    .btn-title { font-size: 16px; }
    .btn-desc  { font-size: 12.5px; }
    .btn-chip  { display: none; } /* Kept hidden on mobile for cleaner UI */

    .btn-telegram .btn-inner { padding: 24px 20px; }
    .btn-telegram .btn-title { font-size: 16px; }
    .btn-telegram .icon-box  { width: 54px; height: 54px; }

    .seo-section { padding: 32px 24px; }
    .seo-section h2 { font-size: 18px; }

    /* Performance optimization: Disable heavy backdrop filters & conic aura on low-end/mobile */
    .domain-btn::before { display: none; }
    header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 28px; }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) { display: none; } /* Space saving trick */
}