/* ============================================================
   SITE-WIDE — reset, header, footer, landing page
============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --header-h:     54px;
    --bg:           #0D1117;
    --surface:      #161B22;
    --surface-2:    #1C2128;
    --border:       rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --text:         #E6EDF3;
    --text-muted:   #7D8590;
    --text-subtle:  #484F58;
    --blue:         #1D9BF0;
    --green:        #25D366;
    --radius-card:  18px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Generator pages: account for sticky header (desktop only) ── */
@media (min-width: 801px) {
    body.generator-page .app-layout {
        height: calc(100vh - var(--header-h));
    }
}

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
    height: var(--header-h);
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.4px;
    flex-shrink: 0;
}

.site-logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #1D9BF0 0%, #25D366 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.site-nav-link:hover          { color: var(--text); background: rgba(255,255,255,0.05); }
.site-nav-link.active         { color: var(--text); background: rgba(255,255,255,0.07); }
.site-nav-link.active.twitter-link  { color: var(--blue); }
.site-nav-link.active.whatsapp-link { color: var(--green); }

/* ============================================================
   SITE FOOTER
============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 0;
}

.site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.site-footer-nav a:hover { color: var(--text); }

/* ============================================================
   LANDING PAGE
============================================================ */
.landing-page {
    background: var(--bg);
}

.bento-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

/* ── Base card ───────────────────────────────────────────────── */
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.bento-card:hover { border-color: var(--border-hover); }

/* ── Hero card ───────────────────────────────────────────────── */
.card-hero {
    grid-column: span 12;
    min-height: 200px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0D1117 0%, #141D2B 60%, #0D1A10 100%);
    border-color: rgba(255,255,255,0.09);
    padding: 44px 48px;
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.25);
    color: #25D366;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(90deg, #1D9BF0 0%, #25D366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #1D9BF0 0%, #1a8fd1 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(29,155,240,0.3);
}
.cta-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(29,155,240,0.4);
}

.cta-btn.secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.cta-btn.secondary:hover { background: rgba(255,255,255,0.1); }

/* Hero decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
.hero-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(29,155,240,0.12);
    top: -80px;
    right: 100px;
}
.hero-blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(37,211,102,0.1);
    bottom: -60px;
    right: 20px;
}

/* ── Platform cards ──────────────────────────────────────────── */
.card-platform {
    grid-column: span 6;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.card-twitter  { border-top: 2px solid rgba(29,155,240,0.5); }
.card-whatsapp { border-top: 2px solid rgba(37,211,102,0.5); }

.card-twitter:hover  { border-color: rgba(29,155,240,0.8); box-shadow: 0 0 40px rgba(29,155,240,0.06); }
.card-whatsapp:hover { border-color: rgba(37,211,102,0.8); box-shadow: 0 0 40px rgba(37,211,102,0.06); }

.platform-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.platform-icon.tw-icon { background: #000; }
.platform-icon.wa-icon { background: #128C7E; }

.platform-card-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.platform-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-subtle);
    flex-shrink: 0;
}
.card-twitter  .feature-list li::before { background: var(--blue);  opacity: 0.7; }
.card-whatsapp .feature-list li::before { background: var(--green); opacity: 0.7; }

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    margin-top: auto;
    align-self: flex-start;
}
.card-cta.tw-cta  { background: rgba(29,155,240,0.12);  color: var(--blue);  border: 1px solid rgba(29,155,240,0.2);  }
.card-cta.wa-cta  { background: rgba(37,211,102,0.12);  color: var(--green); border: 1px solid rgba(37,211,102,0.2);  }
.card-cta.tw-cta:hover  { background: rgba(29,155,240,0.2);  transform: translateX(3px); }
.card-cta.wa-cta:hover  { background: rgba(37,211,102,0.2);  transform: translateX(3px); }

/* ── Feature / stat cards ────────────────────────────────────── */
.card-feature {
    grid-column: span 4;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   MOCK TWEET PREVIEW (in Twitter card)
============================================================ */
.mock-tweet-wrap {
    background: #000;
    border: 1px solid #2F3336;
    border-radius: 14px;
    padding: 14px 16px 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mock-tw-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.mock-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mock-avatar.tw  { background: linear-gradient(135deg, #1D9BF0 0%, #0d6ebc 100%); }
.mock-avatar.wa  { background: linear-gradient(135deg, #25D366 0%, #075E54 100%); }
.mock-avatar.sm  { width: 28px; height: 28px; }

.mock-tw-info   { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mock-follow    { font-size: 11px; font-weight: 700; color: #E7E9EA; border: 1px solid #E7E9EA; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }

.mock-bar {
    display: block;
    border-radius: 6px;
    animation: mockPulse 2.2s ease-in-out infinite;
}
.mock-bar.light { background: rgba(255,255,255,0.13); }
.mock-bar.white { background: rgba(255,255,255,0.7); }
.mock-bar.dark  { background: rgba(0,0,0,0.12); }

@keyframes mockPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.9; }
}

.mock-tw-text { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.mock-tw-divider { border: none; border-top: 1px solid #2F3336; margin: 10px 0; }
.mock-tw-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mock-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

/* ============================================================
   MOCK WHATSAPP PREVIEW (in WhatsApp card)
============================================================ */
.mock-wa-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mock-wa-header-bar {
    background: #075E54;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-wa-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.mock-wa-chat-bg {
    background: #E5DDD5;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-wa-bubble {
    padding: 7px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mock-wa-bubble.in  {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    align-self: flex-start;
}
.mock-wa-bubble.out {
    background: #DCF8C6;
    border-radius: 8px 0 8px 8px;
    align-self: flex-end;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .card-platform { grid-column: span 12; }
    .card-feature  { grid-column: span 6; }
    .card-hero     { padding: 32px 24px; }
    .hero-title    { font-size: 30px; }
}

@media (max-width: 600px) {
    .bento-container { padding: 20px 16px 48px; }
    .bento-grid      { gap: 10px; }
    .bento-card      { padding: 22px 20px; }
    .card-feature    { grid-column: span 12; }
    .site-header     { padding: 0 16px; }
    .site-nav        { gap: 0; }
    .site-nav-link   { padding: 6px 9px; }
    .site-nav-link span { display: none; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .cta-btn   { justify-content: center; }
    .hero-sub  { font-size: 14px; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .site-footer-nav   { flex-wrap: wrap; gap: 14px; }
}
