/*
 * Nexaro One — Custom Styles v2.0
 * Modernized design with dark mode, grain texture, and animations
 *
 * Dark mode works by overriding --wp--preset--color--* variables.
 * All existing WordPress block color classes (has-accent-background-color,
 * has-contrast-text-color, etc.) automatically switch to dark palette.
 *
 * Table of Contents
 * 1.  Dark Mode — CSS Variable Overrides
 * 2.  Custom Properties
 * 3.  Base & Reset
 * 4.  Grain Texture Overlay
 * 5.  Dark Mode Transitions
 * 6.  Header & Navigation
 * 7.  Dark Mode Toggle
 * 8.  Hero Section
 * 9.  Features Section
 * 10. Feature Cards
 * 11. CTA Section
 * 12. Buttons
 * 13. Footer
 * 14. Contact Card
 * 15. Page Content
 * 16. 404 Page
 * 17. Entry Animations
 * 18. Focus States & Accessibility
 * 19. Responsive
 * 20. Reduced Motion
 */


/* ────────────────────────────────────────────────────────────
   1. Dark Mode — WordPress CSS Variable Overrides
   ──────────────────────────────────────────────────────────── */

[data-theme="dark"] {
    --wp--preset--color--base: #09080F;
    --wp--preset--color--base-2: #161425;
    --wp--preset--color--contrast: #EDE9E3;
    --wp--preset--color--contrast-2: #9B95AD;
    --wp--preset--color--contrast-3: #6B6680;
    --wp--preset--color--accent: #8B6FD4;
    --wp--preset--color--accent-2: #A78BFA;
    --wp--preset--color--accent-3: #6C52C0;
    --wp--preset--color--accent-4: #C4B5FD;
    --wp--preset--color--accent-5: #1A1630;
    --wp--preset--color--background: var(--wp--preset--color--base);
    --wp--preset--color--foreground: var(--wp--preset--color--contrast);
    color-scheme: dark;
}


/* ────────────────────────────────────────────────────────────
   2. Custom Properties
   ──────────────────────────────────────────────────────────── */

:root {
    --nx-header-blur: 16px;
    --nx-header-bg: rgba(250, 250, 248, 0.82);
    --nx-border: rgba(15, 11, 26, 0.07);
    --nx-border-hover: rgba(108, 63, 197, 0.2);
    --nx-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 16px rgba(0, 0, 0, 0.02);
    --nx-card-shadow-hover: 0 12px 40px -8px rgba(108, 63, 197, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
    --nx-grain-opacity: 0.3;
    --nx-blob-1: rgba(167, 139, 250, 0.35);
    --nx-blob-2: rgba(124, 82, 212, 0.25);
    --nx-toggle-size: 40px;
    --nx-toggle-bg: rgba(15, 11, 26, 0.06);
    --nx-toggle-bg-hover: rgba(15, 11, 26, 0.1);
    --nx-toggle-icon: #6B6680;
    color-scheme: light;
}

[data-theme="dark"] {
    --nx-header-bg: rgba(9, 8, 15, 0.82);
    --nx-border: rgba(255, 255, 255, 0.06);
    --nx-border-hover: rgba(139, 111, 212, 0.3);
    --nx-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
    --nx-card-shadow-hover: 0 12px 40px -8px rgba(139, 111, 212, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    --nx-grain-opacity: 0.12;
    --nx-blob-1: rgba(139, 111, 212, 0.2);
    --nx-blob-2: rgba(82, 49, 160, 0.15);
    --nx-toggle-bg: rgba(255, 255, 255, 0.06);
    --nx-toggle-bg-hover: rgba(255, 255, 255, 0.1);
    --nx-toggle-icon: #9B95AD;
}


/* ────────────────────────────────────────────────────────────
   3. Base & Reset
   ──────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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


/* ────────────────────────────────────────────────────────────
   4. Grain Texture Overlay
   ──────────────────────────────────────────────────────────── */

.nexaroone-site::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: var(--nx-grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}


/* ────────────────────────────────────────────────────────────
   5. Dark Mode Transitions
   ──────────────────────────────────────────────────────────── */

.nx-theme-transitioning,
.nx-theme-transitioning *,
.nx-theme-transitioning *::before,
.nx-theme-transitioning *::after {
    transition: background-color 0.3s ease,
                color 0.2s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}


/* ────────────────────────────────────────────────────────────
   6. Header & Navigation
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nx-header-bg);
    backdrop-filter: blur(var(--nx-header-blur));
    -webkit-backdrop-filter: blur(var(--nx-header-blur));
    border-bottom: 1px solid var(--nx-border);
}

/* Site title in header */
.nexaroone-site .site-header .wp-block-site-title a {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.375rem;
    color: var(--wp--preset--color--contrast);
    letter-spacing: -0.01em;
}

.nexaroone-site .site-header .wp-block-site-title a:hover {
    color: var(--wp--preset--color--accent);
}

/* Nav links */
.nexaroone-site .site-header .wp-block-navigation-item a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--contrast-2);
    padding: 0.375rem 0;
    transition: color 0.2s ease;
}

.nexaroone-site .site-header .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--accent);
}

.nexaroone-site .site-header .wp-block-navigation-item.current-menu-item > a {
    color: var(--wp--preset--color--accent);
}

/* Shortcode-rendered nav */
.nexaroone-site .nx-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexaroone-site .nx-nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--contrast-2);
    text-decoration: none;
    padding: 0.375rem 0;
    transition: color 0.2s ease;
}

.nexaroone-site .nx-nav-link:hover {
    color: var(--wp--preset--color--accent);
}

.nexaroone-site .nx-nav-link.current-menu-item {
    color: var(--wp--preset--color--accent);
}

/* Footer nav links */
.nexaroone-site .footer-inner .nx-nav-link {
    font-size: 0.875rem;
    color: var(--wp--preset--color--contrast-2);
}

.nexaroone-site .footer-inner .nx-nav-link:hover {
    color: var(--wp--preset--color--accent);
}


/* ────────────────────────────────────────────────────────────
   7. Dark Mode Toggle
   ──────────────────────────────────────────────────────────── */

.nx-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--nx-toggle-size);
    height: var(--nx-toggle-size);
    padding: 0;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    background: var(--nx-toggle-bg);
    color: var(--nx-toggle-icon);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.nx-toggle:hover {
    background: var(--nx-toggle-bg-hover);
    border-color: var(--nx-border-hover);
    transform: scale(1.05);
}

/* Icon visibility — show moon in light, sun in dark */
.nx-toggle .nx-icon-sun {
    display: none;
}

.nx-toggle .nx-icon-moon {
    display: block;
}

[data-theme="dark"] .nx-toggle .nx-icon-sun {
    display: block;
}

[data-theme="dark"] .nx-toggle .nx-icon-moon {
    display: none;
}


/* ────────────────────────────────────────────────────────────
   8. Hero Section
   ──────────────────────────────────────────────────────────── */

/* Primary selector: className. Fallback: first accent-bg fullwidth block */
.nexaroone-site .hero-section,
.nexaroone-site .wp-block-post-content > .wp-block-group.alignfull.has-accent-background-color:first-child {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Animated gradient blob — top-right */
.nexaroone-site .hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 200%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--nx-blob-1), transparent 65%);
    animation: heroBlobDrift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient blob — bottom-left */
.nexaroone-site .hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 70%;
    height: 200%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--nx-blob-2), transparent 65%);
    animation: heroBlobDrift 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* Push hero content above blobs */
.nexaroone-site .hero-section > .wp-block-group,
.nexaroone-site .hero-section > div {
    position: relative;
    z-index: 1;
}

/* Hero typography */
.nexaroone-site .hero-section .wp-block-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.nexaroone-site .hero-section .wp-block-paragraph {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA button */
.nexaroone-site .hero-section .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease;
}

.nexaroone-site .hero-section .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}


/* ────────────────────────────────────────────────────────────
   9. Features Section
   ──────────────────────────────────────────────────────────── */

/* Primary: className. Fallback: base-bg fullwidth block after hero */
.nexaroone-site .features-section .wp-block-heading,
.nexaroone-site .wp-block-group.alignfull.has-base-background-color .wp-block-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}


/* ────────────────────────────────────────────────────────────
   10. Feature Cards
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .feature-card {
    border-radius: 16px !important;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-card-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease;
    height: 100%;
}

.nexaroone-site .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nx-card-shadow-hover);
    border-color: var(--nx-border-hover);
}

.nexaroone-site .feature-card .wp-block-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
}

.nexaroone-site .feature-card .wp-block-paragraph:first-of-type {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}


/* ────────────────────────────────────────────────────────────
   11. CTA Section
   ──────────────────────────────────────────────────────────── */

/* Primary: className. Fallback: accent-5 fullwidth block */
.nexaroone-site .cta-section,
.nexaroone-site .wp-block-group.alignfull.has-accent-5-background-color {
    position: relative;
    overflow: hidden;
}

.nexaroone-site .cta-section .wp-block-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}


/* ────────────────────────────────────────────────────────────
   12. Buttons
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .wp-block-button__link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nexaroone-site .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px -4px rgba(108, 63, 197, 0.35);
}


/* ────────────────────────────────────────────────────────────
   13. Footer
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .site-footer {
    border-top: 1px solid var(--nx-border);
    background: var(--wp--preset--color--base);
}

.nexaroone-site .footer-brand {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    color: var(--wp--preset--color--contrast);
}

.nexaroone-site .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexaroone-site .footer-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wp--preset--color--contrast-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nexaroone-site .footer-links a:hover {
    color: var(--wp--preset--color--accent);
}

.nexaroone-site .footer-copy {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--contrast-3);
}


/* ────────────────────────────────────────────────────────────
   14. Contact Card
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .contact-card {
    border-radius: 16px !important;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-card-shadow);
}

.nexaroone-site .contact-card a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(108, 63, 197, 0.2);
    transition: border-color 0.2s ease;
}

.nexaroone-site .contact-card a:hover {
    border-bottom-color: var(--wp--preset--color--accent);
}


/* ────────────────────────────────────────────────────────────
   15. Page Content
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .page-content {
    min-height: 50vh;
}

.nexaroone-site .page-content .wp-block-heading,
.nexaroone-site .wp-block-post-content .wp-block-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.nexaroone-site .page-content .wp-block-paragraph,
.nexaroone-site .wp-block-post-content .wp-block-paragraph {
    line-height: 1.75;
}

/* Skip link for accessibility */
.nexaroone-site .skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    padding: 0.5rem 1rem;
    z-index: 10001;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.nexaroone-site .skip-link:focus {
    top: 0;
}


/* ────────────────────────────────────────────────────────────
   16. 404 Page
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 4rem 1.5rem;
}

.nexaroone-site .nx-404 .nx-404-code {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 1;
    color: var(--wp--preset--color--accent);
    opacity: 0.3;
    margin: 0 0 1rem;
}

.nexaroone-site .nx-404 .wp-block-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

.nexaroone-site .nx-404 .nx-404-desc {
    color: var(--wp--preset--color--contrast-2);
    max-width: 400px;
    margin-bottom: 2rem;
}

.nexaroone-site .nx-404 .wp-block-button__link {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--base-2);
}


/* ────────────────────────────────────────────────────────────
   17. Entry Animations
   ──────────────────────────────────────────────────────────── */

@keyframes heroBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
}

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

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

/* Hero content stagger */
.nexaroone-site .hero-section .wp-block-group > .wp-block-heading {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.nexaroone-site .hero-section .wp-block-group > p:nth-of-type(1) {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.nexaroone-site .hero-section .wp-block-group > p:nth-of-type(2) {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.nexaroone-site .hero-section .wp-block-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Feature cards stagger */
.nexaroone-site .feature-card {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nexaroone-site .wp-block-columns:first-of-type .wp-block-column:nth-child(1) .feature-card { animation-delay: 0.1s; }
.nexaroone-site .wp-block-columns:first-of-type .wp-block-column:nth-child(2) .feature-card { animation-delay: 0.2s; }
.nexaroone-site .wp-block-columns:first-of-type .wp-block-column:nth-child(3) .feature-card { animation-delay: 0.3s; }

.nexaroone-site .wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(1) .feature-card { animation-delay: 0.4s; }
.nexaroone-site .wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(2) .feature-card { animation-delay: 0.5s; }

/* Sections fade in */
.nexaroone-site .features-section,
.nexaroone-site .wp-block-group.alignfull.has-base-background-color {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.nexaroone-site .cta-section,
.nexaroone-site .wp-block-group.alignfull.has-accent-5-background-color {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}


/* ────────────────────────────────────────────────────────────
   18. Focus States & Accessibility
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

.nexaroone-site .wp-block-button__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 3px;
}

.nexaroone-site .wp-block-navigation-item a:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nexaroone-site a:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Heading anchors scroll margin */
.nexaroone-site .wp-block-heading[id] {
    scroll-margin-top: 5rem;
}


/* ────────────────────────────────────────────────────────────
   19. Responsive
   ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .nexaroone-site .hero-section .wp-block-heading {
        font-size: clamp(2.25rem, 7vw, 4rem);
    }
}

@media (max-width: 782px) {
    .nx-toggle {
        --nx-toggle-size: 36px;
    }

    .nexaroone-site .site-header .wp-block-navigation-item a {
        font-size: 0.875rem;
    }

    .nexaroone-site .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .nexaroone-site .feature-card:hover {
        transform: translateY(-3px);
    /* Mobile header — wrap nav below logo */
    .nexaroone-site .site-header .is-nowrap,
    .nexaroone-site .site-header [class*="is-layout-flex"].is-nowrap {
        flex-wrap: wrap !important;
    }

    .nexaroone-site .nx-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 0.625rem;
        border-top: 1px solid var(--nx-border);
        margin-top: 0.375rem;
    }

    .nexaroone-site .nx-logo img {
        height: 36px;
    }

    }
}

@media (max-width: 599px) {
    .nexaroone-site .hero-section .wp-block-heading {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .nexaroone-site .hero-section .wp-block-paragraph {
        font-size: 1rem !important;
    }
}


/* ────────────────────────────────────────────────────────────
   20. Reduced Motion
   ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .nexaroone-site::after {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ────────────────────────────────────────────────────────────
   21. Utility — print
   ──────────────────────────────────────────────────────────── */

@media print {
    .nexaroone-site::after,
    .nexaroone-site .nx-toggle,
    .nexaroone-site .site-header {
        display: none !important;
    }
}
/*
 * Nexaro One — Landing Page Additions v3.0
 * App landing page: hero with phone mockup, features, FAQ, notify CTA
 */

/* ────────────────────────────────────────────────────────────
   Phone Mockup
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-phone {
    position: relative;
    width: 260px;
    height: 530px;
    border-radius: 36px;
    border: 6px solid var(--wp--preset--color--contrast);
    background: var(--wp--preset--color--contrast);
    padding: 6px;
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.18),
        0 10px 20px -8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px rgba(255,255,255,0.05);
    flex-shrink: 0;
    animation: phoneFloat 6s ease-in-out infinite;
}

.nexaroone-site .nx-phone::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: var(--wp--preset--color--contrast);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.nexaroone-site .nx-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--wp--preset--color--base);
    display: flex;
    flex-direction: column;
}

.nexaroone-site .nx-phone-status {
    height: 28px;
    padding: 10px 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--wp--preset--color--contrast);
}

.nexaroone-site .nx-phone-status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nexaroone-site .nx-phone-header {
    padding: 12px 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexaroone-site .nx-phone-header-title {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--wp--preset--color--contrast);
}

.nexaroone-site .nx-phone-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent-5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexaroone-site .nx-phone-balance {
    margin: 4px 14px 10px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--accent-2) 100%);
    color: #fff;
}

.nexaroone-site .nx-phone-balance-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

.nexaroone-site .nx-phone-balance-amount {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    margin: 4px 0 2px;
    line-height: 1.1;
}

.nexaroone-site .nx-phone-balance-sub {
    font-size: 11px;
    opacity: 0.7;
    font-family: 'DM Sans', sans-serif;
}

.nexaroone-site .nx-phone-txn-list {
    padding: 4px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nexaroone-site .nx-phone-txn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.nexaroone-site .nx-phone-txn-icon {
    width: 32px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.nexaroone-site .nx-phone-txn-info { flex: 1; min-width: 0; }

.nexaroone-site .nx-phone-txn-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nexaroone-site .nx-phone-txn-date {
    font-size: 10px;
    color: var(--wp--preset--color--contrast-3);
    font-family: 'DM Sans', sans-serif;
}

.nexaroone-site .nx-phone-txn-amount {
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    flex-shrink: 0;
}

.nexaroone-site .nx-phone-txn-pos { color: #16a34a; }
.nexaroone-site .nx-phone-txn-neg { color: var(--wp--preset--color--contrast); }

.nexaroone-site .nx-phone-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 6px;
    border-top: 1px solid var(--nx-border);
    margin: 0 14px;
}

.nexaroone-site .nx-phone-nav-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wp--preset--color--contrast-3);
}

.nexaroone-site .nx-phone-nav-item.is-active {
    background: var(--wp--preset--color--accent);
    width: 18px;
    border-radius: 3px;
}


/* ────────────────────────────────────────────────────────────
   Hero Layout
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0;
}

.nexaroone-site .nx-hero-text {
    flex: 1;
    min-width: 0;
}

.nexaroone-site .nx-hero-visual {
    flex-shrink: 0;
    position: relative;
}

.nexaroone-site .nx-hero-visual::before {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--nx-blob-1), transparent 60%);
    z-index: -1;
    animation: heroBlobDrift 20s ease-in-out infinite;
}

.nexaroone-site .nx-hero-section .nx-hero h1,
.nexaroone-site .nx-hero-section h1 {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--base-2);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.nexaroone-site .nx-hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--wp--preset--color--accent-5);
    margin-top: 0.75rem;
    margin-bottom: 0;
    max-width: 480px;
}

.nexaroone-site .nx-hero-note {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--accent-5);
    opacity: 0.6;
    margin-top: 0.75rem;
    margin-bottom: 0;
}


/* Badge on purple hero background — increase contrast */
.nexaroone-site .nx-hero-section .nx-badge {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}


/* ────────────────────────────────────────────────────────────
   Badge
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--accent-4);
    background: rgba(167, 139, 250, 0.15);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .nexaroone-site .nx-badge {
    border-color: rgba(139, 111, 212, 0.25);
    background: rgba(139, 111, 212, 0.15);
}


/* ────────────────────────────────────────────────────────────
   Notify Form
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-notify-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 420px;
}

.nexaroone-site .nx-notify-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nexaroone-site .nx-notify-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nexaroone-site .nx-notify-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
    background: rgba(255,255,255,0.1);
}

.nexaroone-site .nx-notify-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--accent);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nexaroone-site .nx-notify-form button:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.2);
}

.nexaroone-site .nx-notify-form button:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 2px;
}

.nexaroone-site .nx-notify-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nexaroone-site .nx-notify-success.is-visible {
    display: flex;
}


/* ────────────────────────────────────────────────────────────
   Feature Icons (SVG-based, replaces emojis)
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--wp--preset--color--accent);
    flex-shrink: 0;
}

.nexaroone-site .nx-feat-icon svg {
    width: 24px;
    height: 24px;
}



/* ────────────────────────────────────────────────────────────
   Steps (How it works) — Timeline-ready base
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px -2px rgba(108, 63, 197, 0.3);
}

.nexaroone-site .nx-step-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.375rem;
    margin-bottom: 0;
}

.nexaroone-site .nx-step-title {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.nexaroone-site .nx-step-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--wp--preset--color--contrast-2);
    margin-top: 0.375rem;
    margin-bottom: 0;
}


/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-faq-item {
    border-bottom: 1px solid var(--nx-border);
}

.nexaroone-site .nx-faq-item:first-child {
    border-top: 1px solid var(--nx-border);
}

.nexaroone-site .nx-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--wp--preset--color--contrast);
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.nexaroone-site .nx-faq-q::-webkit-details-marker { display: none; }
.nexaroone-site .nx-faq-q::marker { content: ''; }

.nexaroone-site .nx-faq-q:hover {
    color: var(--wp--preset--color--accent);
}

.nexaroone-site .nx-faq-q::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--wp--preset--color--contrast-3);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.nexaroone-site details.nx-faq-item[open] > .nx-faq-q::after {
    transform: rotate(45deg);
}

.nexaroone-site .nx-faq-a {
    padding: 0 0 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast-2);
}


/* ────────────────────────────────────────────────────────────
   Final CTA
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-final-cta-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0;
}

.nexaroone-site .nx-final-cta-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0.75rem auto 0;
}


/* ────────────────────────────────────────────────────────────
   Feature section heading
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-section-heading {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.nexaroone-site .nx-section-sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast-2);
    max-width: 540px;
    margin: 0.5rem auto 0;
}

.nexaroone-site .nx-section-sub-left {
    max-width: none;
    margin: 0.5rem 0 0;
}


/* ────────────────────────────────────────────────────────────
   Animations
   ──────────────────────────────────────────────────────────── */

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.nexaroone-site .nx-hero-visual {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}


/* ────────────────────────────────────────────────────────────
   Responsive — Landing Page
   ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .nexaroone-site .nx-hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }

    .nexaroone-site .nx-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nexaroone-site .nx-hero-desc,
    .nexaroone-site .nx-hero-note {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .nexaroone-site .nx-notify-form {
        max-width: 100%;
        justify-content: stretch;
    }

    .nexaroone-site .nx-notify-form input[type="email"] {
        min-width: 0;
    }

    .nexaroone-site .nx-phone {
        width: 200px;
        height: 420px;
    }

    .nexaroone-site .nx-section-sub {
        max-width: none;
    }

    /* Feature cards — stack vertically on tablet */
    .nexaroone-site .feature-card {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    }

    /* Hero heading clamp */
    .nexaroone-site .nx-hero-section h1,
    .nexaroone-site .nx-hero-section .wp-block-heading:first-of-type {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    }

    /* Badge */
    .nexaroone-site .nx-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    /* Phone mockup */
    .nexaroone-site .nx-phone {
        width: 180px;
        height: 370px;
        border-radius: 30px;
        padding: 5px;
    }

    .nexaroone-site .nx-phone-screen {
        border-radius: 25px;
    }

    .nexaroone-site .nx-phone::before {
        width: 70px;
        height: 18px;
    }

    .nexaroone-site .nx-phone-balance-amount {
        font-size: 22px;
    }

    .nexaroone-site .nx-phone-txn-name {
        font-size: 11px;
    }

    .nexaroone-site .nx-phone-txn-amount {
        font-size: 11px;
    }

    /* Notify form */
    .nexaroone-site .nx-notify-form {
        flex-direction: column;
        gap: 0.625rem;
    }

    .nexaroone-site .nx-notify-form input[type="email"],
    .nexaroone-site .nx-notify-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .nexaroone-site .nx-notify-success {
        width: 100%;
        box-sizing: border-box;
    }

    /* Steps — mobile timeline layout */
    /* ── Steps: Timeline layout on mobile ── */

    /* Force columns to stack and use full width */
    .nexaroone-site .how-it-works-section .wp-block-columns {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Each step is a timeline item */
    .nexaroone-site .how-it-works-section .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 0 !important;
        position: relative;
        padding-left: 4.5rem !important;
        padding-bottom: 2.25rem !important;
    }

    /* Vertical connecting line — starts from below the circle */
    .nexaroone-site .how-it-works-section .wp-block-column::before {
        content: '';
        position: absolute;
        left: 23px;
        top: 56px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--wp--preset--color--accent-4), var(--nx-border));
        border-radius: 1px;
        opacity: 0.5;
    }

    /* Hide line on last step */
    .nexaroone-site .how-it-works-section .wp-block-column:last-child::before {
        display: none;
    }

    .nexaroone-site .how-it-works-section .wp-block-column:last-child {
        padding-bottom: 0 !important;
    }

    /* Step number — positioned on the timeline line */
    .nexaroone-site .how-it-works-section .wp-block-column > .wp-block-group {
        position: relative;
    }

    .nexaroone-site .how-it-works-section .wp-block-column > .wp-block-group > .nx-step-num {
        position: absolute;
        left: -74px;
        top: 0;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin: 0;
        z-index: 1;
        box-shadow: 0 4px 20px -4px rgba(108, 63, 197, 0.35);
    }

    /* Step text adjustments */
    .nexaroone-site .how-it-works-section .nx-step-label {
        margin-top: 0.5rem;
    }

    .nexaroone-site .how-it-works-section .nx-step-title {
        font-size: 1.125rem;
        font-weight: 600;
    }

    .nexaroone-site .how-it-works-section .nx-step-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 0.375rem;
    }

    /* Section container — reduce padding on mobile */
    .nexaroone-site .how-it-works-section.wp-block-group {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }


    /* FAQ text */
    .nexaroone-site .nx-faq-q {
        font-size: 0.9375rem;
        padding: 1rem 0;
    }

    .nexaroone-site .nx-faq-a {
        font-size: 0.875rem;
        line-height: 1.65;
        padding: 0 0 1rem;
    }

    /* Section headings */
    .nexaroone-site .nx-section-heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .nexaroone-site .nx-final-cta-heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Hero section vertical padding */
    .nexaroone-site .nx-hero-section.wp-block-group {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    /* Feature section spacing */
    .nexaroone-site .features-section.wp-block-group {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    /* Other section spacing */
    .nexaroone-site .how-it-works-section.wp-block-group,
    .nexaroone-site .faq-section.wp-block-group,
    .nexaroone-site .nx-final-cta.wp-block-group {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }


    /* Logo slightly smaller on mobile */
    .nexaroone-site .nx-logo img {
        height: 36px;
    }

    /* Footer */
    .nexaroone-site .footer-inner {
    /* Contact form mobile */
    .nexaroone-site .contact-card {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

        flex-direction: column !important;
        text-align: center;
        gap: 0.75rem !important;
        align-items: center;
    }

    .nexaroone-site .footer-links {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .nexaroone-site .nx-phone {
        width: 160px;
        height: 330px;
        border-radius: 26px;
    }

    .nexaroone-site .nx-phone-screen {
        border-radius: 21px;
    }

    .nexaroone-site .nx-phone-balance {
        margin: 2px 10px 8px;
        padding: 14px;
    }

    .nexaroone-site .nx-phone-balance-amount {
        font-size: 20px;
    }

    .nexaroone-site .nx-phone-txn-list {
        padding: 2px 10px;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexaroone-site .nx-phone {
        animation: none;
    }

    .nexaroone-site .nx-hero-visual {
        animation: none;
    }
}


/* ────────────────────────────────────────────────────────────
   Print
   ──────────────────────────────────────────────────────────── */

@media print {
    .nexaroone-site .nx-phone,
    .nexaroone-site .nx-phone::before {
        animation: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}


   Contact Form Inputs
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-contact-form input,
.nexaroone-site .nx-contact-form textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexaroone-site .nx-contact-form input:focus,
.nexaroone-site .nx-contact-form textarea:focus {
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.1);
}

.nexaroone-site .nx-contact-form input::placeholder,
.nexaroone-site .nx-contact-form textarea::placeholder {
    color: var(--wp--preset--color--contrast-3);
}

/* ────────────────────────────────────────────────────────────
   Logo (light/dark swap)
   ──────────────────────────────────────────────────────────── */

.nexaroone-site .nx-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.nexaroone-site .nx-logo img {
    height: 42px;
    width: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Default: show light logo, hide dark */
.nexaroone-site .nx-logo-dark {
    display: none;
}

.nexaroone-site .nx-logo-light {
    display: block;
}

/* Dark mode: show dark logo, hide light */
[data-theme="dark"] .nexaroone-site .nx-logo-dark {
    display: block;
}

[data-theme="dark"] .nexaroone-site .nx-logo-light {
    display: none;
}

/* Hover effect */
.nexaroone-site .nx-logo:hover img {
    opacity: 0.8;
    transform: scale(1.03);
}
