@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&family=Space+Mono&display=swap');

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

:root {
    /* Brand & Accents */
    --brand: #25D366; /* WhatsApp Neon Green */
    --brand-hover: #1EBE5A;
    --brand-glow: rgba(37, 211, 102, 0.25);
    
    /* Dark Theme Surface */
    --bg-base: #09090b; /* Zinc 950 */
    --bg-surface: rgba(24, 24, 27, 0.6); /* Zinc 900 transparent */
    --bg-input: rgba(9, 9, 11, 0.8);
    
    /* Typography */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa; /* Zinc 400 */
    --text-muted: #71717a; /* Zinc 500 */
    
    /* Borders & UI */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --ring: rgba(37, 211, 102, 0.4);
    
    /* Structural */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 8px;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem 6rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Mesh & Grid */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(37, 211, 102, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(37, 211, 102, 0.05), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   Glassmorphism Wrapper
========================================= */
.app-wrapper, .seo-content {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.app-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.icon-box {
    background: rgba(37, 211, 102, 0.1);
    color: var(--brand);
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    box-shadow: 0 0 30px var(--brand-glow) inset;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.app-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.app-body {
    padding: 2.5rem;
}

/* =========================================
   Forms & Inputs
========================================= */
.wa-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

input, textarea, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-input);
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:hover, textarea:hover, select:hover {
    border-color: var(--border-hover);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
    background-color: rgba(9, 9, 11, 0.95);
}

/* Select specific styling to hide weird defaults in dark mode */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.phone-input-group {
    display: flex;
    gap: 0.75rem;
}

.country-select {
    width: 140px;
    flex-shrink: 0;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--brand);
    color: #000;
    box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-generate {
    margin-top: 1rem;
    padding: 1.25rem;
    font-size: 1.15rem;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand);
    border-color: rgba(37, 211, 102, 0.3);
}

.btn-outline:hover {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: var(--brand);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem;
}

.btn-text:hover {
    color: var(--text-primary);
}

/* =========================================
   Result Area
========================================= */
.result-container {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: rgba(37, 211, 102, 0.03);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: var(--radius-lg);
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.result-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.result-container h3 {
    font-family: var(--font-heading);
    color: var(--brand);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.link-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
}

.link-box input {
    background-color: rgba(0,0,0,0.4);
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    border-color: rgba(37, 211, 102, 0.2);
    padding-right: 120px; /* space for absolute copy button if needed, but flex handles it */
    cursor: text;
}

.actions-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hidden {
    display: none !important;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SEO Content Block
========================================= */
.seo-content {
    padding: 3.5rem 3rem;
}

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

.seo-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.seo-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.seo-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-body h3::before {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.seo-body p, .seo-body li {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.seo-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.seo-body ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.seo-body ol li {
    margin-bottom: 0.75rem;
}

.seo-body ol li::marker {
    color: var(--brand);
    font-family: var(--font-mono);
    font-weight: bold;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.02);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.benefit-card h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.benefit-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQs */
.faq-section {
    margin-top: 4rem;
}

details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

details[open] {
    border-color: rgba(37, 211, 102, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 1.25rem 1.5rem;
    padding-right: 3rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    content: '-';
    color: var(--brand);
}

details p {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
}

/* Responsive */
@media (max-width: 600px) {
    .app-header { padding: 2rem 1.5rem 1.5rem; }
    .app-header h1 { font-size: 1.75rem; }
    .app-body { padding: 1.5rem; }
    .seo-content { padding: 2rem 1.5rem; }
    .link-box { flex-direction: column; }
    .actions-row { flex-direction: column; align-items: stretch; }
    .phone-input-group { flex-direction: column; }
    .country-select { width: 100%; }
}
