/* Markstone Website Styles - Modern, Conversion-Optimized */
/* Brand colors from Markstone Style Guide */
:root {
    /* Primary Gradient Colors */
    --blue-start: #3BA4F9;
    --purple-end: #8B3CF6;

    /* Primary derived */
    --primary: #3BA4F9;
    --primary-dark: #8B3CF6;
    --primary-light: #5CB8FA;

    /* Accent */
    --accent: #B58CFF;

    /* Neutrals */
    --white: #FFFFFF;
    --slate-black: #0F1220;
    --soft-gray: #9AA0B5;
    --divider-gray: #2A2F45;

    /* Semantic colors */
    --text: #0F1220;
    --text-secondary: #9AA0B5;
    --text-muted: #9AA0B5;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F1220;
    --border: #E2E8F0;
    --success: #10B981;

    /* Brand gradients */
    --gradient-brand: linear-gradient(135deg, #3BA4F9 0%, #8B3CF6 100%);
    --gradient-hero: linear-gradient(135deg, #0F1220 0%, #1a1d2e 50%, #252a3d 100%);
    --gradient-cta: linear-gradient(135deg, #3BA4F9 0%, #8B3CF6 100%);

    /* Shadows */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / 0.25);

    /* Spacing & Shape - Style guide: 0-6px max radius */
    --radius: 6px;
    --radius-lg: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }

/* Display/Logo font - Space Grotesk for headings */
h1, h2, .hero h1, .section-header h2, .cta-content h2 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226,232,240,0.8); transition: all 0.3s; }
.nav.scrolled { box-shadow: var(--shadow); }
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.375rem; }
.nav-logo img { width: 44px; height: 44px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.9375rem; padding: 10px 16px; border-radius: 4px; transition: all 0.2s; }
.nav-links a:hover { color: var(--primary); background: rgba(59,164,249,0.1); }
.nav-cta { background: var(--gradient-cta) !important; color: white !important; box-shadow: 0 4px 14px rgba(59,164,249,0.4); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139,60,246,0.5); }

/* Hero */
.hero { padding: 160px 0 120px; background: var(--gradient-hero); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(59,164,249,0.2) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(139,60,246,0.25) 0%, transparent 50%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; }
.hero-text { color: white; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 100px; font-size: 0.875rem; font-weight: 500; margin-bottom: 28px; border: 1px solid rgba(255,255,255,0.15); }
.badge-new { background: linear-gradient(135deg, #10B981 0%, #059669 100%); padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.05; margin-bottom: 28px; letter-spacing: -0.03em; }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { font-size: 1.25rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.8; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 32px; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: white; color: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(59,164,249,0.1); }
.hero-stats { display: flex; gap: 48px; }
.stat { text-align: left; }
.stat-value { font-size: 2.25rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.875rem; opacity: 0.7; }
.hero-image { position: relative; display: flex; justify-content: center; }
.glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 120%; height: 120%; background: radial-gradient(ellipse, rgba(59,164,249,0.3) 0%, rgba(139,60,246,0.2) 50%, transparent 70%); filter: blur(60px); z-index: -1; }
.mockup { width: 100%; max-width: 480px; border-radius: 6px; box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5); transform: rotateY(-8deg) rotateX(5deg); transition: transform 0.6s; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotateY(-8deg) rotateX(5deg); } 50% { transform: translateY(-15px) rotateY(-8deg) rotateX(5deg); } }

/* Social Proof */
.social-proof { background: white; padding: 40px 0; border-bottom: 1px solid var(--border); }
.social-proof-content { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 14px; color: var(--text-secondary); font-weight: 500; }
.stars { color: #FBBF24; font-size: 1.25rem; letter-spacing: 2px; }

/* Sections */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 72px; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,164,249,0.1); color: var(--primary); padding: 10px 20px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; }
.tag.light { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.15); }
.section-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; }
.section-header p { font-size: 1.1875rem; color: var(--text-secondary); }

/* Features */
.features { padding: 140px 0; background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; transition: all 0.4s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-cta); transform: scaleX(0); transition: transform 0.4s; }
.feature-card:hover { border-color: var(--primary); box-shadow: 0 20px 50px rgba(59,164,249,0.15); transform: translateY(-8px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 14px; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

/* Screenshots Gallery */
.screenshots { padding: 140px 0; background: white; }
.screenshot-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; }
.tab-btn { padding: 12px 28px; border: 2px solid var(--border); background: white; border-radius: 4px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: all 0.3s; color: var(--text-secondary); }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--gradient-cta); border-color: transparent; color: white; }
.screenshot-gallery { position: relative; }
.screenshot-set { display: none; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.screenshot-set.active { display: grid; }
.screenshot-item { text-align: center; }
.screenshot-item img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: all 0.4s; border: 1px solid var(--border); }
.screenshot-item img:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px rgba(59,164,249,0.2); }
.screenshot-item span { display: block; margin-top: 16px; font-weight: 600; color: var(--text-secondary); font-size: 0.9375rem; }

/* Use Case */
.use-case { padding: 140px 0; background: var(--gradient-hero); position: relative; }
.use-case::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 70%, rgba(59,164,249,0.2) 0%, transparent 50%); }
.use-case-content { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; position: relative; }
.use-case-text { color: white; }
.use-case h2 { font-size: 2.75rem; font-weight: 800; margin-bottom: 24px; line-height: 1.15; }
.use-case-text > p { font-size: 1.1875rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; }
.benefits-list { list-style: none; }
.benefits-list li { margin-bottom: 18px; font-size: 1.0625rem; line-height: 1.6; }
.code-preview { background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); }
.code-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--divider-gray); border-radius: 6px 6px 0 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #f38ba8; } .dot.yellow { background: #f9e2af; } .dot.green { background: #a6e3a1; }
.filename { margin-left: 12px; color: #6c7086; font-size: 0.8125rem; font-family: monospace; }
.code-body { background: var(--slate-black); border-radius: 0 0 6px 6px; padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; line-height: 1.8; color: #cdd6f4; overflow-x: auto; }
.code-body pre { white-space: pre-wrap; }
.code-body .h1 { color: #89b4fa; font-weight: 600; } .code-body .h2 { color: #cba6f7; } .code-body .code { color: #6c7086; } .code-body .check { color: #a6e3a1; }

/* Testimonials */
.testimonials { padding: 140px 0; background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; transition: all 0.3s; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.testimonial .stars { color: #FBBF24; margin-bottom: 20px; }
.testimonial p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 28px; }
.author { display: flex; align-items: center; gap: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-cta); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }

/* Pricing */
.pricing { padding: 140px 0; background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.price-card { background: white; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 44px 36px; position: relative; transition: all 0.4s; text-align: center; }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 30px 60px rgba(59,164,249,0.2); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-cta); color: white; padding: 8px 24px; border-radius: 100px; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 3.5rem; font-weight: 900; color: var(--primary-dark); }
.price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.price-desc { color: var(--text-secondary); font-size: 0.9375rem; margin: 8px 0 28px; }
.price-alt { color: var(--text-muted); font-size: 0.8125rem; opacity: 0.8; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 32px; }
.price-card li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.price-card li:last-child { border-bottom: none; }
.price-card li.disabled { color: var(--text-muted); }
.price-card .btn { width: 100%; }
.price-card.featured .btn-primary { background: var(--gradient-cta); color: white; }

/* CTA */
.cta { padding: 140px 0; background: var(--gradient-hero); text-align: center; color: white; position: relative; }
.cta-content h2 { font-size: 3.25rem; font-weight: 900; margin-bottom: 20px; }
.cta-content p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.store-badge { height: 60px; transition: all 0.3s; border-radius: 6px; }
.store-badge:hover { transform: scale(1.05) translateY(-3px); }

/* Footer */
.footer { background: var(--bg-dark); color: white; padding: 100px 0 48px; }
.footer-content { display: flex; justify-content: space-between; gap: 64px; margin-bottom: 64px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand span { font-weight: 800; font-size: 1.375rem; }
.footer-brand p { color: #94A3B8; font-size: 0.9375rem; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-weight: 700; margin-bottom: 20px; }
.footer-col a { display: block; color: #94A3B8; text-decoration: none; font-size: 0.9375rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 40px; border-top: 1px solid #1E293B; text-align: center; color: #64748B; font-size: 0.875rem; }

/* Page styles */
.page-header { padding: 140px 0 60px; background: var(--gradient-hero); color: white; text-align: center; }
.page-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.page-header p { font-size: 1.125rem; opacity: 0.9; }
.page-content { padding: 80px 0; max-width: 800px; margin: 0 auto; }
.page-content h2 { font-size: 1.75rem; font-weight: 700; margin: 48px 0 20px; color: var(--text); }
.page-content h3 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 16px; }
.page-content p, .page-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { padding-left: 24px; }
.page-content a { color: var(--primary); }
.last-updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 32px; }

/* Contact Form */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-method { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding: 20px; background: var(--bg-alt); border-radius: 6px; }
.contact-method-icon { width: 48px; height: 48px; background: var(--gradient-cta); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; }
.contact-method h4 { font-weight: 600; margin-bottom: 4px; }
.contact-method p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }
.contact-form { background: var(--bg-alt); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9375rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 6px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-submit { width: 100%; padding: 16px; background: var(--gradient-cta); color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,164,249,0.4); }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-content, .use-case-content, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-text, .use-case-text { text-align: center; }
    .hero-description { max-width: 100%; }
    .hero-ctas, .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .mockup { max-width: 360px; transform: none; }
    .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-set.active { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .price-card.featured { transform: none; }
    .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 130px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.25rem; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .screenshot-tabs { flex-wrap: wrap; }
    .screenshot-set.active { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .use-case h2 { font-size: 2rem; }
    .cta-content h2 { font-size: 2.25rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 32px; }
    .benefits-list { text-align: left; }
}
