/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile text improvements */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive container padding */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-brand h1 {
        font-size: 20px;
    }
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Mobile hero styles */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px; /* Touch-friendly minimum height */
    box-sizing: border-box;
}

/* Mobile button improvements */
@media (max-width: 768px) {
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px; /* Larger touch target on mobile */
    }
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Terminal Mockup */
.terminal-mockup {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
}

.terminal-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ef4444; }
.btn-minimize { background: #f59e0b; }
.btn-maximize { background: #10b981; }

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.4;
    min-height: 300px;
}

/* Mobile terminal styles */
@media (max-width: 768px) {
    .terminal-mockup {
        margin-top: 20px;
    }
    
    .terminal-body {
        padding: 16px;
        font-size: 11px;
        min-height: 250px;
        overflow-x: auto;
    }
    
    .terminal-line {
        font-size: 10px;
        line-height: 1.3;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    .terminal-line.border-top,
    .terminal-line.border-middle,
    .terminal-line.border-bottom,
    .terminal-line.info-box {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        padding: 12px;
        font-size: 9px;
        min-height: 200px;
    }
    
    .terminal-line {
        font-size: 8px;
        line-height: 1.2;
    }
    
    .terminal-line.border-top,
    .terminal-line.border-middle,
    .terminal-line.border-bottom,
    .terminal-line.info-box {
        font-size: 7px;
    }
}

.terminal-line {
    color: #e2e8f0;
    margin-bottom: 4px;
    white-space: pre;
    overflow-x: auto;
}

.terminal-line.header {
    color: #fbbf24;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.terminal-line.border-top,
.terminal-line.border-middle,
.terminal-line.border-bottom {
    color: #64748b;
    text-align: center;
}

.terminal-line.section-header {
    color: #60a5fa;
    font-weight: bold;
    text-align: center;
    margin: 12px 0 4px 0;
}

.terminal-line.info-box {
    color: #64748b;
}

.terminal-line.info-content {
    color: #cbd5e1;
    padding-left: 2px;
}

.terminal-line.success {
    color: #34d399;
    padding-left: 2px;
}

.terminal-line.spacing {
    margin-bottom: 8px;
}

/* Add some animation to the terminal */
.terminal-line {
    opacity: 0;
    animation: fadeInSequence 0.3s ease-in-out forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.1s; }
.terminal-line:nth-child(2) { animation-delay: 0.2s; }
.terminal-line:nth-child(3) { animation-delay: 0.3s; }
.terminal-line:nth-child(4) { animation-delay: 0.4s; }
.terminal-line:nth-child(5) { animation-delay: 0.6s; }
.terminal-line:nth-child(6) { animation-delay: 0.7s; }
.terminal-line:nth-child(7) { animation-delay: 0.8s; }
.terminal-line:nth-child(8) { animation-delay: 0.9s; }
.terminal-line:nth-child(9) { animation-delay: 1.0s; }
.terminal-line:nth-child(10) { animation-delay: 1.2s; }
.terminal-line:nth-child(11) { animation-delay: 1.3s; }
.terminal-line:nth-child(12) { animation-delay: 1.4s; }
.terminal-line:nth-child(13) { animation-delay: 1.5s; }

@keyframes fadeInSequence {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Mobile features styles */
@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Plans Section */
.plans {
    padding: 80px 0;
}

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

/* Mobile notice styles */
@media (max-width: 768px) {
    .plans {
        padding: 60px 0;
    }
    
    .important-notice {
        flex-direction: column;
        padding: 20px;
        margin-bottom: 32px;
        gap: 12px;
        text-align: center;
    }
    
    .notice-content h3 {
        font-size: 16px;
    }
    
    .notice-content p {
        font-size: 14px;
    }
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notice-content h3 {
    color: #92400e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-content p {
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

.notice-content strong {
    color: #92400e;
    font-weight: 700;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile plans styles */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card.recommended {
        transform: none;
    }
    
    .plan-card.recommended:hover {
        transform: translateY(-8px);
    }
    
    .plan-header {
        padding: 24px 20px 20px;
    }
    
    .plan-features {
        padding: 24px 20px;
    }
    
    .plan-button {
        padding: 0 20px 24px;
    }
    
    .plan-header h3 {
        font-size: 20px;
    }
    
    .plan-price .price {
        font-size: 28px;
    }
}

.plan-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.recommended {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.plan-card.recommended:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

.plan-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.plan-price .period {
    font-size: 16px;
    color: #6b7280;
}

.plan-features {
    padding: 32px;
}

.plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features li {
    padding: 8px 0;
    font-size: 16px;
    color: #374151;
}

.plan-features li:first-child {
    padding-top: 0;
}

.plan-button {
    padding: 0 32px 32px;
}

.plan-button .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile plan button improvements */
@media (max-width: 768px) {
    .plan-button .btn {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 50px;
        word-wrap: break-word;
    }
}

.plan-note {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

/* Setup Section */
.setup {
    padding: 80px 0;
    background: #f8fafc;
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile setup styles */
@media (max-width: 768px) {
    .setup {
        padding: 60px 0;
    }
    
    .setup-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .setup-step {
        padding: 24px 20px;
    }
    
    .setup-step h3 {
        font-size: 18px;
    }
    
    .code-block {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .code-block code {
        font-size: 12px;
        word-break: break-all;
    }
    
    .copy-btn {
        position: static;
        margin-top: 8px;
        width: 100%;
    }
}

.setup-step {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.setup-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.setup-step p {
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.6;
}

.step-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
    color: #78350f;
}

.step-warning strong {
    color: #92400e;
}

/* Installation Section */
.installation {
    padding: 80px 0;
}

.installation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.install-option {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.install-option h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.code-block {
    background: #1e293b;
    padding: 16px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 16px;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a67d8;
}

/* Usage Section */
.usage {
    padding: 80px 0;
    background: #f8fafc;
}

.usage-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.usage-example {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.usage-example h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.usage-example p {
    color: #6b7280;
    margin-top: 16px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Mobile contact styles */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-card {
        padding: 32px 20px;
    }
    
    .contact-card h3 {
        font-size: 18px;
    }
    
    .contact-link {
        padding: 12px 20px;
        font-size: 14px;
    }
}

.contact-card {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.contact-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-block;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Mobile footer styles */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 20px;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .terminal-mockup {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* General mobile styles */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Navigation mobile menu toggle would go here if implemented */
    .nav-menu {
        display: none;
    }
    
    /* Usage examples mobile */
    .usage-examples {
        grid-template-columns: 1fr;
    }
    
    /* Installation options mobile */
    .installation-options {
        grid-template-columns: 1fr;
    }
    
    .installation {
        padding: 60px 0;
    }
    
    .usage {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .plan-price .price {
        font-size: 24px;
    }
    
    .feature-card,
    .plan-card,
    .setup-step,
    .contact-card {
        padding: 20px 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Hidden version messages for API access */
#version-messages {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
