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

/* Base Styles */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #6B7280;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --background-white: #FFFFFF;
    --background-gray: #F9FAFB;
    --background-dark: #1F2937;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-white);
    font-size: 16px;
    letter-spacing: -0.011em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
    letter-spacing: -0.006em;
}

/* List Styles */
ul, ol {
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--background-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #F3F4F6;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-primary.large, .btn-outline.large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar {
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
    border-radius: 4px;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.02);
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: auto;
}

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

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

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    margin-top: 80px;
}

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--primary-color);
    display: block;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    letter-spacing: -0.008em;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.mockup-header {
    height: 40px;
    background: #F9FAFB;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.mockup-header::before {
    content: '';
    display: flex;
    gap: 6px;
}

.mockup-header::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 18px 0 0 #F59E0B, 36px 0 0 #10B981;
}

.mockup-content {
    padding: 32px;
    height: 300px;
}

.chart-placeholder {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
    clip-path: polygon(0% 100%, 15% 80%, 30% 90%, 45% 70%, 60% 85%, 75% 60%, 90% 75%, 100% 50%, 100% 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    height: 60px;
    background: var(--background-gray);
    border-radius: var(--radius-sm);
}

/* What is Section Additional Styles */
.detailed-intro {
    margin-top: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detailed-intro h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.detailed-intro h4 {
    color: var(--primary-color);
    margin-top: 32px;
    margin-bottom: 16px;
}

.value-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.value-list strong {
    color: var(--text-primary);
}

/* Why Section Additional Styles */
.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: left;
}

.user-types {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.user-types h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-top: 20px;
}

.user-types h4:first-child {
    margin-top: 0;
}

.user-types p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Advanced Features Styles */
.advanced-features {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--border-color);
}

.advanced-features h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 48px;
}

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

.advanced-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advanced-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.advanced-item h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.advanced-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Usage Tips Styles */
.usage-tips {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--border-color);
}

.usage-tips h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 48px;
}

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

.tip-item {
    background: var(--background-gray);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.tip-item h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.tip-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Steps Container Enhanced */
.step-content h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.step-content ul {
    list-style: none;
    margin-top: 16px;
    text-align: left;
}

.step-content ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.step-content ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: -0.008em;
}

/* What is Section */
.what-is {
    background-color: var(--background-white);
}

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

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 28px;
    line-height: 1;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.015em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
}

/* Why Section */
.why {
    background-color: var(--background-gray);
}

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

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

.benefit-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.75;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-box {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Features Section */
.features {
    background-color: var(--background-white);
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse .feature-content {
    direction: ltr;
}

.feature-content h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-content p {
    margin-bottom: 24px;
}

.feature-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-content li::before {
    content: '✓';
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    justify-content: center;
}

.chart-container {
    width: 100%;
    height: 200px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    border-radius: var(--radius-sm);
    clip-path: polygon(0% 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%, 100% 100%, 0% 100%);
}

.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.keyword-item {
    height: 48px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.competitor-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg 120deg, #7C3AED 120deg 220deg, #EC4899 220deg 300deg, #F59E0B 300deg 360deg);
    box-shadow: var(--shadow-md);
}

/* How to Section */
.how-to {
    background-color: var(--background-gray);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.step p {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    background-color: var(--background-white);
}

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

.faq-item {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.faq-question h4 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.faq-toggle {
    font-size: 24px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
}

.footer-brand p {
    color: #9CA3AF;
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.8rem;
        line-height: 1.15;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1.15rem;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .why-content, .feature-showcase {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefit-list {
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-primary.large, .btn-outline.large {
        padding: 16px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 24px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .benefit-item {
        gap: 16px;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem;
    }
    
    .benefit-item p {
        font-size: 1rem;
    }
}

/* Animations and Visual Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-item {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Button enhancements */
.btn-primary, .btn-secondary, .btn-outline {
    font-weight: 500;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px var(--primary-color);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(79, 70, 229, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animations */
.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    animation: fadeInUp 0.8s ease forwards 0.2s;
    opacity: 0;
}

/* Subtle hover effects */
.nav-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}