/* CSS reset and variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-muted: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.navbar {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 7rem 0;
    background: linear-gradient(to bottom, var(--bg-muted), var(--bg-main));
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

/* Dynamic Animation Styles */
.css-animation-card {
    position: relative;
    width: 320px;
    height: 320px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.5;
    animation: pulse 3s infinite;
}

.connection-line {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.center-node {
    z-index: 10;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    animation: float 4s ease-in-out infinite;
}

.node {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: var(--text-main);
    z-index: 5;
    white-space: nowrap;
}

.node-1 { top: 10%; left: -5%; animation: float 3.5s ease-in-out infinite 0.5s; }
.node-2 { top: 25%; right: -15%; animation: float 4.2s ease-in-out infinite 1s; }
.node-3 { bottom: 15%; right: -5%; animation: float 3.8s ease-in-out infinite 1.5s; }
.node-4 { bottom: 10%; left: -10%; animation: float 4.5s ease-in-out infinite 0.2s; }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.cta-button.outline {
    background-color: transparent;
    color: var(--primary-color);
}

.cta-button.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections Common */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.grid-3, .grid-2 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Features */
.feature-card {
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

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

/* Media & AI */
.media-ai {
    background: var(--bg-muted);
}

.media-card h3, .ai-card h3 {
    margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 3.5rem;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0 0.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.price-hint {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-muted);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-weight: bold;
}

/* Testimonials */
.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.testimonial-card .user {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: right;
    font-weight: 600;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* Mobile Responsive */
@media (max-width: 767px) {
    .header-container { flex-wrap: wrap; }
    .desktop-nav { display: none; }
    
    .hero { padding: 4rem 0; }
    .hero-container { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-visual { transform: scale(0.85); min-height: 300px; margin-top: 2rem; }
    
    section { padding: 3rem 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .footer-links { flex-direction: column; gap: 1rem; }
}

/* Articles Grid */
.articles { background: var(--bg-muted); }
.article-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem; }
.article-card:hover h3 { color: var(--primary-color); }
.article-image { font-size: 3rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.125rem; margin-bottom: 0.75rem; text-align: center; transition: color 0.2s; }
.article-content p { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
