/* Gatern.mom Premium Magical Styling */

:root {
    --bg-dark: #030014;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(168, 85, 247, 0.3);
    
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.5);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.5);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-glow: #ffffff;
    
    --transition-speed: 0.3s;
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor Tail Canvas */
#trailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Glows */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

/* Glassmorphism Card base */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.15);
}

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

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.7);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.7);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: opacity var(--transition-speed);
}

.btn-glow:hover::after {
    opacity: 0.9;
}

.full-width {
    width: 100%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(3, 0, 20, 0.9);
    border-bottom-color: rgba(168, 85, 247, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .dot {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

.gatern-logo {
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(168,85,247,0.4)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(6,182,212,0.8)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.magic-portal-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.portal-svg {
    width: 100%;
    height: 100%;
}

.rot-clockwise {
    transform-origin: center;
    animation: rotateCW 60s linear infinite;
}

.rot-counter {
    transform-origin: center;
    animation: rotateCCW 45s linear infinite;
}

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

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

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    color: #d8b4fe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
}

/* Glass Dashboard Mockup */
.main-dashboard {
    width: 100%;
    padding: 24px;
    background: rgba(10, 5, 30, 0.6);
    border-color: rgba(168, 85, 247, 0.15);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.1) inset;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #eab308; }
.dash-dot.green { background: #22c55e; }

.dash-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34,197,94, 0.4);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% { box-shadow: 0 0 0 0px rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0px rgba(34, 197, 94, 0); }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4ade80;
}

.ping-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    padding-bottom: 4px;
}

.ping-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    height: var(--h);
    border-radius: 4px 4px 0 0;
    transition: background 0.3s;
}

.ping-bar.active {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.speed-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.meta-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.meta-box .lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-box .val {
    font-size: 1.1rem;
    font-weight: 700;
}

.cyan-glow { color: var(--secondary); text-shadow: 0 0 8px var(--secondary-glow); }
.purple-glow { color: var(--primary); text-shadow: 0 0 8px var(--primary-glow); }

.dash-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dash-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(6, 182, 212, 0.35));
    border-color: var(--secondary);
    box-shadow: 0 5px 25px rgba(6, 182, 212, 0.25);
}

/* Features Grid */
.features-section, .pricing-section, .articles-section, .testimonials-section, .faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

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

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Pricing Switch */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.discount-badge {
    padding: 3px 8px;
    background: #eab308;
    color: #030014;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.25);
    transform: translateY(-8px);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 45px -10px rgba(168, 85, 247, 0.4);
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.price-box {
    display: flex;
    align-items: baseline;
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.price-box .price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.price-box .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li span {
    color: var(--secondary);
    font-weight: 700;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-features li.disabled span {
    color: #ef4444;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-thumb {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.article-thumb svg {
    max-width: 80px;
    max-height: 80px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumb svg {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

.article-meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-card h3 a:hover {
    color: var(--secondary);
}

.article-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.read-more:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.user-info h4 {
    font-size: 1.05rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rating {
    color: #eab308;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.comment {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-main);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    cursor: pointer;
    padding: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    transition: transform var(--transition-speed);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding-top 0.3s;
    padding-top: 0;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* FAQ Active State */
.faq-item.active {
    border-color: var(--secondary-glow);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-top: 16px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), padding-top 0.3s;
}

/* Footer Section */
footer {
    background: #02000d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-logo {
    animation: rotateCW 30s linear infinite;
}

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

/* PBN Connections - Clean & DoFollow */
.pbn-links {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.pbn-label {
    opacity: 0.9;
    color: #fff;
    font-weight: 600;
}

.pbn-links a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

.pbn-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.pbn-links .divider {
    opacity: 0.2;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(3, 0, 20, 0.95);
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
