/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f6f7fb;
    background-image:
        radial-gradient(1200px 800px at 10% 15%, rgba(0, 80, 157, 0.05), transparent 60%),
        radial-gradient(900px 700px at 90% 10%, rgba(253, 197, 0, 0.04), transparent 60%),
        radial-gradient(1000px 900px at 80% 85%, rgba(157, 0, 255, 0.03), transparent 60%),
        linear-gradient(rgba(248, 249, 250, 0.94), rgba(248, 249, 250, 0.94)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='15' y='40' font-size='25'%3E🇪🇺%3C/text%3E%3C/svg%3E");
    background-size: auto, auto, auto, auto, 96px 96px;
    background-attachment: fixed, fixed, fixed, fixed, scroll;
}

/* Navigation */
.navbar {
    box-shadow: none;
    padding: 0.25rem;
    margin-top: 0.5rem;
    background: transparent;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.navbar .container {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18)) !important;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    position: relative;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

#navbarNav {
    justify-content: center;
}

.navbar .btn-dark {
    background-color: #f5f5f5;
    border: none;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

.navbar .btn-dark:hover {
    background-color: #eeeeee;
    color: #000;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Ensure hero copy elements align perfectly on the left edge */
.hero-copy {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-copy h1,
.hero-copy .lead,
.hero-copy .cta-cluster,
.hero-copy .reassurance-text,
.hero-copy .btn {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Remove any inherited center alignment on small screens */
@media (max-width: 767.98px) {
    .hero-copy {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .hero-copy h1,
    .hero-copy .lead,
    .hero-copy .cta-cluster,
    .hero-copy .reassurance-text {
        text-align: center !important;
    }
}

h1 {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-dark {
    background-color: #000;
    border-color: #000;
}

.btn-dark:hover {
    background-color: #000;
    border-color: #000;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline-dark {
    color: #000;
    border: none;
    background-color: #f5f5f5;
}

.btn-outline-dark:hover {
    background-color: #eeeeee;
    color: #000;
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-cluster {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reassurance-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar .container {
        border-radius: 20px;
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .cta-cluster {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cta-cluster .btn {
        width: 100%;
    }
}

/* Feature cards styling */

.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* Sparkle highlight diagonal streak for hero and large cards */
.hero-animation::after,
.content-section::after,
.vision-section::after,
.pricing-card::after,
.footer .card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -10%;
    width: 120%;
    height: 60%;
    transform: rotate(var(--light-angle, 6deg));
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255, calc(0.25 * var(--light-intensity, 0.6))), rgba(255,255,255,0));
    pointer-events: none;
    filter: blur(6px);
    mix-blend-mode: screen;
}

/* Footer styles (copied from dashboard to match exactly) */
.footer {
    margin-bottom: 0;
    padding-bottom: 4rem; /* Match Dashboard bottom spacing */
}

.footer .card {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin: 0 auto;
    max-width: 1200px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

.footer .card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.footer .card-body {
    padding: 1.5rem;
}

.footer .container {
    max-width: 90%;
    margin: 0 auto;
}

/* Content container styles */
.content-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 48px 0; /* match dashboard tighter rhythm */
    margin: 0 auto var(--section-gap); /* uniform gap between sections */
    box-shadow: var(--glass-shadow);
    max-width: 1200px;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    position: relative;
}

.content-section .container {
    max-width: 90%;
    margin: 0 auto;
}

/* Background for content section */
.content-background {
    padding-top: 60px;
    padding-bottom: var(--section-gap); /* provide consistent breathing room */
}

/* Avoid doubling spacing: last section inside content background has no bottom margin */
.content-background .content-section:last-of-type {
    margin-bottom: 0;
}

/* When a content wrapper follows a vision block, keep spacing consistent with other blocks */
.vision-section + .content-background {
    padding-top: 0;
}

/* Section title styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* Section-specific spacing tweaks */
#how-it-works .section-title {
    margin-bottom: 0.75rem; /* bring subheadline closer to title */
}
#why-different .section-title {
    margin-bottom: 0.75rem; /* match spacing with How it Works */
}

/* How It Works precise grid */
#how-it-works .how-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* stacked wrapper; rows inside manage columns */
    row-gap: 56px; /* gutter between rows per spec */
}

#how-it-works .how-row {
    display: grid;
    grid-template-columns: 5fr 7fr; /* 5/7 split per spec */
    grid-template-areas: 'text visual';
    column-gap: 40px; /* desktop gap per spec */
    align-items: center; /* vertically center text and visual */
}

/* Z layout for step 2 on desktop */
@media (min-width: 769px) {
    #how-it-works .step-2 {
        grid-template-columns: 7fr 5fr; /* swap sizes to keep 5/7 split mirrored */
        grid-template-areas: 'visual text'; /* swap order */
    }
}

/* Stack per step on mobile */
/* Tablet gap */
@media (max-width: 1024px) {
    #how-it-works .how-row { column-gap: 24px; }
}

@media (max-width: 768px) {
    #how-it-works .how-row {
        grid-template-columns: 1fr;
        height: auto;
        row-gap: 16px;
        grid-template-areas:
            'text'
            'visual';
    }
    #how-it-works .how-row { column-gap: 16px; }
}

#how-it-works .how-text {
    display: flex;
    align-items: flex-start;
}

#how-it-works .text-block {
    padding: 0; /* keep to grid; spacing controlled by micro rhythm */
    max-width: 480px; /* fixed width per spec */
}

#how-it-works .text-block p:first-child { /* number badge line */
    margin-bottom: 8px; /* number → heading spacing (we use first line as heading) */
}

#how-it-works .text-block p + p { /* body after heading */
    margin-top: 0;
}

#how-it-works .how-text { grid-area: text; }
#how-it-works .how-visual { grid-area: visual; display: flex; align-items: center; }

/* Per-step horizontal alignment of text against its animation */
@media (min-width: 769px) {
  #how-it-works .step-1 .text-block { text-align: right; margin-left: auto; }
  #how-it-works .step-2 .text-block { text-align: left; margin-right: auto; }
  #how-it-works .step-3 .text-block { text-align: right; margin-left: auto; }
}

/* Visual container: 560x320 transparent box (no borders/shadows) */
#how-it-works .visual-card {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 560 / 320; /* 7:4 aspect */
    height: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: hidden; /* clip overflow */
}

#how-it-works .visual-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* center animation within invisible container */
    justify-content: center;
    overflow: hidden;
    image-rendering: auto; /* crisp */
}

#how-it-works .visual-fit {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#how-it-works .visual-fit-right {
    align-items: center;
    justify-content: flex-end; /* for right-aligned button padding behavior */
}

/* Ensure internal animations scale to fit without overflow */
#how-it-works .mac-window,
#how-it-works .excel-window,
#how-it-works .results-scene {
    max-width: 100%;
    max-height: 100%;
}

/* Ensure no visible borders/shadows on internals */
#how-it-works .mac-window,
#how-it-works .excel-window,
#how-it-works .results-scene {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Respect the 8px baseline rhythm in micro spacing */

/* Mobile visual card scaling */
@media (max-width: 768px) {
    #how-it-works .visual-card {
        width: 100%;
        height: auto;
        aspect-ratio: 560 / 320; /* preserve proportion */
    }
    #how-it-works .visual-canvas { align-items: center; }
}

/* Motion handling */

@media (prefers-reduced-motion: reduce) {
    .visual-paused * { animation: none !important; transition: none !important; }
}

/* Step 3: align animation toward the text */
#how-it-works .step-3 .visual-fit { justify-content: flex-start; }
#how-it-works .step-3 .results-scene { justify-content: flex-start; }

/* Section CTA spacing */

/* Text block styles */
.text-block {
    padding: 2rem;
    margin-bottom: 1rem;
}

.text-block p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Micro comparison under Privacy block */

/* Ensure micro-compare aligns to the top of the Privacy text */

/* Built Different two-up grid with centered micro table */
/* Center the below-table within the container */

/* Remove absolute centered variant now that the table sits below */

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section {
        padding: 32px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Footer section spacing: match other sections' gap and compact height */

/* Utility: max width for centered blocks moved from inline */

/* Footer small text moved from inline style */
.footer-small {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.2px;
}

/* Ensure footer legal links match small footer text color/size */
.footer-small a {
    color: inherit;
    font: inherit;
}

/* Footer legal links: spacing and hover animation to match navbar CTA hover */

/* Colored heart moved from inline style */
.colored-heart {
    background: linear-gradient(90deg, #007BFF, #9D00FF, #FF4500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Compact footer height similar to dashboard card height */

/* Remove extra vertical padding around the footer container so the overall
   footer height matches the dashboard page */

/* Ensure spacing above footer comes only from the last content-section's margin */
/* No extra margin on footer itself */

/* Animation containers */

/* Mac Window Styles */
.mac-window {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
}

.mac-header {
    background: #e5e7eb;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    position: relative;
}

.mac-buttons {
    display: flex;
    gap: 6px;
}

.mac-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    background: #cbd5e1;
}

.mac-content {
    padding: 20px;
    background: white;
}

/* Upload Animation */
.file-icon {
    text-align: center;
    margin-bottom: 20px;
    animation: bounce-in 0.5s ease 0s 1;
}

.file-icon i {
    font-size: 48px;
    color: #334155;
    margin-bottom: 10px;
}

.file-name {
    display: block;
    font-size: 14px;
    color: #666;
}

.upload-container {
    position: relative;
    min-height: 60px;
}

.upload-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
    opacity: 0;
    animation: fade-in 0.3s ease 0.5s forwards;
}

.progress-bar {
    height: 100%;
    background: #334155;
    width: 0;
    animation: progress 2.5s ease-in-out 0.8s forwards, progress-restart 3s linear 3.3s infinite;
}

.upload-complete {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 24px;
    color: #16a34a;
    opacity: 0;
    animation: show-complete 0.5s ease-out 3.3s forwards, complete-restart 3s linear 3.8s infinite;
}

/* Excel Window Animation */
.excel-window {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 350px;
    overflow: hidden;
}

.excel-header {
    background: #334155;
    padding: 8px 12px;
}

.excel-rows {
    font-size: 14px;
    color: #111827;
    position: relative;
    height: 160px;
    overflow: hidden;
}

.excel-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.excel-row.header {
    font-weight: bold;
    color: #0f172a;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.excel-rows-container {
    animation: slideAndRepeat 8s linear infinite;
}

.email-cell {
    color: #334155;
}

/* Step 3 – Results to CSV animation (looping conveyor) */
.results-scene {
    position: relative;
    width: 280px;
    height: 160px;
}

.results-scene .belt {
    position: absolute;
    left: 8px;
    right: 76px; /* space for download box */
    bottom: 42px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.results-scene .belt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 12px, rgba(0,0,0,0.0) 12px 24px);
    animation: belt-move 1.2s linear infinite;
}

.results-scene .download {
    position: absolute;
    right: 8px;
    bottom: 24px;
    width: 64px;
    height: 56px;
    border: 2px solid #334155;
    border-radius: 8px;
    background: linear-gradient(#ffffff, #f8fafc);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-scene .download .label {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 1px;
}

.results-scene .sheet {
    position: absolute;
    left: -180px;
    bottom: 36px;
    width: 200px; /* landscape */
    background: #ffffff;
    border: 2px solid #334155;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    padding: 6px 10px; /* slightly shorter */
    overflow: hidden; /* keep contents inside border */
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg);
    animation: sheet-convey 2.8s ease-in-out infinite;
}

.results-scene .sheet-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 4px 0; /* reduce height */
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #111827;
}

/* allow grid children to shrink and wrap */
.results-scene .sheet-row span { min-width: 0; }
.results-scene .sheet-row span:last-child {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.results-scene .sheet-row.header {
    font-weight: 700;
    color: #0f172a;
}

.results-scene .check {
    position: absolute;
    right: 2px;
    bottom: 84px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    animation: check-timeline 2.8s ease-out infinite;
}

.results-scene .check i { font-size: 12px; }

@keyframes belt-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(24px); }
}

@keyframes sheet-convey {
    0% { opacity: 0; transform: translateX(0) translateY(0) rotate(-2deg); }
    5% { opacity: 1; }
    65% { opacity: 1; transform: translateX(220px) translateY(0) rotate(0deg); }
    78% { opacity: 1; transform: translateX(220px) translateY(16px) scale(0.98); }
    88% { opacity: 0; transform: translateX(220px) translateY(24px) scale(0.96); }
    100% { opacity: 0; transform: translateX(0) translateY(0) rotate(-2deg); }
}

@keyframes check-timeline {
    0% { opacity: 0; transform: scale(0.6); }
    79% { opacity: 0; transform: scale(0.6); }
    82% { opacity: 1; transform: scale(1); }
    92% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.6); }
}

/* Keyframe Animations */
@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes progress {
    0% { width: 0; }
    80% { width: 100%; }
    100% { width: 100%; }
}

@keyframes show-complete {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes complete-cycle {
    0% { transform: scale(0); opacity: 0; }
    20% { transform: scale(1.2); opacity: 0.8; }
    40% { transform: scale(1); opacity: 1; }
    60% { transform: scale(1); opacity: 1; }
    80% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes progress-restart {
    0% { width: 0; }
    80% { width: 100%; }
    100% { width: 100%; }
}

@keyframes complete-restart {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    40% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    60% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

@keyframes slideAndRepeat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-320px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .mac-window,
    .excel-window {
        width: 280px;
    }
    .results-scene { width: 220px; height: 140px; }

    .file-icon i {
        font-size: 36px;
    }

    .excel-rows {
        font-size: 12px;
    }
}

/* Made in Europe Section */

@keyframes marker-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Vision Statement */
.vision-statement {
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Updated Pricing Styles */
.pricing-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.24));
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    position: relative;
}

.pricing-card:hover {
    border-color: #00509dff;
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00509dff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    flex-shrink: 0;
}

/* Add pulsing animation for CTA buttons */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 80, 157, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 80, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 80, 157, 0);
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
        margin: 1.5rem 0;
    }
}

/* Hero Section */
.hero-section {
    padding: 120px 0;
    color: #212529;
}

.hero-animation {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--glass-shadow) !important;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* Light reflections for glass surfaces */
.hero-animation::before,
.content-section::before,
.vision-section::before,
.pricing-card::before,
.feature-card::before,
.footer .card::before,
.navbar .container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
      radial-gradient(360px 240px at var(--gloss-x,50%) calc(var(--gloss-y,12%) - 40%), rgba(255,255,255, calc(var(--panel-gloss-alpha, 0.22) * var(--light-intensity, 0.6))), rgba(255,255,255,0) 65%),
      /* Subtle edge rim; moved and masked to edges */
      conic-gradient(from var(--light-angle, 45deg), rgba(255,255,255, 0.22) 0turn 0.10turn, rgba(255,255,255,0) 0.10turn 1turn),
      linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)),
      repeating-linear-gradient(
        var(--light-angle, 45deg),
        rgba(255,255,255,0.10) 0 1px,
        rgba(255,255,255,0.00) 1px 6px
      ),
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.25"/></svg>');
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
    background-size: auto, auto, auto, auto, 140px 140px;
    background-attachment: scroll, scroll, scroll, scroll, scroll;
    mix-blend-mode: screen;
    /* Restrict glossy overlays to the outer 2px "rim" to avoid center hotspots */
    -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
            mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
}

.cursor {
    width: 2px;
    height: 1.5rem;
    background-color: #00509dff;
    position: absolute;
    opacity: 0;
    animation: blink 0.7s infinite;
    transition: top 0.5s ease-in-out, left 0.5s ease-in-out;
}

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

@keyframes magical-text-reveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-15deg);
        text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        text-shadow: none;
    }
}

@keyframes particle-animation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(var(--x), var(--y));
    }
}


.email-output {
    width: 100%;
    border: none;
    background-color: transparent;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
    padding: 0;
}

.email-output {
    min-height: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    height: 2.5rem; /* Set a fixed height */
    position: relative;
}

.email-reel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.email-item {
    height: 2.5rem;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 500;
}

.email-item.invalid {
    color: #dc3545; /* Red for invalid */
    text-decoration: line-through;
}

.email-item.valid {
    color: #198754; /* Green for valid */
}

.text-muted {
    color: #6c757d !important;
}

/* Vision Section */
.vision-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin: -60px auto var(--section-gap);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* Ensure subsequent vision blocks don't overlap the previous one */
.vision-section + .vision-section {
    margin-top: var(--section-gap);
}

.vision-statement {
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Stats Badge */

/* GDPR pill styles */
.gdpr-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #F4F6FA;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.gdpr-pill:hover { background: #eef2f7; }
.gdpr-pill:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,80,157,0.2); }

/* Optional: style popover */

/* Europe Illustration Styles */

@keyframes bounce {
    0%, 100% { transform: translate(400px, 300px) scale(1); }
    50% { transform: translate(400px, 290px) scale(1.1); }
}

@keyframes drawPath {
    from {
        stroke-dasharray: 4000;
        stroke-dashoffset: 4000;
    }
    to {
        stroke-dasharray: 4000;
        stroke-dashoffset: 0;
    }
} :root {
            --royal-blue-traditional: #00296b;
            --marian-blue: #003f88;
            --polynesian-blue: #00509d;
            --mikado-yellow: #fdc500;
            --gold: #ffd500;
            /* Glass variables */
            --glass-bg: rgba(255, 255, 255, 0.30);
            --glass-elevated-bg: rgba(255, 255, 255, 0.40);
            --glass-border: rgba(255, 255, 255, 0.46);
            --glass-shadow: 0 28px 80px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
            --glass-blur: 48px;
            --glass-saturation: 220%;
            --glass-noise-opacity: 0.05;
            --glass-edge-strength: 0.45;
            --light-angle: 45deg;
            --light-intensity: 0.6;
            /* Standardized vertical rhythm gap between sections/cards */
            --section-gap: 40px;
        }

/* Glass utility classes */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

        /* Logo styles */
        .navbar-brand {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            position: relative;
            color: var(--royal-blue-traditional);
            transition: all 0.3s ease;
        }

        .navbar-brand .brand-logo {
            height: 24px;
            width: auto;
        }

        .navbar-brand .brand-text {
            color: var(--royal-blue-traditional);
        }

        .navbar-brand i {
            color: var(--mikado-yellow);
            font-size: 1.4rem;
            transition: color 0.3s ease;
        }

        .navbar-brand:hover {
            transform: scale(1.05);
            color: var(--polynesian-blue);
        }

        .navbar-brand:hover i {
            color: var(--gold);
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        /* CTA button styles */
        .navbar .btn-cta-animated {
            background-color: #00509dff;
            color: white;
        }

        .btn-cta-animated {
            background-color: #00509dff;
            color: white;
            animation: ctaPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
            box-shadow: 0 0 0 0 rgba(0, 80, 157, 0.4);
            transition: all 0.2s ease;
        }

        .btn-cta-animated:hover {
            animation: none;
            background: #00509dff;
            box-shadow: 0 5px 15px rgba(0, 80, 157, 0.4);
        }

        /* Remove black border from hero and bottom CTA buttons */
        .hero-section .btn-cta-animated.btn-dark,
        .content-section .btn-cta-animated.btn-dark {
            border: none !important;
        }
        .hero-section .btn-cta-animated.btn-dark:hover,
        .content-section .btn-cta-animated.btn-dark:hover {
            border: none !important;
        }

        @keyframes ctaPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 80, 157, 0.4);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(0, 80, 157, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(0, 80, 157, 0);
            }
        }

/* Hero adjustments v2 */
@media (min-width: 992px) {
  .hero-copy { max-width: 720px; }
}

.hero-copy h1.display-2 {
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  line-height: 1.15;
}

.hero-copy .lead {
  font-size: 1.1rem;
}

.hero-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

@media (min-width: 992px) {
  .hero-animation {
    max-width: 480px;
    padding: 1.5rem;
  }
}


.email-output {
  font-size: 1.1rem;
}

.email-output {
  height: 2.2rem;
  min-height: 1.1rem;
}

.email-item {
  height: 2.2rem;
  font-size: 1.1rem;
}

/* Hero adjustments v3: make animation more landscape on desktop */
@media (min-width: 992px) {
  .hero-animation {
    max-width: none;
    width: 100%;
    padding: 1.25rem;
  }
}

/* CTA sizing tweaks */
.hero-section .btn-cta-animated,
.content-section .btn-cta-animated {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.hero-section .btn-cta-animated.btn-lg,
.content-section .btn-cta-animated.btn-lg {
  padding: 0.7rem 1.3rem;
  font-size: 1rem;
}

/* GDPR pill slightly smaller */
.gdpr-pill {
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
}

/* ===== Ultra-glassy CTAs with dynamic lighting ===== */
.btn.btn-cta-animated,
.btn.btn-outline-dark {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border) !important;
  color: #0b1220 !important;
  background: 
    radial-gradient(420px 240px at var(--gloss-x,50%) calc(var(--gloss-y,50%) - 40%), rgba(255,255,255, calc(var(--gloss-alpha,0.45) * var(--light-intensity, 0.6))), rgba(255,255,255,0.0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.08)),
    linear-gradient(180deg, rgba(0,80,157,0.18), rgba(0,80,157,0.06)),
    repeating-linear-gradient(var(--light-angle, 45deg), rgba(255,255,255,0.08) 0 1px, rgba(255,255,255,0) 1px 6px);
  background-attachment: scroll, scroll, scroll, scroll;
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.8)) saturate(var(--glass-saturation));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.8)) saturate(var(--glass-saturation));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 32px rgba(0,0,0,0.18), 0 0 36px rgba(0,80,157,0.25);
  will-change: background-position, background;
}

/* CTA text colors: keep brand on primary buttons */
.btn.btn-cta-animated { color: #00213d !important; }
.btn.btn-cta-animated { animation: none !important; }

.btn.btn-cta-animated::before,
.btn.btn-outline-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    /* Subtle edge rim overlay (masked to edges) */
    conic-gradient(from var(--light-angle, 45deg), rgba(255,255,255,0.25) 0turn 0.08turn, rgba(255,255,255,0) 0.08turn 1turn),
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.18"/></svg>');
  background-blend-mode: screen, screen, soft-light;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 120px 120px;
  border-radius: inherit;
  pointer-events: none;
  /* Mask to edges to avoid center hotspot */
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
          mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
}

.btn.btn-cta-animated::after,
.btn.btn-outline-dark::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 80%;
  top: -30%;
  left: -20%;
  transform: rotate(var(--light-angle, 8deg));
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255, calc(0.35 * var(--light-intensity, 0.6))), rgba(255,255,255,0));
  filter: blur(8px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.btn.btn-cta-animated:hover,
.btn.btn-outline-dark:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 20px 48px rgba(0,0,0,0.22), 0 0 48px rgba(0,80,157,0.35);
}

/* Keep compact sizing intact */
.btn.btn-cta-animated.btn-lg,
.btn.btn-outline-dark.btn-lg { border-radius: 12px; }

/* Cursor Sun (keep native cursor visible) */
#sun-cursor {
  position: fixed;
  width: 22px; /* smaller visual */
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,240,210,0.98), rgba(255,220,140,0.80), rgba(255,255,255,0) 75%);
  box-shadow:
    0 0 14px 6px rgba(255,220,140,0.55),
    0 0 120px 40px rgba(255,240,210,0.35),
    0 0 220px 80px rgba(255,225,170,0.25);
  mix-blend-mode: screen;
  opacity: 0; /* keep off-screen/invisible but used as light origin */
}

/* Weather hue overlay */
#weather-hue {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: multiply;
  opacity: 0; /* controlled by JS */
}

/* Rain overlay */
#weather-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0; /* controlled by JS */
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.0) 0 18px, rgba(255,255,255,0.18) 18px 20px);
  background-size: 200% 200%;
  animation: rainFall 1.2s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.6px) saturate(120%);
}

@keyframes rainFall {
  0% { background-position: 0% 0%; }
  100% { background-position: -60% 120%; }
}