/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
    /* Colors - Light Mode */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(218, 11%, 15%);
    
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(218, 11%, 15%);
    
    --primary: hsl(43, 100%, 60%);
    --primary-foreground: hsl(218, 11%, 15%);
    
    --secondary: hsl(142, 76%, 36%);
    --secondary-foreground: hsl(0, 0%, 100%);
    
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    
    --accent: hsl(142, 76%, 36%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(0, 0%, 100%);
    --ring: hsl(43, 100%, 60%);
    
    --whatsapp-bg: hsl(142, 76%, 93%);
    --whatsapp-bubble: hsl(142, 76%, 36%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(43, 100%, 60%), hsl(35, 100%, 55%));
    --gradient-whatsapp: linear-gradient(135deg, hsl(142, 76%, 36%), hsl(142, 76%, 46%));
    
    /* Shadows */
    --shadow-card: 0 2px 8px -2px hsla(218, 11%, 15%, 0.06);
    --shadow-card-hover: 0 8px 24px -4px hsla(218, 11%, 15%, 0.12);
    
    /* Spacing */
    --radius: 1rem;
}

/* ===================================
   Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--background), var(--muted));
    padding: 5rem 0 8rem;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: hsla(142, 76%, 36%, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.hero-icon i {
    width: 3rem;
    height: 3rem;
    color: var(--secondary);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

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

/* Decorative blobs */
.blob {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.5;
}

.blob-left {
    background: hsla(43, 100%, 60%, 0.1);
    left: -8rem;
    top: 25%;
}

.blob-right {
    background: hsla(142, 76%, 36%, 0.1);
    right: -8rem;
    bottom: 25%;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 14px 0 hsla(43, 100%, 60%, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px 0 hsla(43, 100%, 60%, 0.4);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--gradient-whatsapp);
    color: var(--secondary-foreground);
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

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

.btn-outline:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    padding: 0.375rem 0.75rem;
}

.btn-ghost:hover {
    background: var(--muted);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-sm i {
    width: 1rem;
    height: 1rem;
}

/* ===================================
   Cards
   =================================== */
.card {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===================================
   Badge
   =================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

/* ===================================
   Form Controls
   =================================== */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--input);
    color: var(--foreground);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--ring);
}

textarea.form-control {
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ===================================
   Template Form Section
   =================================== */
.template-form-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-column,
.preview-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sticky {
    position: sticky;
    top: 1rem;
}

/* ===================================
   Variables List
   =================================== */
.variables-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variable-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.variable-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variable-label {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    cursor: pointer;
}

/* ===================================
   WhatsApp Preview
   =================================== */
.whatsapp-preview {
    background: var(--whatsapp-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.whatsapp-bubble {
    background: var(--card);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-header {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.preview-body {
    font-size: 0.875rem;
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.preview-footer {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.preview-cta-button {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* ===================================
   Export Section
   =================================== */
.export-section {
    margin-top: 1.5rem;
}

.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===================================
   Benefits Section
   =================================== */
.benefits-section {
    background: var(--muted);
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: hsla(43, 100%, 60%, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.benefit-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===================================
   How to Use Section
   =================================== */
.how-to-use-section {
    padding: 5rem 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .step-card {
        flex-direction: row;
        align-items: center;
    }
}

.step-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsla(142, 76%, 36%, 0.1);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.step-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--secondary);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--muted-foreground);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: var(--muted);
    padding: 5rem 0;
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    color: var(--foreground);
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===================================
   Toast Notification
   =================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-card-hover);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.toast-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===================================
   Responsive Typography
   =================================== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   Utilities
   =================================== */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}
