/* PresetMaker.io - Global Styles - Purple Theme */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600&display=swap');

:root {
    --charcoal: #0a0a0a;
    --charcoal-light: #141414;
    --charcoal-lighter: #1e1e1e;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-raised: rgba(255, 255, 255, 0.06);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --off-white: #F6F6F6;
    --purple: #8B5CF6;
    --purple-hover: #7C3AED;
    --purple-subtle: rgba(139, 92, 246, 0.08);
    --purple-glow: rgba(139, 92, 246, 0.15);
    --white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-focus: rgba(139, 92, 246, 0.4);
    --text-primary: #F6F6F6;
    --text-secondary: rgba(246, 246, 246, 0.55);
    --text-tertiary: rgba(246, 246, 246, 0.3);
    --error: #ef4444;
    --success: #22c55e;
    --accent: var(--purple);
    --accent-hover: var(--purple-hover);
    --accent-subtle: var(--purple-subtle);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    --transition: 150ms ease;
    --max-width: 1200px;
    --section-padding: 120px 0;
    --section-padding-mobile: 72px 0;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--charcoal);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Typography */
.heading-xl { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.heading-lg { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 600; line-height: 1.12; }
.heading-md { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.heading-sm { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.text-lg { font-size: 1.125rem; line-height: 1.7; }
.text-md { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.6; }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
    font-weight: 600; line-height: 1; border-radius: var(--radius); border: none;
    cursor: pointer; transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--surface); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Tool buttons (used in tool pages) */
.tool-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
    font-weight: 600; line-height: 1; border-radius: var(--radius); border: none;
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    background: var(--purple); color: #fff;
}
.tool-btn-primary:hover { background: var(--purple-hover); }
.tool-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
    font-weight: 600; line-height: 1; border-radius: var(--radius);
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    background: transparent; color: var(--text-primary); border: 1px solid var(--border);
}
.tool-btn-secondary:hover { border-color: var(--purple); color: var(--purple); }

/* Navigation */
.site-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 32px; }
.nav-logo { font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; flex-shrink: 0; }
.nav-logo span { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 6px 14px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border-radius: 6px; transition: color var(--transition), background var(--transition); }
.nav-links a:hover { color: var(--text-primary); background: var(--surface); }
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all 0.3s ease; }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #0a0a0a; z-index: 1001; padding: 24px; overflow-y: auto; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: color var(--transition); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile .btn { width: 100%; margin-top: 16px; }

/* Sections */
.section { padding: var(--section-padding); }
.section-header { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-header p { margin-top: 16px; color: var(--text-secondary); font-size: 1.125rem; }
.section-label { display: inline-block; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 16px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: border-color var(--transition), background var(--transition); }
.card:hover { border-color: var(--border-hover); background: var(--surface-raised); }
.card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--purple-subtle); border-radius: var(--radius); margin-bottom: 20px; color: var(--purple); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* Hero */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }

/* Steps grid */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 40px 24px; }
.step-number { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--purple-subtle); border-radius: 50%; color: var(--purple); }
.step-number svg { width: 28px; height: 28px; }
.step h3 { margin-bottom: 12px; font-size: 1.125rem; }
.step p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* Tools grid */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color var(--transition), background var(--transition), transform var(--transition); cursor: pointer; text-decoration: none; display: block; }
.tool-card:hover { border-color: var(--border-hover); background: var(--surface-raised); transform: translateY(-2px); }
.tool-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--purple-subtle); border-radius: var(--radius); margin-bottom: 16px; color: var(--purple); }
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.tool-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 20px; color: var(--purple); }
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial-card blockquote { font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 20px; }
.testimonial-author { font-size: 0.8125rem; font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--text-tertiary); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; }
.pricing-card.featured { border-color: var(--purple); position: relative; }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 16px; border-radius: var(--radius-pill); }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; font-family: 'DM Sans', sans-serif; margin: 16px 0; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-tertiary); }
.pricing-features { text-align: left; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--purple-subtle); flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; padding: 20px 24px; background: none; border: none; color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.2s; }
.faq-question:hover { color: var(--purple); }
.faq-question svg { width: 18px; height: 18px; color: var(--text-tertiary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }
.faq-item.open .faq-answer { max-height: 500px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.8125rem; color: var(--text-secondary); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; margin-top: 48px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8125rem; color: var(--text-tertiary); }

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .tools-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .section { padding: var(--section-padding-mobile); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
