/* ============================================
   BUTTERFLAI V3 - SECTION STYLES
   All front-page section styling
   ============================================ */

/* ─────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────── */

.v3-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-4xl) var(--section-padding-x);
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

/* Morphing Gradient Background */
.v3-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(105, 108, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(0, 150, 255, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 70%, rgba(105, 108, 255, 0.12) 0%, transparent 50%);
    animation: morphGradient 15s ease-in-out infinite;
    pointer-events: none;
}

/* Second layer for depth */
.v3-hero::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(147, 51, 234, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 90%, rgba(105, 108, 255, 0.1) 0%, transparent 40%);
    animation: morphGradient2 20s ease-in-out infinite;
    pointer-events: none;
}

/* Subtle noise texture overlay */
.v3-hero-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

@keyframes morphGradient {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 1;
    }

    75% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.9;
    }
}

@keyframes morphGradient2 {

    0%,
    100% {
        transform: scale(1.05) rotate(0deg) translateX(0);
        opacity: 0.8;
    }

    33% {
        transform: scale(1) rotate(-2deg) translateX(2%);
        opacity: 1;
    }

    66% {
        transform: scale(1.1) rotate(1deg) translateX(-2%);
        opacity: 0.7;
    }
}

/* Floating Orbs Container */
.v3-hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Individual Orbs */
.v3-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* Primary orb - Large purple/blue */
.v3-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(105, 108, 255, 0.6) 0%, rgba(105, 108, 255, 0) 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb1 25s ease-in-out infinite;
}

/* Secondary orb - Medium violet */
.v3-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.5) 0%, rgba(147, 51, 234, 0) 70%);
    top: 40%;
    right: -5%;
    animation: floatOrb2 20s ease-in-out infinite;
}

/* Tertiary orb - Small blue accent */
.v3-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: 10%;
    left: 20%;
    animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(10%, 15%) scale(1.1);
    }

    50% {
        transform: translate(5%, 5%) scale(0.95);
    }

    75% {
        transform: translate(-5%, 10%) scale(1.05);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-15%, -10%) scale(1.15);
    }

    66% {
        transform: translate(-5%, 5%) scale(0.9);
    }
}

@keyframes floatOrb3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    20% {
        transform: translate(20%, -15%) scale(1.1);
    }

    40% {
        transform: translate(10%, 10%) scale(0.95);
    }

    60% {
        transform: translate(-10%, -5%) scale(1.05);
    }

    80% {
        transform: translate(5%, 15%) scale(1);
    }
}

.v3-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-content);
}

.v3-hero h1 {
    font-size: var(--text-hero);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v3-hero-subtitle {
    font-size: var(--text-headline);
    color: var(--color-text-secondary);
    font-weight: var(--weight-light);
    margin-bottom: var(--space-lg);
    max-width: var(--max-width-text);
    margin-left: auto;
    margin-right: auto;
}

.v3-hero-description {
    font-size: var(--text-subtitle);
    color: var(--color-text-tertiary);
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-xl);
    line-height: var(--leading-relaxed);
}

.v3-hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.v3-hero-visual {
    margin-top: var(--space-3xl);
    width: 100%;
    max-width: 900px;
    mix-blend-mode: lighten;
    border: 1px dashed #312f4b;
    box-shadow: 2px 10px 10px rgba(0, 0, 0);
    border-radius: 18px;
    overflow: hidden;
}

.v3-hero-video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
}

/* ─────────────────────────────────────────
   PROBLEM SECTION
   ───────────────────────────────────────── */

.v3-problem {
    background: var(--color-bg-primary);
    padding: var(--space-4xl) var(--section-padding-x);
}

.v3-problem-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.v3-problem-header h2 {
    font-size: var(--text-display);
    color: var(--color-text-primary);
}

.v3-problem-list {
    max-width: var(--max-width-text);
    margin: 0 auto;
}

.v3-problem-item {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

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

.v3-problem-item p {
    font-size: var(--text-title);
    color: var(--color-text-secondary);
    line-height: var(--leading-snug);
    margin: 0;
}

.v3-problem-item .emphasis {
    color: var(--color-text-primary);
    display: block;
    margin-top: var(--space-xs);
}

.v3-problem-conclusion {
    text-align: center;
    padding-top: var(--space-3xl);
}

.v3-problem-conclusion p {
    font-size: var(--text-headline);
    color: var(--color-text-muted);
    font-weight: var(--weight-light);
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   SOLUTION SECTION
   ───────────────────────────────────────── */

.v3-solution {
    background: var(--color-bg-secondary);
    padding: var(--space-4xl) var(--section-padding-x);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.v3-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 400px;
    background: radial-gradient(ellipse at center top, var(--color-primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.v3-solution-content {
    position: relative;
    z-index: 1;
}

.v3-solution h2 {
    font-size: var(--text-display);
    margin-bottom: var(--space-xl);
}

.v3-solution-visual {
    margin: var(--space-2xl) auto;
    max-width: 900px;
}

.v3-solution-copy {
    font-size: var(--text-subtitle);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.v3-solution-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.v3-solution-feature {
    font-size: var(--text-body);
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.v3-solution-feature::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ─────────────────────────────────────────
   INTELLIGENCE DEMO SECTION
   ───────────────────────────────────────── */

.v3-demo {
    background: var(--color-bg-primary);
    padding: var(--space-4xl) var(--section-padding-x);
}

.v3-demo-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.v3-demo-header h2 {
    font-size: var(--text-display);
}

.v3-demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.v3-demo-question {
    padding: var(--space-lg);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.v3-demo-question p {
    font-size: var(--text-subtitle);
    color: var(--color-text-primary);
    margin: 0;
    font-style: italic;
}

.v3-demo-answer {
    padding: var(--space-lg);
}

.v3-demo-answer-intro {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.v3-demo-insights {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.v3-demo-insights li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-body);
}

.v3-demo-insights li::before {
    content: '→';
    color: var(--color-primary);
    flex-shrink: 0;
}

.v3-demo-sources {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-subtle);
}

.v3-demo-sources-label {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-xs);
}

.v3-demo-sources-list {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
}

.v3-demo-caption {
    text-align: center;
    margin-top: var(--space-xl);
}

.v3-demo-caption p {
    font-size: var(--text-body);
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   FEATURE SECTIONS
   ───────────────────────────────────────── */

.v3-feature {
    padding: var(--space-4xl) var(--section-padding-x);
    position: relative;
    overflow-x: hidden;
}

.v3-feature:nth-child(odd) {
    background: var(--color-bg-primary);
}

.v3-feature:nth-child(even) {
    background: var(--color-bg-secondary);
}

.v3-feature-inner {
    max-width: var(--max-width-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.v3-feature:nth-child(even) .v3-feature-inner {
    direction: rtl;
}

.v3-feature:nth-child(even) .v3-feature-inner>* {
    direction: ltr;
}

.v3-feature h2 {
    font-size: var(--text-headline);
    margin-bottom: var(--space-md);
}

.v3-feature-copy {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.v3-feature-visual {
    aspect-ratio: 4 / 3;
}

.v3-feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.v3-feature-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}

/* Masked video - blends with background */
.v3-video-masked {
    border-radius: 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
}

.v3-feature-callouts {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.v3-feature-callout {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
}

/* ─────────────────────────────────────────
   INTEGRATIONS SECTION
   ───────────────────────────────────────── */

.v3-integrations {
    background: var(--color-bg-tertiary);
    padding: var(--space-2xl) var(--section-padding-x);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v3-integrations-label {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-md);
    max-width: none;
    width: 100%;
}

.v3-integrations-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    opacity: 0.5;
    width: 100%;
}

.v3-integrations-logo {
    height: 32px;
    width: auto;
}

/* ─────────────────────────────────────────
   AUDIENCE SECTION
   ───────────────────────────────────────── */

.v3-audience {
    background: var(--color-bg-primary);
    padding: var(--space-4xl) var(--section-padding-x);
}

.v3-audience-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.v3-audience-header h2 {
    font-size: var(--text-display);
}

.v3-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.v3-audience-card {
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.v3-audience-card h3 {
    font-size: var(--text-title);
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.v3-audience-card .roles {
    font-size: var(--text-body);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.v3-audience-card p {
    font-size: var(--text-body-small);
    color: var(--color-text-tertiary);
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   QUESTIONS SECTION
   ───────────────────────────────────────── */

.v3-questions {
    background: var(--color-bg-secondary);
    padding: var(--space-4xl) var(--section-padding-x);
}

.v3-questions-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.v3-questions-header h2 {
    font-size: var(--text-display);
}

.v3-questions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.v3-question-card {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: default;
}

.v3-question-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ─────────────────────────────────────────
   PRICING SECTION
   ───────────────────────────────────────── */

.v3-pricing {
    background: var(--color-bg-tertiary);
    padding: var(--space-3xl) var(--section-padding-x);
    text-align: center;
}

.v3-pricing h2 {
    font-size: var(--text-headline);
    margin-bottom: var(--space-md);
}

.v3-pricing-copy {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-lg);
}

/* ─────────────────────────────────────────
   BLOG LISTING PAGE
   ───────────────────────────────────────── */

.v3-blog-listing {
    background: var(--color-bg-primary);
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--section-padding-x) var(--space-4xl);
}

.v3-blog-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.v3-blog-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.v3-blog-title {
    font-size: var(--text-display);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.v3-blog-description {
    font-size: var(--text-body);
    color: var(--color-text-tertiary);
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.v3-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.v3-blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

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

.v3-blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.v3-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.v3-blog-card:hover .v3-blog-card-image img {
    transform: scale(1.05);
}

.v3-blog-card-content {
    padding: var(--space-lg);
}

.v3-blog-card-date {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.v3-blog-card-title {
    font-size: var(--text-title);
    margin: var(--space-sm) 0;
    line-height: var(--leading-snug);
}

.v3-blog-card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.v3-blog-card-title a:hover {
    color: var(--color-primary);
}

.v3-blog-card-excerpt {
    font-size: var(--text-body-small);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-md);
    max-width: none;
}

.v3-blog-card-link {
    font-size: var(--text-caption);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
}

.v3-blog-card-link:hover {
    text-decoration: underline;
}

.v3-blog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-3xl);
}

.v3-blog-pagination {
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: center;
}

.v3-blog-pagination .nav-links {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.v3-blog-pagination a,
.v3-blog-pagination span {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-body-small);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.v3-blog-pagination a {
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-subtle);
}

.v3-blog-pagination a:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

.v3-blog-pagination .current {
    background: var(--color-primary);
    color: var(--color-text-primary);
}

/* ─────────────────────────────────────────
   SINGLE BLOG POST
   ───────────────────────────────────────── */

.v3-single-post {
    background: var(--color-bg-primary);
    min-height: 100vh;
}

.v3-single-header {
    padding: calc(var(--header-height) + var(--space-3xl)) var(--section-padding-x) var(--space-2xl);
    text-align: center;
}

.v3-single-header-content {
    max-width: var(--max-width-text);
    margin: 0 auto;
}

.v3-single-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.v3-single-meta a {
    color: var(--color-primary);
    text-decoration: none;
}

.v3-single-title {
    font-size: var(--text-display);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
}

.v3-single-featured {
    max-width: 1000px;
    margin: 0 auto var(--space-3xl);
    padding: 0 var(--section-padding-x);
}

.v3-single-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

.v3-single-container {
    max-width: var(--max-width-text);
    margin: 0 auto;
    padding: 0 var(--section-padding-x) var(--space-4xl);
}

.v3-single-content {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

.v3-single-content h2 {
    font-size: var(--text-headline);
    color: var(--color-text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.v3-single-content h3 {
    font-size: var(--text-title);
    color: var(--color-text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.v3-single-content p {
    margin-bottom: var(--space-md);
    max-width: none;
}

.v3-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.v3-single-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v3-single-content ul,
.v3-single-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.v3-single-content li {
    margin-bottom: var(--space-xs);
}

.v3-single-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-text-tertiary);
    font-style: italic;
}

.v3-single-footer {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-subtle);
}

.v3-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.v3-tag {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    background: var(--color-bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

.v3-tag a {
    color: inherit;
    text-decoration: none;
}

.v3-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.v3-single-nav-link {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.v3-single-nav-link:hover {
    border-color: var(--color-border);
    background: var(--color-bg-tertiary);
}

.v3-single-nav-prev {
    text-align: left;
}

.v3-single-nav-next {
    text-align: right;
}

.v3-single-nav-label {
    display: block;
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.v3-single-nav-title {
    display: block;
    font-size: var(--text-body-small);
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .v3-blog-listing {
        padding: calc(var(--header-height) + var(--space-xl)) var(--section-padding-x) var(--space-2xl);
    }

    .v3-blog-title {
        font-size: var(--text-headline);
    }

    .v3-blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .v3-single-header {
        padding: calc(var(--header-height) + var(--space-xl)) var(--section-padding-x) var(--space-lg);
    }

    .v3-single-title {
        font-size: var(--text-headline);
    }

    .v3-single-nav {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
   404 PAGE
   ───────────────────────────────────────── */

.v3-404 {
    background: var(--color-bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--section-padding-x);
    text-align: center;
}

.v3-404-content {
    max-width: 500px;
}

.v3-404-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: var(--weight-bold);
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(105, 108, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.v3-404-title {
    font-size: var(--text-headline);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.v3-404-description {
    font-size: var(--text-body);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
    max-width: none;
}

.v3-404-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   DEFAULT PAGE TEMPLATE
   ───────────────────────────────────────── */

.v3-page {
    background: var(--color-bg-primary);
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--section-padding-x) var(--space-4xl);
}

.v3-page-container {
    max-width: var(--max-width-text);
    margin: 0 auto;
}

.v3-page-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-subtle);
}

.v3-page-title {
    font-size: var(--text-display);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

.v3-page-content {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

.v3-page-content h2 {
    font-size: var(--text-headline);
    color: var(--color-text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.v3-page-content h3 {
    font-size: var(--text-title);
    color: var(--color-text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.v3-page-content h4 {
    font-size: var(--text-subtitle);
    color: var(--color-text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.v3-page-content p {
    margin-bottom: var(--space-md);
    max-width: none;
}

.v3-page-content ul,
.v3-page-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.v3-page-content li {
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

.v3-page-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v3-page-content a:hover {
    color: var(--color-primary-hover);
}

.v3-page-content strong {
    color: var(--color-text-primary);
    font-weight: var(--weight-semibold);
}

.v3-page-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-text-tertiary);
    font-style: italic;
}

.v3-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.v3-page-content th,
.v3-page-content td {
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    text-align: left;
}

.v3-page-content th {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
}

.v3-page-content hr {
    border: none;
    border-top: 1px solid var(--color-border-subtle);
    margin: var(--space-2xl) 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .v3-page {
        padding: calc(var(--header-height) + var(--space-xl)) var(--section-padding-x) var(--space-2xl);
    }

    .v3-page-title {
        font-size: var(--text-headline);
    }

    .v3-page-content h2 {
        font-size: var(--text-title);
    }

    .v3-page-content h3 {
        font-size: var(--text-subtitle);
    }
}

/* ─────────────────────────────────────────
   FINAL CTA SECTION
   ───────────────────────────────────────── */

.v3-cta {
    background: var(--color-bg-primary);
    padding: var(--space-4xl) var(--section-padding-x);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.v3-cta-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-text);
    margin: 0 auto;
}

.v3-cta h2 {
    font-size: var(--text-display);
    margin-bottom: var(--space-md);
}

.v3-cta-subtitle {
    font-size: var(--text-subtitle);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.v3-cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.v3-cta-tagline {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    font-style: italic;
}

.iti__country-list li {
    background: #000 !important;
    color: #ccc;
}

ul.iti__country-list li:hover {
    background: #222 !important;
    color: #000;
}

ul#iti-0__country-listbox {
    border-radius: 2px !important;
    border-color: #222 !important;
}