@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-color: #1a1b26;
    --primary-glow: #9f7aea;
    --secondary-glow: #f06292;
    --text-color: #e0e0e8;
    --text-muted: #a0a0c0;
    --card-bg: rgba(42, 39, 66, 0.6);
    --border-color: rgba(159, 122, 234, 0.2);
    --border-hover: rgba(159, 122, 234, 0.7);
    --gradient-text: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    --primary-accent: #8c66d3;
    --secondary-accent: #2a2742;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* New Animated Background */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(159, 122, 234, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(159, 122, 234, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: scroll-grid 10s linear infinite;
    z-index: -2;
}

@keyframes scroll-grid {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

.glow-sphere {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.1) 0%, transparent 60%); /* Reduced opacity */
    transform: translate(-50%, -50%);
    animation: pulse-sphere 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-sphere {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.tech-platform {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Navigation */
.platform-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-actions .btn {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
}

.nav-actions .btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.nav-actions .btn-secondary:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.nav-actions .btn-primary {
    background: var(--primary-accent);
    color: white;
    margin-left: 10px;
}

.nav-actions .btn-primary:hover {
    opacity: 0.9;
}


/* Header */
.platform-header {
    text-align: center;
    margin-bottom: 60px;
}

.platform-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content Container */
.platform-container {
    display: grid;
    gap: 40px; /* Increased gap */
}

.grid-row-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Key Features Section */
.key-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.feature-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-glow);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

/* Scroll Animation */
.card, .feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.card.visible, .feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* General Card Styling */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(159, 122, 234, 0.15); /* Reduced border opacity */
    border-radius: 16px;
    padding: 32px; /* Slightly adjusted padding */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(159, 122, 234, 0.2);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.card-header h2 i {
    color: var(--primary-glow);
}

/* Hero Section */
.hero-section {
    padding: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.2rem; /* Slightly reduced size */
    margin-bottom: 15px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item { text-align: center; }
.stat-item i { color: var(--primary-glow); font-size: 1.8rem; margin-bottom: 8px; display: block; }
.stat-number { display: block; font-size: 1.8rem; font-weight: bold; }
.stat-label { display: block; font-size: 0.9rem; color: var(--text-muted); }

.hero-visual {
    animation: cardFloat 3.5s ease-in-out infinite;
}

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

.api-demo { background: #0d1117; border-radius: 8px; overflow: hidden; border: 1px solid #30363d; }
.terminal-header { background: #161b22; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27ca3f; }
.terminal-title { color: #8b949e; font-size: 0.9rem; }
.terminal-body { padding: 15px; font-family: 'Courier New', monospace; font-size: 0.9rem; }
.code-line { margin-bottom: 8px; }
.code-prompt { color: #58a6ff; margin-right: 8px; }
.code-text { color: #e6edf3; }
.code-response { color: #56d364; }

/* Info Box */
.info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.info-icon { font-size: 2.5rem; color: var(--primary-glow); text-align: center; }
.info-content h3 { margin: 0 0 10px 0; font-size: 1.3rem; text-align: center; }
.info-content p { margin: 5px 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.model-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-8px);
    background-color: rgba(159, 122, 234, 0.1);
}

.model-icon {
    width: 60px; height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}
.model-icon.claude { background: #d15a00; }
.model-icon.openai { background: #10a37f; }
.model-icon.gemini { background: #4285f4; }
.model-icon.grok { background: #8a2be2; }
.model-icon.deepseek { background: #00b4d8; }
.model-icon.mistral { background: #ff6b6b; }
.model-icon.kimi { background: #ff4b91; }

.model-card h3 { margin: 5px 0; font-size: 1.1rem; }
.model-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 10px 0; }
.model-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary-glow); color: var(--bg-color);
    padding: 2px 8px; border-radius: 10px;
    font-size: 0.7rem; font-weight: bold;
}

/* Action Button */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-glow);
    color: var(--bg-color);
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(159, 122, 234, 0.3);
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.pricing-tier {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
}
.pricing-tier:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.pricing-tier.popular {
    border-color: var(--secondary-glow);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.3);
}

.tier-icon { font-size: 2rem; margin-bottom: 15px; color: var(--primary-glow); }
.tier-header { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.tier-header h3 { margin: 0 0 10px 0; font-size: 1.2rem; }
.price { font-size: 2.2rem; font-weight: bold; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-features { list-style: none; padding: 0; margin: 20px 0 0 0; text-align: left;}
.tier-features li { padding: 8px 0; color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.tier-features li i.fa-check { color: #4ade80; }
.tier-features li i.fa-times { color: #f44336; }

.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--secondary-glow);
    color: white; padding: 4px 12px;
    border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}

/* Card Row */
.card-row { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; 
}

.small-card .card-header h2 { font-size: 1.4rem; }
.trial-offer { text-align: center; margin-bottom: 20px; }
.trial-badge {
    background: var(--gradient-text);
    color: white; padding: 8px 15px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: bold; margin-bottom: 10px;
}
.contact-methods { display: grid; gap: 10px; }
.contact-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 8px; text-decoration: none;
    color: white; font-weight: 600; transition: all 0.3s;
}
.contact-button.email { background: var(--primary-glow); }
.contact-button.discord { background: #5865F2; }

.dashboard-link { text-decoration: none; }
.dashboard-button {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--gradient-text);
    color: white; padding: 12px 20px; border-radius: 8px;
    margin-top: 15px; transition: transform 0.3s;
}
.dashboard-preview { margin-top: 15px; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.usage-bar { width: 100%; height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.usage-fill { height: 100%; background: var(--gradient-text); border-radius: 4px; }
.usage-text { font-size: 0.85rem; color: var(--text-muted); }

.update-time, .user-count { font-size: 2rem; font-weight: bold; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 10px 0; }
.stats-label { color: var(--text-muted); font-size: 0.9rem; }
.stats-trend { font-size: 0.9rem; margin-top: 5px; }
.card-icon { font-size: 2rem; margin-bottom: 15px; color: var(--primary-glow); }

/* Comment Section */
.comment-container {
    position: relative;
    height: 180px; /* Fixed height for fade effect */
    overflow: hidden;
    margin-top: 20px;
}

.comment-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.comment-card.active {
    opacity: 1;
    transform: translateY(0);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary-glow);
}

.comment-author .comment-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.comment-rating {
    color: #ffd700;
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.platform-footer {
    margin-top: 60px; padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center; gap: 20px;
}
.footer-logo {
    font-size: 1.5rem; font-weight: bold;
    background: var(--gradient-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: flex; align-items: center; gap: 10px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-glow); }
.footer-social { display: flex; gap: 15px; }
.footer-social a { color: var(--text-muted); font-size: 1.2rem; transition: color 0.3s, transform 0.3s; }
.footer-social a:hover { color: var(--primary-glow); transform: translateY(-2px); }
.footer-copyright { color: var(--text-muted); font-size: 0.9rem; text-align: right; }

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-row-main { grid-template-columns: 1fr; }
    .pricing-table { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .pricing-tier.popular { transform: translateY(-5px); }
}

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; }
    .card-row { grid-template-columns: 1fr 1fr; }
    .pricing-table { grid-template-columns: 1fr 1fr; }
    .pricing-tier.popular { transform: none; }
}

@media (max-width: 768px) {
    .tech-platform { padding: 20px 15px; }
    .platform-header h1 { font-size: 2.2rem; }
    .card-row, .pricing-table { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .footer-links { flex-direction: column; gap: 10px; }
    .footer-copyright { text-align: center; }
}
