/* ═══════════════════════════════════════════════════════════════════════════
   N8N-RESOURCES  ·  Gurey AI Design System
   Page: /n8n-resources  (index — free workflows listing)

   Layers
   ─────
   1.  Design System Tokens  (extends gurey-page.css)
   2.  Typography Utilities
   3.  Animation Keyframes & Utilities
   4.  Accessibility Utilities
   5.  Layout – Main & Container
   6.  Component – Page Header
   7.  Component – Workflow Card Grid
   8.  Component – Bottom CTA Section
   9.  Component – Navbar Active State
   10. Responsive Overrides
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   1. DESIGN SYSTEM TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* ── Gradient palette ────────────────────────────────────────────────── */
    --gradient-start:  #059669;
    --gradient-mid:    #42ff24;
    --gradient-end:    #d0ff00;

    /* ── Brand accents ───────────────────────────────────────────────────── */
    --accent-primary:   #53FF2B;
    --accent-secondary: #2FFF00;

    /* ── Neutrals ─────────────────────────────────────────────────────────── */
    --black:     #000000;
    --off-white: #F9F9F8;
    --deep-blue: #172554;

    /* ── Gray scale ──────────────────────────────────────────────────────── */
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* ── Card palette (light card on dark bg) ────────────────────────────── */
    --color-navy:         #051c3e;
    --color-vivid-blue:   #2863f0;
    --color-bg-card:      #f3f5fb;
    --color-slate-border: #e2e8f0;

    /* ── Opacity scale ───────────────────────────────────────────────────── */
    --op-90: rgba(255,255,255,0.90);
    --op-80: rgba(255,255,255,0.80);
    --op-50: rgba(255,255,255,0.50);
    --op-40: rgba(255,255,255,0.40);
    --op-20: rgba(255,255,255,0.20);
    --op-10: rgba(255,255,255,0.10);

    /* ── Shadow scale ────────────────────────────────────────────────────── */
    --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* ── Card-specific shadows ───────────────────────────────────────────── */
    --shadow-card:       0 4px 24px rgba(5,28,62,0.06);
    --shadow-card-hover: 0 8px 32px rgba(5,28,62,0.13);

    /* ── Glow ────────────────────────────────────────────────────────────── */
    --glow-green:        0 0 20px rgba(66,255,36,0.40);
    --glow-green-strong: 0 0 30px rgba(66,255,36,0.60), 0 0 60px rgba(66,255,36,0.30);

    /* ── Easing ──────────────────────────────────────────────────────────── */
    --ease-out:    cubic-bezier(0,0,0.2,1);
    --ease-custom: cubic-bezier(0.5,0,0,1);

    /* ── Durations ───────────────────────────────────────────────────────── */
    --dur-fast:   150ms;
    --dur-normal: 300ms;
    --dur-slow:   500ms;
    --dur-slower: 800ms;

    /* ── Font (Inter — reliable system-ui fallback, spec-aligned) ──────── */
    --font-ds: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.n8n-main,
.n8n-main * {
    font-family: var(--font-ds);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fluid type scale — defined in full in the H1 block below */

/* Screen-reader only */
.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;
}

/* Focus-visible ring (WCAG AA) */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. ANIMATION KEYFRAMES & UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes gradient-flow {
    0%   { background-position: 0%   50%; }
    100% { background-position: 300% 50%; }
}

@keyframes gradient-text-flow {
    0%   { background-position: 0%   center; }
    100% { background-position: 300% center; }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ── Scroll-reveal (design system §6.2) ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity  var(--dur-slower) var(--ease-custom),
        transform var(--dur-slower) var(--ease-custom);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Text stagger children */
.text-reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity  0.8s ease-out,
        transform 0.8s ease-out;
}
.reveal.active .text-reveal-item:nth-child(1) { transition-delay: 0.10s; }
.reveal.active .text-reveal-item:nth-child(2) { transition-delay: 0.25s; }
.reveal.active .text-reveal-item:nth-child(3) { transition-delay: 0.40s; }
.reveal.active .text-reveal-item:nth-child(4) { transition-delay: 0.55s; }
.reveal.active .text-reveal-item {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient text (design system §2.2) */
.ds-gradient-text {
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-mid), var(--gradient-end), var(--gradient-start));
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-text-flow 8s linear infinite;
}

/* Gradient text fallback */
@supports not (background-clip: text) {
    .ds-gradient-text { color: var(--gradient-start); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. ACCESSIBILITY UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Breadcrumb (visually subtle, crawler-friendly) */
.n8n-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}
.n8n-breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--dur-normal) ease;
}
.n8n-breadcrumb a:hover {
    color: var(--accent-primary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. LAYOUT – MAIN & CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.n8n-main {
    min-height: calc(100vh - 5rem);
    padding-top: 7.25rem;   /* clears fixed 5rem navbar + breathing room */
    padding-bottom: 6rem;
    background-color: var(--color-bg-main, #0F140F); /* inherits from gurey-page.css */
}

/* Section container (matches design system §4.2 / §8.2) */
.n8n-section-container {
    width: 100%;
    max-width: 74.625rem; /* 1194px */
    margin-inline: auto;
    padding-inline: 1.5rem;
}
@media (min-width: 768px)  { .n8n-section-container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .n8n-section-container { padding-inline: 2.5rem; } }


/* ═══════════════════════════════════════════════════════════════════════════
   6. COMPONENT – PAGE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.n8n-header {
    text-align: center;
    padding: 0 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Ambient background glow */
.n8n-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 640px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(66,255,36,0.08) 0%,
        rgba(5,150,105,0.04) 50%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.n8n-header-inner {
    position: relative;
    z-index: 1;
    margin-inline: auto;
    max-width: 44rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Badge pill ───────────────────────────────────────────────────────────── */
.n8n-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(83,255,43,0.3);
    background-color: rgba(83,255,43,0.06);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 16px -4px rgba(83,255,43,0.2);
}

/* ── H1 — single-line, H3 scale per design system ───────────────────────── */
.n8n-page-title {
    /* H3 size: 2.5rem desktop / 1.75rem mobile — design system §3.2 */
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-white, #fff);
    margin-bottom: 1.25rem;

    /* Force a single line — never wraps */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;

    /* Gradient text — exact spec: #059669 → #42ff24 → #d0ff00 → #059669 */
    background-image: linear-gradient(to right, #059669, #42ff24, #d0ff00, #059669);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-text-flow 8s linear infinite;
}

/* Mobile: H3 mobile scale */
@media (max-width: 767px) {
    .n8n-page-title {
        font-size: 1.75rem;
    }
}

@supports not (background-clip: text) {
    .n8n-page-title { color: #059669; }
}

/* ── Subtitle ─────────────────────────────────────────────────────────────── */
.n8n-page-subtitle {
    max-width: 34rem;
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    line-height: 1.75;
    color: var(--gray-400);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.n8n-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.875rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.n8n-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.n8n-stat-sep {
    color: var(--gray-700);
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. COMPONENT – WORKFLOW CARD GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.n8n-grid-section {
    width: 100%;
    max-width: 74.625rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    margin-bottom: 5.9375rem; /* design system §4.2 section spacing */
}
@media (min-width: 768px)  { .n8n-grid-section { padding-inline: 2rem; } }
@media (min-width: 1024px) { .n8n-grid-section { padding-inline: 2.5rem; } }

/* Responsive grid — 1 → 2 → 3 columns */
.n8n-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .n8n-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .n8n-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── WORKFLOW CARD ─────────────────────────────────────────────────────────── */
.workflow-card {
    border-radius: 1.25rem;
}

.workflow-card-link {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-slate-border);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    height: 100%;
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal) var(--ease-out);
    will-change: transform, box-shadow;
}

.workflow-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

/* Image wrapper */
.workflow-card-img-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
    border-bottom: 1px solid var(--color-slate-border);
    background-color: #ffffff;
    padding: 0.5rem;
    flex-shrink: 0;
    position: relative;
}

/* Subtle green shimmer on hover over image */
.workflow-card-link:hover .workflow-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(83,255,43,0.18);
    pointer-events: none;
}

.workflow-card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.875rem;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.workflow-card-link:hover .workflow-card-img {
    transform: scale(1.025);
}

/* Placeholder while image loads */
.workflow-card-img:not([src]),
.workflow-card-img[src=""] {
    min-height: 180px;
    background: linear-gradient(135deg, var(--gray-100) 0%, #f3f5fb 100%);
}

/* Title bar */
.workflow-card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    flex: 1;
}

.workflow-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.45;
    flex: 1;
}

/* Arrow icon */
.workflow-card-arrow {
    flex-shrink: 0;
    color: rgba(5,28,62,0.28);
    display: flex;
    align-items: center;
    transition:
        color var(--dur-normal) ease,
        transform var(--dur-normal) ease;
}

.workflow-card-link:hover .workflow-card-arrow {
    color: var(--color-vivid-blue);
    transform: translateX(3px);
}

/* Stagger delays applied by JS */
.workflow-card.reveal {
    transition:
        opacity  0.7s var(--ease-custom),
        transform 0.7s var(--ease-custom);
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. COMPONENT – BOTTOM CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.n8n-cta-section {
    width: 100%;
    max-width: 74.625rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    margin-top: 1rem;
}
@media (min-width: 768px)  { .n8n-cta-section { padding-inline: 2rem; } }
@media (min-width: 1024px) { .n8n-cta-section { padding-inline: 2.5rem; } }

.n8n-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(83,255,43,0.15);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(83,255,43,0.07) 0%, transparent 65%),
        rgba(255,255,255,0.02);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glowing top edge */
.n8n-cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(83,255,43,0.6), transparent);
    pointer-events: none;
}

@media (min-width: 768px) {
    .n8n-cta-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 2.5rem;
    }
}

.n8n-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.n8n-cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.n8n-cta-heading {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-white, #fff);
}

.n8n-cta-sub {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ── Primary DS Button (design system §5.1) ───────────────────────────────── */
.ds-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    height: 52px;
    padding-inline: 2rem;

    font-family: var(--font-ds);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;

    background-image: linear-gradient(to right,
        var(--gradient-start),
        var(--gradient-mid),
        var(--gradient-end),
        var(--gradient-start));
    background-size: 300% auto;
    border: 2px solid var(--deep-blue);
    border-radius: 9999px;

    animation: gradient-flow 4s linear infinite;
    transition:
        transform var(--dur-normal) ease,
        box-shadow var(--dur-normal) ease;
    cursor: pointer;
}

.ds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}
.ds-btn-primary:active  { transform: translateY(0); }
.ds-btn-primary:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.ds-btn-primary iconify-icon {
    transition: transform var(--dur-normal) ease;
}
.ds-btn-primary:hover iconify-icon {
    transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. COMPONENT – NAVBAR ACTIVE STATE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Highlight the current page link in navbar */
.navbar-nav .nav-active {
    color: var(--accent-primary) !important;
    position: relative;
}
.navbar-nav .nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: var(--accent-primary);
    opacity: 0.7;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background-color: rgba(15, 20, 15, 0.92);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    .n8n-main {
        padding-top: 5.75rem;
    }

    .n8n-header {
        padding-bottom: 2.5rem;
    }

    .n8n-cta-inner {
        padding: 2rem 1.5rem;
    }

    .ds-btn-primary {
        width: 100%;
        justify-content: center;
        max-width: 20rem;
    }
}

@media (max-width: 767px) {
    .n8n-grid-section,
    .n8n-cta-section {
        padding-inline: 1.25rem;
    }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .text-reveal-item,
    .workflow-card-link,
    .ds-btn-primary,
    .n8n-page-title {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .text-reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. LIGHT PAGE THEME
   Completely overrides the dark main-site styles (gurey-page.css).
   Scoped by being loaded after gurey-page.css — naturally takes priority.
   Applies to: body, navbar, mobile menu, main content, footer.
═══════════════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────────────
   GLOBAL
─────────────────────────────────────────────────────────────────────── */
body {
    background-color: #F9F9F8 !important;
    color: #1E1E1E !important;
}

::selection {
    background-color: #2FFF00;
    color: #1E1E1E;
}


/* ───────────────────────────────────────────────────────────────────────
   NAVBAR
─────────────────────────────────────────────────────────────────────── */
.navbar {
    background-color: rgba(249, 249, 248, 0.94) !important;
    border-bottom: 1px solid #E5E7EB !important;
}
.navbar.scrolled {
    background-color: rgba(249, 249, 248, 0.98) !important;
    box-shadow: 0 1px 0 #E5E7EB !important;
}

/* Logo gradient — swap to brand greens so it reads on light bg */
.navbar-logo-text.animate-gradient-text {
    background-image: linear-gradient(to right, #059669, #42ff24, #d0ff00, #059669) !important;
    -webkit-text-fill-color: transparent !important;
}

.navbar-nav a {
    color: #374151 !important;
}
.navbar-nav a:hover {
    color: #000000 !important;
}
.navbar-nav .nav-active {
    color: #059669 !important;
}
.navbar-nav .nav-active::after {
    background: #059669 !important;
}

/* CTA pill — dark on light bg */
.navbar-cta {
    background-color: #1E1E1E !important;
    border: 1px solid #1E1E1E !important;
}
.navbar-cta span {
    color: #F9F9F8 !important;
}
.navbar-cta:hover {
    border-color: #2FFF00 !important;
}
.navbar-cta:hover span {
    color: #2FFF00 !important;
}
.navbar-cta-bg {
    background-color: rgba(47, 255, 0, 0.08) !important;
}

/* Hamburger lines */
.navbar-hamburger span {
    background-color: #1E1E1E !important;
}


/* ───────────────────────────────────────────────────────────────────────
   MOBILE MENU
─────────────────────────────────────────────────────────────────────── */
.mobile-menu {
    background-color: rgba(249, 249, 248, 0.99) !important;
    backdrop-filter: blur(20px) !important;
}
.mobile-menu::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(47, 255, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(47, 255, 0, 0.02) 0%, transparent 40%) !important;
}

.mobile-menu-close {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.10) !important;
    color: #1E1E1E !important;
}
.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.10) !important;
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
    transform: rotate(90deg);
}

.mobile-menu-nav a {
    color: #1E1E1E !important;
}
.mobile-menu-nav a:hover {
    color: #059669 !important;
}

.mobile-menu-footer {
    border-top: 1px solid #E5E7EB !important;
}

/* CTA pill inside mobile menu */
.mobile-menu-cta-inner {
    background-color: #1E1E1E !important;
    color: #F9F9F8 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25) !important;
}

.mobile-menu-social-link {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #374151 !important;
}
.mobile-menu-social-link:hover {
    background-color: rgba(5, 150, 105, 0.10) !important;
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.30) !important;
}


/* ───────────────────────────────────────────────────────────────────────
   MAIN CONTENT
─────────────────────────────────────────────────────────────────────── */
.n8n-main {
    background-color: #F9F9F8 !important;
    color: #1E1E1E !important;
}

/* Header ambient glow — greener, lighter tone */
.n8n-header::before {
    background: radial-gradient(
        ellipse at center,
        rgba(5, 150, 105, 0.07) 0%,
        rgba(66, 255, 36, 0.03) 50%,
        transparent 70%) !important;
}

/* Subtitle on light bg */
.n8n-page-subtitle {
    color: #374151 !important;
}

/* Stats bar */
.n8n-stats {
    color: #6B7280 !important;
}
.n8n-stat-sep {
    color: #D1D5DB !important;
}

/* Breadcrumb */
.n8n-breadcrumb ol,
.n8n-breadcrumb a {
    color: #6B7280 !important;
}
.n8n-breadcrumb a:hover {
    color: #059669 !important;
}

/* Card shadow tuned for light bg */
.workflow-card-link {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}
.workflow-card-link:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11) !important;
}

/* CTA strip on light bg */
.n8n-cta-inner {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(47, 255, 0, 0.07) 0%, transparent 65%),
        #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}
.n8n-cta-heading {
    color: #1E1E1E !important;
}
.n8n-cta-sub {
    color: #374151 !important;
}

/* CTA button on light bg — solid green per spec */
.ds-btn-primary {
    background-image: none !important;
    background-color: #2FFF00 !important;
    animation: none !important;
    border-color: #172554 !important;
    color: #000000 !important;
    font-weight: 600 !important;
}
.ds-btn-primary:hover {
    background-color: #42ff24 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(47, 255, 0, 0.40) !important;
}


/* ───────────────────────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: #F9F9F8 !important;
    border-top: 1px solid #E5E7EB !important;
    color: #374151 !important;
    position: relative;
    overflow: visible;
}

/* Green glow at the top of the footer — per spec */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2FFF00, transparent);
    opacity: 0.7;
    pointer-events: none;
}
.site-footer::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 36px;
    background: radial-gradient(ellipse at 50% 0%, rgba(47, 255, 0, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer logo gradient on light bg */
.footer-logo-text.animate-gradient-text {
    background-image: linear-gradient(to right, #059669, #42ff24, #d0ff00, #059669) !important;
}

.footer-description {
    color: #6B7280 !important;
}
.footer-column h4 {
    color: #1E1E1E !important;
}
.footer-column a {
    color: #6B7280 !important;
}
.footer-column a:hover {
    color: #059669 !important;
}
.footer-column a[aria-current="page"] {
    color: #059669 !important;
    font-weight: 500;
}

/* Social icons on light bg */
.social-icon {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #374151 !important;
    border: 1px solid #E5E7EB !important;
}
.social-icon:hover {
    background-color: #2FFF00 !important;
    color: #000000 !important;
    border-color: #2FFF00 !important;
    box-shadow: 0 4px 14px rgba(47, 255, 0, 0.30) !important;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
}
