/*
Theme Name: FlySEO
Theme URI: https://flyseo.nl
Author: FlySEO
Author URI: https://flyseo.nl
Description: Nowoczesny, futurystyczny motyw WordPress dla agencji SEO. Dark theme z animacjami, czcionkami Orbitron & Exo 2.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flyseo
Tags: dark, modern, seo, agency, animated, full-width-template
*/

/* =========================================
   TABLE OF CONTENTS
   1. CSS Variables & Reset
   2. Typography
   3. Layout & Grid
   4. Navigation
   5. Hero Section
   6. Stats Bar
   7. Services Section
   8. Portfolio / Partners Section
   9. Process Section
   10. Blog / Articles
   11. Single Post
   12. CTA Section
   13. Sidebar & Widgets
   14. Footer
   15. Buttons & Forms
   16. Animations & Effects
   17. Custom Cursor
   18. Responsive
========================================= */

/* =========================================
   1. CSS VARIABLES & RESET
========================================= */
:root {
    --bg: #060810;
    --bg2: #0d1117;
    --bg3: #111827;
    --accent: #00e5ff;
    --accent2: #7b5ea7;
    --accent-hover: #00b8d4;
    --text: #f0f4ff;
    --muted: #8892a4;
    --muted2: #5a6478;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(0, 229, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 229, 255, 0.2);
    --font-display: 'Orbitron', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Exo 2', sans-serif;
    --transition: all 0.3s ease;
    --radius: 0px;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

body.no-custom-cursor {
    cursor: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul, ol {
    list-style: none;
}

/* =========================================
   2. TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 0.9rem; letter-spacing: 0.05em; }
h5 { font-size: 0.82rem; }
h6 { font-size: 0.75rem; }

p {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

.entry-content p,
.entry-content li {
    font-size: 1rem;
    color: var(--muted);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--text);
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.entry-content ol { list-style: decimal; }

.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--card);
    font-style: italic;
}

.entry-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--border-accent);
}

.entry-content a:hover {
    color: var(--text);
    border-color: var(--text);
}

code {
    font-family: var(--font-mono);
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.1em 0.4em;
    font-size: 0.88em;
    color: var(--accent);
}

pre {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* =========================================
   3. LAYOUT & GRID
========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-content {
    padding-top: var(--nav-height);
}

.section-pad {
    padding: 6rem 0;
}

.section-pad-lg {
    padding: 8rem 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text);
}

.section-sub {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.bg-dark2 { background-color: var(--bg2); }
.bg-dark3 { background-color: var(--bg3); }

.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* =========================================
   4. NAVIGATION
========================================= */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(6, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

#masthead.scrolled {
    background: rgba(6, 8, 16, 0.98);
    border-color: var(--border-accent);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
}

.site-logo span { color: var(--accent); }

.site-logo img {
    height: 36px;
    width: auto;
}

/* Primary nav */
#primary-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

#primary-navigation a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

#primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#primary-navigation a:hover {
    color: var(--text);
}

#primary-navigation a:hover::after,
#primary-navigation .current-menu-item a::after {
    transform: scaleX(1);
}

#primary-navigation .current-menu-item a {
    color: var(--text);
}

/* Dropdown */
#primary-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    flex-direction: column;
    gap: 0;
}

#primary-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#primary-navigation .sub-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.78rem;
    border-bottom: none;
}

#primary-navigation .sub-menu a:hover {
    background: var(--card);
    color: var(--accent);
}

#primary-navigation li {
    position: relative;
}

/* Nav CTA button */
.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: transparent;
    padding: 0.5rem 1.2rem;
    cursor: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Mobile hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: var(--transition);
}

/* =========================================
   5. HERO SECTION
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Grid background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}

/* Glow orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbPulse 6s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 94, 167, 0.15) 0%, transparent 70%);
    bottom: 0;
    right: -100px;
    animation: orbPulse 8s ease-in-out infinite reverse;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-section h1 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.2s ease forwards;
    opacity: 0;
}

.hero-section h1 .accent-line {
    color: var(--accent);
    display: block;
}

.hero-section .hero-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeUp 0.8s 0.4s ease forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.8s 0.6s ease forwards;
    opacity: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    animation: fadeUp 0.8s 1.2s ease forwards;
    opacity: 0;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   6. STATS BAR
========================================= */
.stats-bar {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.stats-inner {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-number .accent { color: var(--accent); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================
   7. SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 3rem;
}

.service-card {
    background: var(--bg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    background: var(--card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-number {
    position: absolute;
    top: 2rem; right: 2rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
}

.service-icon {
    width: 48px; height: 48px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0;
}

.service-link {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   8. PORTFOLIO / PARTNERS
========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
}

.portfolio-card:hover::after {
    transform: scaleX(1);
}

.portfolio-domain {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.portfolio-desc {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
}

.portfolio-tag {
    font-family: var(--font-mono);
    display: inline-block;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--accent);
    font-size: 0.68rem;
    padding: 0.2rem 0.7rem;
    margin-top: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================
   9. PROCESS SECTION
========================================= */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 1.8rem;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.process-step {
    text-align: center;
    padding: 0 1.5rem;
}

.process-dot-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-dot {
    width: 16px; height: 16px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.process-dot::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
}

.process-step p {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
}

/* =========================================
   10. BLOG / ARTICLES
========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg2);
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
}

.post-thumbnail-placeholder::after {
    content: '//';
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--muted2);
    letter-spacing: 0.3em;
}

.post-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-cat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 0.15rem 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted2);
    letter-spacing: 0.06em;
}

.post-card h2,
.post-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
}

.post-card h2 a,
.post-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--accent);
}

.post-excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.read-more:hover { gap: 10px; color: var(--accent); }

/* Featured post */
.post-card.post-featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.post-card.post-featured .post-thumbnail {
    flex: 0 0 45%;
    aspect-ratio: auto;
}

.post-card.post-featured .post-body {
    padding: 2.5rem;
}

.post-card.post-featured h2 {
    font-size: 1.4rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* =========================================
   11. SINGLE POST
========================================= */
.single-hero {
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.single-content {
    padding: 4rem 0;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

.post-featured-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

/* Author box */
.author-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.author-avatar img {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
}

.author-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-transform: uppercase;
}

.author-bio { font-size: 0.88rem; }

/* Related posts */
.related-posts { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }

/* =========================================
   12. CTA SECTION
========================================= */
.cta-section {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* =========================================
   13. SIDEBAR & WIDGETS
========================================= */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.widget {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.widget ul li {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
}

.widget ul li a:hover { color: var(--accent); }

/* Partner links widget */
.widget-partners .partner-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.widget-partners .partner-link:last-child { border-bottom: none; }

.widget-partners .partner-link-domain {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.widget-partners .partner-link-arrow {
    font-size: 0.75rem;
    color: var(--muted2);
    transition: all 0.2s;
}

.widget-partners .partner-link:hover .partner-link-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* =========================================
   14. FOOTER
========================================= */
#colophon {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-top {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .site-logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.footer-links-list li {
    margin-bottom: 0.6rem;
}

.footer-links-list a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.footer-links-list a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted2);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--accent); }

/* =========================================
   15. BUTTONS & FORMS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: none;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::after { transform: translateX(0); }

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

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

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover::after { display: none; }

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

.btn-accent-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.8rem 1.2rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

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

input::placeholder,
textarea::placeholder {
    color: var(--muted2);
    font-weight: 300;
}

label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 3rem;
    max-width: 640px;
}

/* Search form */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input {
    flex: 1;
    border-right: none;
}

.search-form button {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--bg);
    padding: 0.8rem 1.2rem;
    cursor: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.search-form button:hover { background: var(--accent-hover); }

/* =========================================
   16. ANIMATIONS & EFFECTS
========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Glitch effect for logo */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.glitch::before {
    color: var(--accent2);
    animation: glitch1 3s infinite;
}

.glitch::after {
    color: var(--accent);
    animation: glitch2 3s infinite;
}

@keyframes glitch1 {
    0%, 90%, 100% { clip-path: none; transform: none; opacity: 0; }
    92% { clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translate(-2px, 0); opacity: 0.8; }
    94% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px, 0); opacity: 0.8; }
}

@keyframes glitch2 {
    0%, 93%, 100% { clip-path: none; transform: none; opacity: 0; }
    95% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translate(2px, 0); opacity: 0.8; }
    97% { clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); transform: translate(-2px, 0); opacity: 0.8; }
}

/* Scanline overlay */
.scanlines::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9997;
}

/* =========================================
   17. CUSTOM CURSOR
========================================= */
#flyseo-cursor {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: difference;
}

#flyseo-cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* =========================================
   18. RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-timeline::before { display: none; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .container { padding: 0 1.25rem; }
    .section-pad { padding: 4rem 0; }
    .section-pad-lg { padding: 5rem 0; }

    /* Nav mobile */
    .menu-toggle { display: flex; }

    #primary-navigation {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    #primary-navigation.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #primary-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    #primary-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    #primary-navigation a {
        display: block;
        padding: 0.9rem 0;
        font-size: 0.82rem;
    }

    #primary-navigation a::after { display: none; }

    .nav-cta { display: none; }

    /* Stats */
    .stats-inner { gap: 2rem; }

    /* Hero */
    .hero-section h1 { font-size: clamp(2rem, 10vw, 3.5rem); }

    /* Blog grid */
    .blog-grid { grid-template-columns: 1fr; }
    .post-card.post-featured { flex-direction: column; }
    .post-card.post-featured .post-thumbnail { flex: none; aspect-ratio: 16/9; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Forms */
    .contact-form { padding: 1.5rem; }

    /* Grid helpers */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Body cursor */
    body { cursor: auto; }
    #flyseo-cursor, #flyseo-cursor-ring { display: none; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); display: grid; gap: 1.5rem; }
}

/* =========================================
   MISC / UTILITY
========================================= */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

.divider-accent {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem 0;
}

/* WP alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide { margin: 0 -2rem; }
.alignfull { margin: 0 calc(-50vw + 50%); max-width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--muted2); margin-top: 0.5rem; text-align: center; }

/* Gutenberg blocks */
.wp-block-quote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    background: var(--card);
    margin: 2rem 0;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Admin bar */
body.admin-bar #masthead { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar #masthead { top: 46px; }
}
