/*
Theme Name: AlienSync
Theme URI: https://geeksync.io/
Author: GeekSync
Author URI: https://geeksync.io/
Description: AlienSync is a modern SaaS theme built for GeekSync's AI-powered media tools — the AI Image to GIF Converter and AI Video to GIF Converter. Includes ready-made pages for Home, Tools, Pricing, About, Blog, FAQ, Contact, and legal pages, plus auto-generated blog categories.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aliensync
Tags: saas, ai, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1b1830;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

:root {
    --as-purple: #7c3aed;
    --as-purple-dark: #5b21b6;
    --as-blue: #2563eb;
    --as-teal: #14b8a6;
    --as-ink: #12101f;
    --as-ink-soft: #4b4763;
    --as-bg-dark: #0e0b1f;
    --as-bg-dark-2: #171335;
    --as-surface: #f7f6fb;
    --as-border: #e7e4f2;
    --as-radius: 16px;
    --as-max: 1180px;
    --as-gradient: linear-gradient(120deg, #7c3aed 0%, #2563eb 60%, #14b8a6 120%);
    --as-shadow: 0 10px 30px rgba(30, 20, 70, 0.08);
}

.container { max-width: var(--as-max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--as-bg-dark); color: #eae8f7; }
.section-surface { background: var(--as-surface); }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--as-purple);
    background: rgba(124,58,237,0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-dark .eyebrow { color: #c9b8ff; background: rgba(255,255,255,0.08); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--as-ink-soft); }
.section-dark .section-head p { color: #b8b4d6; }

/* =========================================================
   1. BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--as-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,58,237,0.45); }
.btn-ghost {
    background: transparent;
    color: var(--as-ink);
    border-color: var(--as-border);
}
.btn-ghost:hover { border-color: var(--as-purple); color: var(--as-purple); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.section-dark .btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--as-purple-dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* =========================================================
   2. HEADER / NAV
========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--as-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--as-ink); }
.site-logo .logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--as-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 900;
}
.primary-nav ul { display: flex; align-items: center; gap: 34px; }
.primary-nav a { font-weight: 600; font-size: 15px; color: var(--as-ink-soft); transition: color .15s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--as-purple); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--as-ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
    .primary-nav { position: fixed; inset: 78px 0 0 0; background: #fff; padding: 30px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
    .menu-toggle { display: block; }
    .header-actions .btn-ghost { display: none; }
}

/* =========================================================
   3. HERO
========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--as-bg-dark);
    color: #fff;
    padding: 110px 0 100px;
}
.hero::before {
    content: "";
    position: absolute; inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.45), transparent 45%),
                radial-gradient(circle at 80% 30%, rgba(20,184,166,0.35), transparent 40%),
                radial-gradient(circle at 50% 90%, rgba(37,99,235,0.35), transparent 45%);
    filter: blur(40px);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 22px; }
.hero h1 span { background: var(--as-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c7c3e6; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: #8f8ab4; }
.hero-tools { display: flex; gap: 18px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-tool-pill {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #ece9ff;
}
.hero-tool-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--as-teal); }

/* =========================================================
   4. LOGO / TRUST STRIP
========================================================= */
.trust-strip { padding: 40px 0; border-bottom: 1px solid var(--as-border); }
.trust-strip p { text-align: center; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9b96b8; margin-bottom: 22px; font-weight: 700; }
.trust-logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: .7; font-weight: 800; font-size: 18px; color: #7c7896; }

/* =========================================================
   5. CARDS / GRID
========================================================= */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 32px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--as-shadow); }
.card .icon-box {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--as-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--as-ink-soft); font-size: 15px; }

/* Tool showcase */
.tool-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tool-block:nth-child(even) .tool-copy { order: 2; }
.tool-visual {
    aspect-ratio: 4/3; border-radius: 20px;
    background: var(--as-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 15px; text-align: center; padding: 30px;
    box-shadow: var(--as-shadow);
    position: relative; overflow: hidden;
}
.tool-visual .badge { position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 999px; font-size: 12px; }
.tool-copy .eyebrow { margin-bottom: 14px; }
.tool-copy h3 { font-size: 30px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.tool-copy p { color: var(--as-ink-soft); font-size: 16px; margin-bottom: 22px; }
.tool-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.tool-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--as-ink); }
.tool-features li::before { content: "✓"; color: var(--as-teal); font-weight: 900; flex-shrink: 0; }
@media (max-width: 900px) {
    .tool-block { grid-template-columns: 1fr; gap: 30px; }
    .tool-block:nth-child(even) .tool-copy { order: 0; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--as-surface); border-radius: var(--as-radius); }
.step .step-num { font-size: 42px; font-weight: 900; color: transparent; -webkit-text-stroke: 2px var(--as-purple); margin-bottom: 12px; display: block; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--as-ink-soft); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
    background: #fff; border: 1px solid var(--as-border); border-radius: var(--as-radius);
    padding: 32px 26px; display: flex; flex-direction: column;
}
.price-card.is-featured { border: 2px solid var(--as-purple); box-shadow: var(--as-shadow); position: relative; }
.price-card.is-featured::before {
    content: "MOST POPULAR"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--as-gradient); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em;
    padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.price-card .price { font-size: 38px; font-weight: 900; margin: 14px 0 4px; }
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--as-ink-soft); }
.price-card .price-desc { font-size: 14px; color: var(--as-ink-soft); margin-bottom: 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 28px; flex-grow: 1; }
.price-card ul li { font-size: 14.5px; display: flex; gap: 8px; }
.price-card ul li::before { content: "✓"; color: var(--as-teal); font-weight: 900; }

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--as-border); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; padding: 20px 24px;
    font-size: 16px; font-weight: 700; text-align: left; color: var(--as-ink);
}
.faq-question .icon { font-size: 20px; color: var(--as-purple); transition: transform .2s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--as-ink-soft); font-size: 15px; }

/* Testimonials */
.testimonial-card { background: var(--as-surface); border-radius: var(--as-radius); padding: 30px; }
.testimonial-card .stars { color: #f5a623; margin-bottom: 14px; font-size: 15px; }
.testimonial-card p.quote { font-size: 15.5px; color: var(--as-ink); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--as-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.testimonial-author .name { font-weight: 700; font-size: 14px; }
.testimonial-author .role { font-size: 12.5px; color: var(--as-ink-soft); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: 36px; font-weight: 900; background: var(--as-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--as-ink-soft); font-size: 14px; margin-top: 6px; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band { background: var(--as-gradient); border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: .92; margin-bottom: 30px; }

/* =========================================================
   6. TOOL APP PLACEHOLDER (upload UI)
========================================================= */
.tool-app { background: var(--as-surface); border-radius: 24px; padding: 40px; margin-top: 20px; }
.dropzone {
    border: 2px dashed #c9c2ea; border-radius: 18px; background: #fff;
    padding: 60px 20px; text-align: center; color: var(--as-ink-soft);
}
.dropzone .icon-box { margin: 0 auto 18px; }
.dropzone strong { color: var(--as-ink); }
.tool-app-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tool-app-options .opt { background: #fff; border: 1px solid var(--as-border); border-radius: 12px; padding: 16px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 700px) { .tool-app-options { grid-template-columns: 1fr; } }

/* =========================================================
   7. BLOG
========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { border: 1px solid var(--as-border); border-radius: var(--as-radius); overflow: hidden; background: #fff; }
.post-card .post-thumb { aspect-ratio: 16/9; background: var(--as-gradient); }
.post-card .post-body { padding: 22px; }
.post-card .cat { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--as-purple); margin-bottom: 10px; display: block; }
.post-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.post-card p { color: var(--as-ink-soft); font-size: 14.5px; }
.post-meta { font-size: 13px; color: #9b96b8; margin-top: 14px; }

.single-post-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.single-post-header .cat { color: var(--as-purple); font-weight: 800; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; }
.single-post-header h1 { font-size: clamp(28px,4.5vw,42px); font-weight: 800; margin: 14px 0; letter-spacing: -0.02em; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 17px; color: #2b2745; }
.entry-content h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; }
.entry-content h3 { font-size: 21px; font-weight: 700; margin: 30px 0 12px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.entry-content li { margin-bottom: 8px; }

/* =========================================================
   8. FORMS
========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--as-ink); }
.field input, .field textarea, .field select {
    border: 1px solid var(--as-border); border-radius: 10px; padding: 13px 16px; font-size: 15px; background: #fff; color: var(--as-ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--as-purple); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon-box { flex-shrink: 0; width: 44px; height: 44px; margin-bottom: 0; }
.contact-info-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { font-size: 14.5px; color: var(--as-ink-soft); }

/* =========================================================
   9. FOOTER
========================================================= */
.site-footer { background: var(--as-bg-dark); color: #b8b4d6; padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand .site-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 280px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: .03em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: #b8b4d6; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: #8f8ab4; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* =========================================================
   10. MISC / UTIL
========================================================= */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(30px,4.5vw,46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: var(--as-ink-soft); max-width: 640px; margin: 0 auto; }
.legal-content { max-width: 780px; margin: 0 auto; font-size: 16px; color: #2b2745; }
.legal-content h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.legal-content p { margin-bottom: 16px; color: var(--as-ink-soft); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; color: var(--as-ink-soft); }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a, .pagination span { padding: 10px 16px; border: 1px solid var(--as-border); border-radius: 8px; font-size: 14px; font-weight: 600; }
.pagination .current { background: var(--as-gradient); color: #fff; border-color: transparent; }
.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: 90px; font-weight: 900; background: var(--as-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.widget { margin-bottom: 40px; }
.widget h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
