/* Google Fonts are now loaded via link tags in HTML for better performance */

/* --- Modern Redesign Color & Style Variables --- */
:root {
    /* Light Mode (Default) */
    --sf-dark-blue-bg: #ffffff; /* Pure white base */
    --sf-mid-blue-bg: #f5f7fa; /* Very light gray */
    --sf-accent-blue: #0176d3; /* Salesforce blue */
    --sf-highlight-blue: #1589ee; /* Lighter blue */
    
    --sf-purple: #7f60e6; /* Slightly darker purple for better contrast */
    --sf-green: #2ecc71;  /* Slightly darker green */
    --sf-orange: #ff9500; /* More vibrant orange */
    
    --text-primary: #1a1a1a; /* Dark for primary text */
    --text-secondary: #4a4a4a; /* Medium gray for secondary text */
    
    --card-bg: rgba(255, 255, 255, 1); /* Solid white cards */
    --card-border: rgba(0, 0, 0, 0.08); /* Subtle dark border */
    --card-hover-bg: rgba(248, 250, 252, 1);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    --white: #ffffff;
    
    --gradient-glow: linear-gradient(135deg, var(--sf-accent-blue), var(--sf-purple));
    --gradient-main-bg: linear-gradient(180deg, #ffffff 0%, #f5f7fa 30%, #e8f4f8 70%, #f5f7fa 90%, #ffffff 100%);
    
    --font-primary: "Salesforce Sans", "Nunito", sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    
    /* Scrollbar colors */
    --scrollbar-bg: #f5f7fa;
    --scrollbar-thumb: #b0b0b0;
    
    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --navbar-bg-hover: rgba(255, 255, 255, 1);
    
    /* Footer */
    --footer-bg: transparent;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

/* --- Modern Scrollbar --- */
*::-webkit-scrollbar {
	width: 8px;
	background-color: transparent;
}

*::-webkit-scrollbar-track {
	background-color: transparent;
}

*::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}


/* --- General Body Styles --- */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    max-width: 1300px;
    margin: 0 auto;
    background: var(--gradient-main-bg);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
}

body.sfmc-styled {
    background: var(--gradient-main-bg); /* Ensure consistency */
}


a {
    text-decoration: none !important;
    color: var(--sf-accent-blue);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--sf-purple);
    filter: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    padding: 0 20px; /* Add horizontal padding */
}

/* --- Modern Navbar Styles --- */
.navbar {
    background-color: var(--navbar-bg);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 20px auto 0;
    max-width: 1200px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.navbar:hover {
    background-color: var(--navbar-bg-hover);
    border-color: rgba(0, 161, 224, 0.1);
}

/* Navigation Menu Links */
.nav-menu li a {
    color: var(--text-secondary);
}

.nav-menu li a:hover {
    color: var(--sf-accent-blue);
}

.nav-menu li a::after {
    background: var(--sf-accent-blue);
}

/* Signup Button */
.nav-links .signup-btn {
    box-shadow: 0 4px 15px rgba(0, 161, 224, 0.25);
}

.nav-links .signup-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 161, 224, 0.35);
}

.site-name {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(to right, var(--sf-accent-blue), var(--sf-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-smooth);
}
.site-name:hover {
    filter: brightness(1.1);
}

.nav-links .signup-btn {
    background: var(--gradient-glow);
    color: var(--white);
    padding: 12px 28px; /* Slightly more padding */
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600; /* Bolder text */
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 161, 224, 0.3);
    border: none;
}

.nav-links .signup-btn:hover {
    filter: brightness(1.05);
}
.nav-links .signup-btn i {
    transition: transform 0.3s ease;
}
.nav-links .signup-btn:hover i {
    transform: none;
}

/* Styling for the new navigation menu */
.nav-links {
    display: flex; /* Use flexbox to align menu and button */
    align-items: center;
    gap: 25px; /* Add space between menu and button */
}

.nav-menu {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    display: flex; /* Make list items horizontal */
    gap: 25px; /* Space between nav items */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 5px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sf-accent-blue);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--sf-accent-blue);
}

.nav-menu li a:hover::after {
    width: 100%;
}


/* End of new navigation menu styling */

section {
	display: flex;
	flex-direction: column;
	align-items: center;
	contain: layout style;
    max-width: 1300px;
    width: 100%; /* Ensure section takes full width */
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px; /* Consistent section padding */
}

.content-wrap {
	width: 100%;
	position: relative;
	margin-top: 0; /* Remove margin-top as navbar is sticky */
    z-index: 1;
}

/* --- Modern Hero Section --- */
.hero {
    padding: 80px 0 60px; /* More vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

/* Enhanced Gradient Text Effect */
.gradient-text {
  background: linear-gradient(90deg, var(--white) 20%, var(--sf-highlight-blue) 50%, var(--sf-accent-blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(124, 199, 255, 0.5)); /* Add glow */
}

.hero h1 {
    font-size: 72px; /* Larger */
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.025em; /* Tighter spacing */
    animation: fadeScale 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
    /* Remove background here, use .gradient-text class */
}
.hero h1.gradient-text { /* Specific styling for hero h1 */
    background: linear-gradient(90deg, var(--white) 30%, var(--sf-highlight-blue) 60%, var(--sf-accent-blue) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(124, 199, 255, 0.6));
}


.hero h2 {
    font-size: 24px; /* Slightly larger */
    font-weight: 500; /* Lighter weight */
    letter-spacing: normal;
    margin-bottom: 2rem;
    color: var(--text-secondary); /* Use secondary text color */
    animation: fadeScale 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s backwards;
}

.hero h2 .gradient-text {
    font-weight: 600; /* Make gradient part bolder */
    filter: drop-shadow(0 0 10px rgba(124, 199, 255, 0.4));
}


.hero p {
    font-size: 18px;
    line-height: 1.7; /* More line spacing */
    margin: 0 auto 30px; /* Add bottom margin */
    max-width: 750px;
    color: var(--text-secondary);
    animation: fadeScale 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s backwards;
}

/* Modern CTA Button */
.cta {
    display: inline-flex; /* Use inline-flex */
    justify-content: center;
    align-items: center;
    padding: 16px 32px; /* Larger padding */
    background: var(--gradient-glow);
    width: auto;
    min-width: 280px; /* Wider min-width */
    border-radius: 10px; /* More rounded */
    margin: 30px 0;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 161, 224, 0.4);
    font-weight: 600;
    font-size: 18px; /* Larger font */
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none; /* Remove border */
}

.cta::before { /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
    transform: skewX(-25deg); /* Skew the shimmer */
}

.cta:hover::before {
    left: 150%;
}

.cta:hover {
    filter: brightness(1.05);
}

.cta i {
    transition: transform 0.3s ease;
}
.cta:hover i {
    transform: none;
}


.hero-features {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: none;
}

.hero-features .feature i {
    color: var(--sf-accent-blue);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.hero-features .feature p {
    font-size: 16px;
    margin: 0;
    color: var(--text-secondary);
}


/* --- Background Effects --- */
.blur {
    filter: blur(120px);
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    width: 100vw;
    height: 100%;
    opacity: 0.3;
}

/* ============================================
   LIGHT MODE COMPREHENSIVE STYLING
   ============================================ */

/* Gradient Text Adjustments */
.gradient-text {
    background: linear-gradient(90deg, var(--sf-accent-blue) 20%, var(--sf-purple) 50%, var(--sf-highlight-blue) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 161, 224, 0.2));
}

.site-name {
    background: linear-gradient(to right, var(--sf-accent-blue), var(--sf-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h1.gradient-text {
    background: linear-gradient(90deg, var(--sf-accent-blue) 30%, var(--sf-purple) 60%, var(--sf-highlight-blue) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 161, 224, 0.25));
}

.hero h2 {
    color: var(--text-secondary);
}

.hero h2 .gradient-text {
    filter: drop-shadow(0 1px 3px rgba(0, 161, 224, 0.2));
}

.hero p {
    color: var(--text-secondary);
}

/* Hero Features */
.hero-features .feature i {
    color: var(--sf-accent-blue);
}

.hero-features .feature p {
    color: var(--text-secondary);
}


.tool-features li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-features li i {
    color: var(--sf-green);
}

.tool-icon {
    background: linear-gradient(135deg, var(--sf-orange), #ff8800);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}



/* Data Tools Section */
.data-tools-section {
    background: rgba(245, 247, 250, 0.4);
}



/* Primary CTA Button */
.primary-cta {
    background: linear-gradient(135deg, var(--sf-accent-blue), var(--sf-purple));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 161, 224, 0.3);
}

.primary-cta:hover {
    box-shadow: 0 10px 30px rgba(0, 161, 224, 0.4);
    filter: brightness(1.05);
}

/* Secondary Elements */
.hero-features {
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.hero-features .feature {
    background: transparent;
    border: none;
}


.automation-main-feature {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.automation-main-feature:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(138, 86, 224, 0.25);
}

.automation-main-feature::before {
    background: radial-gradient(circle at top right, rgba(138, 86, 224, 0.08) 0%, transparent 70%);
}

.automation-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.automation-feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(138, 86, 224, 0.25);
}

.automation-feature-card::before {
    background: radial-gradient(circle at top left, rgba(138, 86, 224, 0.08) 0%, transparent 70%);
}

/* AI Features Section */
.ai-feature-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.ai-feature-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 161, 224, 0.25);
}

.ai-feature-item h3 {
    color: var(--text-primary);
}

.ai-feature-item p {
    color: var(--text-secondary);
}

.ai-feature-item i {
    background: linear-gradient(135deg, var(--sf-accent-blue), var(--sf-purple));
    box-shadow: 0 6px 18px rgba(0, 161, 224, 0.25);
}

.ai-features-circle {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(0,0,0,0.1);
}

.ai-features-circle::before {
    background: radial-gradient(circle, rgba(0, 161, 224, 0.2) 0%, transparent 70%);
}


/* FAQ Section */
.faq-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-menu {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-menu li {
    color: var(--text-secondary);
}

.faq-menu li:hover {
    color: var(--text-primary);
    background-color: rgba(0, 161, 224, 0.05);
}

.faq-menu li.active {
    color: var(--sf-accent-blue);
    background-color: rgba(0, 161, 224, 0.08);
    border-left-color: var(--sf-accent-blue);
}

.faq-menu li i {
    color: var(--sf-accent-blue);
}

.faq-menu li.active i {
    color: var(--sf-accent-blue);
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item.open {
    background: var(--card-bg);
    border-color: rgba(0, 161, 224, 0.2);
}

.faq-question {
    color: var(--text-primary);
}

.faq-question:hover {
    background-color: rgba(0, 161, 224, 0.05);
}

.faq-question:after {
    color: var(--sf-accent-blue);
}

.faq-item.open .faq-question:after {
    color: var(--sf-accent-blue);
}

.faq-answer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.faq-answer p {
    color: var(--text-secondary);
}

/* Get Started Section */

/* Footer */

footer h3 {
    color: var(--text-primary);
}

footer h3::after {
    background: var(--gradient-glow);
}

footer p {
    color: var(--text-secondary);
}

footer a {
    color: var(--sf-accent-blue);
}

footer a:hover {
    color: var(--sf-purple);
}

/* Forms and Inputs */
.form-control {
    background-color: var(--white);
    border-color: var(--card-border);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--sf-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-control.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.error-message {
    color: #e74c3c;
}

/* Buttons */
.btn-primary {
    box-shadow: 0 4px 15px rgba(0, 161, 224, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 161, 224, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* Popups and Modals */
.popup-overlay {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.popup-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.popup-close {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.popup-close:hover {
    background-color: rgba(231, 76, 60, 0.8);
    color: var(--white);
}

/* Purchase Modal */
.purchase-modal-overlay {
    background-color: rgba(255, 255, 255, 0.95);
}

.purchase-modal-content {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.purchase-modal-content h3 {
    color: var(--text-primary);
}

.purchase-modal-content p {
    color: var(--text-secondary);
}

.purchase-modal-close {
    color: var(--text-secondary);
}

.purchase-modal-close:hover {
    color: var(--text-primary);
}

.purchase-summary {
    background-color: rgba(245, 247, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.purchase-summary span {
    color: var(--sf-accent-blue);
}

/* Payment Result Modal */
.payment-result-modal-overlay {
    background-color: rgba(255, 255, 255, 0.95);
}

.payment-result-modal-content {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.payment-result-modal-content h3 {
    color: var(--text-primary);
}

.payment-result-modal-content p {
    color: var(--text-secondary);
}

.payment-result-modal-close {
    color: var(--text-secondary);
}

.payment-result-modal-close:hover {
    color: var(--text-primary);
}

/* Pricing Calculator */
.calculator-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.calculator-card::before {
    background: linear-gradient(135deg, rgba(0, 161, 224, 0.08), rgba(138, 86, 224, 0.08));
}

.calculator-card h3 {
    color: var(--text-primary);
}

.calculator-card p {
    color: var(--text-secondary);
}

.pricing-icon {
    color: #ffb700;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.3);
}

.token-slider {
    background: linear-gradient(90deg, #d0d0d0, var(--sf-accent-blue));
    opacity: 0.9;
}

.token-slider:hover {
    opacity: 1;
}

.token-slider::-webkit-slider-thumb {
    border: 3px solid var(--sf-accent-blue);
    box-shadow: 0 0 10px rgba(0, 161, 224, 0.4);
    background: var(--white);
}

.token-slider::-moz-range-thumb {
    border: 3px solid var(--sf-accent-blue);
    box-shadow: 0 0 10px rgba(0, 161, 224, 0.4);
    background: var(--white);
}

.slider-labels {
    color: var(--text-secondary);
}

.price-display {
    color: var(--text-primary);
}

.price-display span {
    color: var(--sf-accent-blue);
}

.disclaimer {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, var(--sf-green), #27ae60);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Checkboxes */
.checkbox-group label {
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--sf-accent-blue);
}

/* Recaptcha */
.g-recaptcha {
    filter: brightness(1);
}




.spinning-gradient {
    opacity: 0.3;
    background: conic-gradient(from 0deg, #e8f4f8, #d0e7ff, #b8daff, #f5f7fa, #e8f4f8, #d0e7ff);
}

.gradient-mask {
    /* Keep structure, adjust child gradient */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    width: 100vw;
    min-width: 500px;
    height: 100vh;
    transform: translate(0%, -70%) scale(0.7);
    overflow: hidden;
    z-index: 1;
}
/* Mask positions remain the same */
.mask1 { position: absolute; top: 50%; left: 50%; width: 100px; }
.mask2 { position: absolute; top: 100%; left: 0%; width: 100px; }
.mask3 { position: absolute; top: 100%; right: 0%; width: 100px; }

.spinning-gradient {
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vw;
    transform: translate(-50%, -50%);
    animation: spin 10s linear infinite; /* Slower spin */
    /* Updated gradient for the blur effect */
    background: conic-gradient(from 0deg, var(--sf-mid-blue-bg), var(--sf-purple), var(--sf-accent-blue), var(--sf-dark-blue-bg), var(--sf-accent-blue), var(--sf-highlight-blue));
    opacity: .6; /* Adjust opacity */
}


/* --- Modern Features Section --- */
.features-section, .ai-features-section, .ai-video-demos {
    padding: 80px 20px; /* More padding */
    text-align: center;
    margin: 0; /* REMOVED default margin */
    border-radius: 0; /* Full width section appearance */
    position: relative;
    overflow: hidden; /* Contain pseudo-elements */
}

/* Section Titles */
.features-title, .ai-features-title, .video-demos-title, .section-title {
    font-size: 40px; /* Larger */
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    margin: 40px auto; /* Center container, reduced margin */
}
.features-title.gradient-text, .ai-features-title.gradient-text, .video-demos-title.gradient-text, .section-title.gradient-text {
    filter: drop-shadow(0 0 12px rgba(124, 199, 255, 0.4));
}

.features-subtitle, .ai-features-subtitle, .video-demos-subtitle, .section-subtitle {
    font-size: 18px;
    margin-bottom: 60px; /* More space below subtitle */
    color: var(--text-secondary);
    opacity: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Increased gap */
    max-width: 100%; /* Limit grid width */
    margin: 0 auto; /* Center grid */
    position: relative;
    z-index: 2;
}

/* Modern Feature Card */
.feature-card {
    background-color: var(--card-bg);
    padding: 30px; /* More padding */
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-card::before { /* Subtle gradient overlay on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 161, 224, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}
.feature-card:hover::before {
    opacity: 1;
}


.feature-card i {
    font-size: 20px; /* Larger icon */
    color: var(--white);
    border-radius: 10px; /* Rounded square */
    padding: 12px;
    margin-bottom: 18px;
    display: inline-block;
    width: 48px; /* Fixed size */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* Assign colors based on bg classes */
.feature-card i.bg-sf-blue { background: linear-gradient(135deg, #0176d3, var(--sf-accent-blue)); }
.feature-card i.bg-sf-green { background: linear-gradient(135deg, #4bca81, var(--sf-green)); }
.feature-card i.bg-sf-orange { background: linear-gradient(135deg, #ffb75d, #ffa534); }
.feature-card i.bg-sf-purple { background: linear-gradient(135deg, #7f60e6, var(--sf-purple)); }

/* Light mode icon adjustments - keep vibrant colors */
.feature-card i.bg-sf-blue { 
    background: linear-gradient(135deg, #0176d3, #1589ee); 
    box-shadow: 0 4px 12px rgba(1, 118, 211, 0.3);
}

.feature-card i.bg-sf-green { 
    background: linear-gradient(135deg, #2ecc71, #27ae60); 
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.feature-card i.bg-sf-orange { 
    background: linear-gradient(135deg, #ff9500, #ff8800); 
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.feature-card i.bg-sf-purple { 
    background: linear-gradient(135deg, #7f60e6, #6c5ce7); 
    box-shadow: 0 4px 12px rgba(127, 96, 230, 0.3);
}


.feature-card:hover i {
    filter: brightness(1.05);
}

.feature-card h3 {
    font-size: 20px; /* Slightly larger */
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1; /* Ensure cards in a row have same height */
}

/* --- Data Tools Section --- */
.data-tools-section {
    padding: 80px 20px;
    text-align: center;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 183, 93, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tool-card:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--sf-orange), #ffa534);
    box-shadow: 0 4px 15px rgba(255, 183, 93, 0.3);
    transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon {
    filter: brightness(1.05);
}

.tool-icon i {
    font-size: 28px;
    color: white;
}

.tool-card h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(124, 199, 255, 0.1);
}

.tool-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tool-features li i {
    color: var(--sf-green);
    font-size: 12px;
}

/* --- Automation Explorer Section --- */
.automation-section {
    padding: 80px 20px;
    text-align: center;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: rgba(245, 247, 250, 0.4);
    border-radius: 0;
}

.automation-showcase {
    max-width: 100%;
    margin: 0 auto;
}

.automation-main-feature {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    margin-bottom: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.automation-main-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(138, 86, 224, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.automation-main-feature:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}

.automation-main-feature:hover::before {
    opacity: 1;
}

.automation-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--sf-purple), #7f60e6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(138, 86, 224, 0.4);
    transition: var(--transition-smooth);
}

.automation-main-feature:hover .automation-icon-large {
    filter: brightness(1.05);
}

.automation-icon-large i {
    font-size: 50px;
    color: white;
}

.automation-main-feature h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.automation-main-feature p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.automation-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.automation-feature-card {
    background-color: var(--card-bg);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.automation-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(138, 86, 224, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.automation-feature-card:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}

.automation-feature-card:hover::before {
    opacity: 1;
}

.automation-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--sf-purple), #7f60e6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(138, 86, 224, 0.3);
    transition: var(--transition-smooth);
}

.automation-feature-card:hover .automation-feature-icon {
    filter: brightness(1.05);
}

.automation-feature-icon i {
    font-size: 28px;
    color: white;
}

.automation-feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.automation-feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* --- Modern AI Features Section --- */
.ai-features-section {
    /* Uses general section styling */
    padding-bottom: 100px; /* More padding at bottom */
}

.ai-features-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ai-features-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px; /* Increased gap */
    margin-bottom: 80px; /* More space */
}

.ai-features-image {
    flex: 0 0 35%; /* Slightly larger image area */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; /* Add perspective for animation */
}

.ai-features-circle {
    width: 250px; /* Larger */
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf-accent-blue) 0%, var(--sf-purple) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(0,0,0,0.3); /* Inner/outer shadow */
    position: relative;
    overflow: visible; /* Allow potential glow to exceed bounds */
    animation: float 6s ease-in-out infinite, rotate3D 20s linear infinite; /* Add 3D rotation */
}
.ai-features-circle::before { /* Glow effect */
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background: radial-gradient(circle, rgba(124, 199, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 3s infinite alternate;
}


@keyframes rotate3D {
    0% { transform: rotateY(0deg) rotateX(5deg); }
    50% { transform: rotateY(20deg) rotateX(-5deg); }
    100% { transform: rotateY(0deg) rotateX(5deg); }
}
@keyframes pulseGlow {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 1; transform: scale(1.1); }
}


.ai-features-circle i {
    font-size: 100px; /* Larger icon */
    color: white;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.7); /* Text glow */
    animation: pulse 2.5s infinite alternate;
}

.ai-features-text {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Modern AI Feature Item */
.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: var(--card-bg); /* Consistent card bg */
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.ai-feature-item:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}

.ai-feature-item i {
    font-size: 22px;
    color: white;
    /* Use gradient background */
    background: linear-gradient(135deg, var(--sf-accent-blue), var(--sf-purple));
    width: 55px; /* Larger icon container */
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.ai-feature-item:hover i {
    filter: brightness(1.05);
}

.ai-feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ai-feature-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* --- Modern Demos/Videos Section --- */
/* GIF Section Cards */
#features-demos .feature-card { /* Target cards specifically in this section */
    text-align: center; /* Center content */
}

.feature-card-title {
    font-size: 20px; /* Larger title */
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}

.feature-card > img {
    cursor: pointer;
    border-radius: 8px;
    margin: 15px 0; /* Adjust margin */
    transition: var(--transition-smooth);
    filter: brightness(0.9); /* Slightly darker */
    border: 1px solid var(--card-border);
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
}

.feature-card > img:hover {
    filter: brightness(1.02);
}

.feature-card-description {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
    line-height: 1.7;
}

/* Video Section Styling */
/* .ai-video-demos uses general section styles */

.video-showcase {
    margin-bottom: 60px; /* More space */
    padding: 0 20px;
}

.video-showcase h3 {
    font-size: 26px; /* Larger */
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.video-showcase video {
    width: 100%;
    max-width: 850px; /* Wider */
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.video-showcase p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjust minmax */
    gap: 30px;
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
}

.video-item { /* Style like feature cards */
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    text-align: center; /* Center content */
}

.video-item:hover {
    border-color: rgba(124, 199, 255, 0.2);
    background-color: var(--card-hover-bg);
}

.video-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.video-item video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.video-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Modern FAQ Section --- */
.faq-container {
    display: flex;
    flex-direction: column;
    padding: 60px 40px; /* Increased padding */
    background-color: var(--card-bg);
    border-radius: 0;
    margin: 60px auto; /* Center container */
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--card-border);
    max-width: 1200px;
    width: 100%;
}

.faq-title {
    font-size: 40px; /* Consistent with other titles */
    text-align: center; /* Center title */
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 50px; /* More space */
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-radius: 0; /* Removed radius */
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-title .gradient-text {
    filter: drop-shadow(0 0 12px rgba(124, 199, 255, 0.4));
}


.faq-container .faqs {
    display: flex;
    gap: 40px; /* More gap */
}

.faq-menu {
    width: 30%;
    padding-right: 20px;
    border-right: 1px solid var(--card-border); /* Separator line */
}

.faq-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: sticky; /* Sticky menu */
    top: 100px; /* Adjust based on navbar height */
}

.faq-menu li {
    padding: 18px 20px; /* More padding */
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex; /* Use flex for alignment */
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent; /* Indicator */
}
.faq-menu li i {
    color: var(--sf-highlight-blue); /* Icon color */
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.faq-menu li::before { /* Background fill effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 161, 224, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.faq-menu li:hover::before,
.faq-menu li.active::before {
    transform: scaleX(1);
}

.faq-menu li:hover {
    color: var(--text-primary);
    border-left-color: var(--sf-accent-blue);
}
.faq-menu li:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.faq-menu li.active {
    color: var(--sf-accent-blue);
    border-left-color: var(--sf-accent-blue);
    font-weight: 600; /* Bolder active item */
    background-color: rgba(0, 161, 224, 0.08);
}
.faq-menu li.active i {
    opacity: 1;
    color: var(--sf-accent-blue);
}


.faq-content {
    width: 70%;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px; /* More rounded */
    overflow: hidden;
    background-color: var(--card-bg); /* Card background */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--card-border);
}
.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    background-color: transparent; /* Use item background */
    padding: 18px 25px; /* More padding */
    width: 100%;
    font-size: 18px; /* Larger question text */
    cursor: pointer;
    text-align: left;
    border: none;
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: rgba(0, 161, 224, 0.1); /* Hover highlight */
}

.faq-question:after { /* Modern indicator */
    content: '\f078'; /* FontAwesome chevron down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg); /* Initial state */
    font-size: 14px;
    color: var(--sf-highlight-blue);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.faq-item.open .faq-question:after {
    transform: translateY(-50%) rotate(180deg); /* Rotate chevron */
    color: var(--sf-accent-blue);
}

.faq-answer {
    padding: 0 25px; /* Horizontal padding only initially */
    max-height: 0; /* Use max-height for transition */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid transparent; /* Separator, becomes visible when open */
}


.faq-answer p {
    margin: 0;
    text-align: left;
    padding: 20px 0; /* Vertical padding applied here */
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding: 0 25px; /* Keep horizontal padding */
    border-top-color: var(--card-border); /* Show separator */
}


.faq-item.open {
    background-color: var(--card-hover-bg); /* Slightly different bg when open */
    border-color: rgba(124, 199, 255, 0.3);
}

.faq-item.open .faq-question {
    background-color: rgba(0, 161, 224, 0.08); /* Maintain hover highlight */
    color: var(--text-primary);
}

/* --- Modern Get Started Section --- */
.get-started-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 80px 0; /* More margin */
    background: rgba(245, 247, 250, 0.6);
    backdrop-filter: none; /* Remove blur */
    padding: 80px 30px; /* More padding */
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
}


.get-started-section h1 {
    font-size: 40px; /* Larger */
    margin: 0 0 25px 0;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    text-shadow: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.get-started-section h1 .gradient-text {
    background: linear-gradient(to right, var(--sf-accent-blue), var(--sf-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 161, 224, 0.2));
}

.get-started-section p {
    text-align: center;
    margin-bottom: 40px; /* More space */
    max-width: 750px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.get-started-section .cta { /* Ensure CTA is above pseudo-elements */
    position: relative;
    z-index: 1;
    background: var(--gradient-glow);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 161, 224, 0.25);
}
.get-started-section .cta:hover {
    background: var(--gradient-glow);
    color: var(--white);
    filter: brightness(1.05);
}
.get-started-section .cta::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent); /* Darker shimmer */
}


/* --- Modern Footer --- */
footer {
    width: 100%; /* Use 100% width, let body handle max-width */
    background-color: var(--footer-bg); /* Use CSS variable */
    color: var(--text-secondary); /* Secondary text color */
    padding: 80px 0; /* More padding */
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--card-border); /* Use CSS variable */
}


footer::before { /* Subtle top gradient */
    display: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .footer-col {
        flex: 100%;
        margin-bottom: 40px;
    }
    
    .footer-col:last-child {
        margin-bottom: 0;
    }
}

footer h3 {
    font-size: 22px; /* Slightly smaller */
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

footer h3::after { /* Underline accent */
    content: '';
    position: absolute;
    bottom: -8px; /* Adjust position */
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-glow); /* Use accent gradient */
    border-radius: 2px;
    transition: width 0.4s ease;
}

footer h3:hover::after {
    width: 80%; /* Extend underline on hover */
}

footer p {
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
}

footer a { /* Footer links */
    color: var(--sf-accent-blue);
}
footer a:hover {
    color: var(--sf-purple);
    text-decoration: underline !important;
}

/* Modern Form Styles */
.form-group {
    margin-bottom: 25px; /* More space */
}

.form-group label {
    display: block;
    margin-bottom: 10px; /* More space */
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px; /* Slightly smaller label */
}

.form-control {
    width: 100%;
    padding: 14px 18px; /* More padding */
    border: 1px solid var(--card-border); /* Use card border color */
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--sf-accent-blue); /* Accent color focus */
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.15); /* Focus glow */
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4); /* Lighter placeholder */
}

.btn-primary { /* Button styles */
    background: var(--gradient-glow);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 161, 224, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    text-decoration: none;
    margin-top: 8px;
}

/* Footer button inherits .btn-primary styles */

footer .btn-primary:hover {
    filter: brightness(1.05);
}
footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
}


/* --- Responsive Design Adjustments --- */
@media (max-width: 900px) { /* Tablet Portrait / Small Desktop */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--card-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        max-height: 600px;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        font-size: 16px;
        display: block;
        width: 100%;
        padding: 12px 0;
        transition: var(--transition-smooth);
    }
    
    .nav-menu li a:hover {
        padding-left: 10px;
        color: var(--sf-accent-blue);
    }
    
    .nav-links .signup-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 992px) { /* Tablet */
    .features-grid, .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax for tablets */
    }
    .ai-features-content {
        flex-direction: column;
        gap: 40px;
    }
    .ai-features-image { width: 50%; }
    .ai-features-text { width: 100%; }
    .automation-main-feature {
        padding: 40px 30px;
    }
    .automation-icon-large {
        width: 80px;
        height: 80px;
    }
    .automation-icon-large i {
        font-size: 40px;
    }
    .automation-main-feature h3 {
        font-size: 24px;
    }
    .automation-main-feature p {
        font-size: 16px;
    }
    .automation-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .faq-container .faqs { flex-direction: column; }
    .faq-menu { width: 100%; border-right: none; border-bottom: 1px solid var(--card-border); padding-bottom: 20px; margin-bottom: 30px; }
    .faq-content { width: 100%; }
    .faq-menu ul { position: static; } /* Unstick menu */
}

@media (max-width: 768px) { /* Mobile */
    .navbar { 
        padding: 15px; 
        width: calc(100% - 30px); 
        top: 15px;
        flex-wrap: wrap;
    }
    
    .site-name { 
        font-size: 22px; 
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--card-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        max-height: 600px;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        font-size: 16px;
        display: block;
        width: 100%;
        padding: 12px 0;
        transition: var(--transition-smooth);
    }
    
    .nav-menu li a:hover {
        padding-left: 10px;
        color: var(--sf-accent-blue);
    }
    
    .nav-links .signup-btn { 
        width: 100%;
        justify-content: center;
        padding: 12px 20px; 
        font-size: 16px; 
    }
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 48px; }
    .hero h2 { font-size: 20px; }
    .hero p { font-size: 16px; }
    .cta { padding: 14px 28px; font-size: 16px; min-width: 240px; }
    
    .features-title, .ai-features-title, .video-demos-title, .faq-title, .get-started-section h1, .section-title { font-size: 32px; }
    .features-subtitle, .ai-features-subtitle, .video-demos-subtitle, .get-started-section p, .section-subtitle { font-size: 16px; margin-bottom: 40px; }
    
    .pricing-notice {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .pricing-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .features-grid, .video-grid, .tools-grid { gap: 20px; grid-template-columns: 1fr; /* Stack cards */ }
    .ai-feature-item { flex-direction: column; align-items: center; text-align: center; }
    .ai-feature-item i { margin-bottom: 15px; }
    .ai-features-circle { width: 200px; height: 200px; }
    .ai-features-circle i { font-size: 80px; }
    
    .automation-main-feature {
        padding: 30px 20px;
    }
    .automation-icon-large {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    .automation-icon-large i {
        font-size: 35px;
    }
    .automation-main-feature h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .automation-main-feature p {
        font-size: 15px;
    }
    .automation-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .automation-feature-card {
        padding: 25px 20px;
    }
    
    .faq-container { padding: 40px 20px; }
    .faq-question { font-size: 16px; padding: 15px 20px; }
    .faq-question:after { right: 20px; }
    .faq-answer p { font-size: 14px; }
    
    .get-started-section { padding: 60px 20px; }
    
    footer { padding: 60px 0; }
    .footer-content { padding: 0 15px; }
}

/* --- Popup Styles (Modernized) --- */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(1, 14, 33, 0.85); /* Darker overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    opacity: 0; /* Start hidden */
}
.popup-overlay.active { /* Use a class to show */
    display: block;
    opacity: 1;
}

.popup-content {
    display: block;
    max-width: 90%;
    max-height: 85%;
    margin: auto;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Start slightly smaller */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}
.popup-overlay.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}


.popup-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 24px; /* Smaller close icon */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7); /* Semi-transparent */
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    line-height: 1; /* Ensure icon centers */
}

.popup-close:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: rgba(255, 0, 0, 0.7);
    color: var(--white);
}

/* --- Contact Form Recaptcha/Checkbox --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem; /* Added bottom margin */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem; /* Align better */
    accent-color: var(--sf-accent-blue); /* Use accent color */
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5; /* Improved line height */
}

.success-message {
    display: none;
    background: linear-gradient(135deg, var(--sf-green), #4bca81); /* Green gradient */
    color: var(--sf-dark-blue-bg); /* Dark text on light bg */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(61, 220, 151, 0.3);
    font-weight: 500;
}

.g-recaptcha {
    margin: 25px 0px; /* More space */
    transform: scale(0.95); /* Slightly smaller recaptcha */
    transform-origin: 0 0;
}

.recaptcha-notice {
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: var(--sf-accent-blue);
    text-decoration: underline;
}

.recaptcha-notice a:hover {
    color: var(--sf-purple);
}

/* --- Animations --- */
/* Existing Spin */
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(2); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(2); }
}

/* Existing Float */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); /* Less float */ }
  100% { transform: translateY(0px); }
}

/* Existing Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); /* Less pulse */ }
}

/* Existing Shimmer */
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-25deg); }
  100% { transform: translateX(100%) skewX(-25deg); }
}

/* Existing GradientFlow */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Updated FadeScale */
@keyframes fadeScale {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); /* Added slight Y translation */ }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Updated Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px); /* Slightly more translation */
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keep delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Particle container */
.particle-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0; /* Ensure particles are behind content */
}
.particle {
    position: absolute;
    width: 6px; height: 6px; /* Smaller particles */
    border-radius: 50%;
    background: rgba(124, 199, 255, 0.5); /* Use highlight blue */
    animation: float-particle 15s infinite linear;
    opacity: 0; /* Start hidden */
    box-shadow: 0 0 10px rgba(124, 199, 255, 0.5); /* Add glow */
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000%) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Token Pricing Section Styles */
.token-pricing-section {
    text-align: center;
    padding: 80px 20px; /* Increased padding */
    position: relative; /* Needed for potential background effects */
    border-radius: 0; /* Removed radius */
    margin: 40px 0; /* Reduced margin */
    overflow: hidden;
}

.pricing-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.pricing-notice {
    background: rgba(245, 247, 250, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto 50px;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 100%;
    text-align: left;
    line-height: 1.8;
}

.pricing-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pricing-subtitle strong[style*="color: var(--sf-green)"] {
    color: var(--sf-green) !important;
}

.pricing-calculator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden; /* To contain potential pseudo-elements */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.calculator-card::before { /* Subtle gradient border effect */
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px; /* Adjust to border size */
    border-radius: inherit; /* Inherit border-radius */
    background: linear-gradient(135deg, rgba(0, 161, 224, 0.2), rgba(138, 86, 224, 0.2)); /* Use theme colors */
}

.pricing-icon {
    font-size: 3rem;
    color: #ffc107; /* Gold color for coins */
    margin-bottom: 20px;
    display: block; /* Center the icon */
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.calculator-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.calculator-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.slider-container {
    margin-bottom: 30px;
}

.token-slider {
    width: 100%;
    cursor: pointer;
    height: 10px;
    background: linear-gradient(90deg, var(--sf-accent-blue), var(--sf-purple)); /* Use theme gradient */
    border-radius: 5px;
    outline: none;
    opacity: 0.8;
    transition: opacity var(--transition-smooth);
    appearance: none; /* Override default look */
    -webkit-appearance: none;
}

.token-slider:hover {
    opacity: 1;
}

/* Custom slider thumb */
.token-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--sf-purple); /* Use theme color */
    box-shadow: 0 0 8px rgba(138, 86, 224, 0.6); /* Use theme color */
    transition: transform 0.2s ease;
}

.token-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.token-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--sf-purple);
    box-shadow: 0 0 8px rgba(138, 86, 224, 0.6);
}

.token-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-display {
    margin-bottom: 35px;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
}

.price-display p {
    margin-bottom: 8px;
    color: var(--text-primary); /* Ensure price text is white */
}

.price-display span {
    color: var(--sf-highlight-blue); /* Use theme highlight */
    font-weight: 700;
}

.purchase-button {
    display: inline-flex; /* Use inline-flex for consistency */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px; /* Match other CTAs */
    font-size: 1.1rem;
    margin-bottom: 15px; /* Space before disclaimer */
    min-width: 200px;
    /* Inherits .cta styles for background, hover, etc. */
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 10px;
    margin-bottom: 0; /* Remove extra bottom margin */
}

/* --- Purchase Modal Styles --- */
.purchase-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Higher than navbar */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(1, 14, 33, 0.9); /* Darker overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.purchase-modal-overlay.active {
    display: block;
    opacity: 1;
}

.purchase-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--sf-mid-blue-bg);
    padding: 35px 40px; /* Good padding */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px; /* Limit width */
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    opacity: 0;
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.purchase-modal-overlay.active .purchase-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.purchase-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.purchase-modal-close:hover {
    color: var(--white);
    transform: scale(1.1) rotate(90deg);
}

.purchase-modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-primary);
}

.purchase-modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.purchase-summary {
    background-color: rgba(1, 14, 33, 0.5); /* Darker inner bg */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--card-border);
    font-size: 15px;
    line-height: 1.7;
}

.purchase-summary span {
    font-weight: 600;
    color: var(--sf-highlight-blue);
}

/* Use existing form-group, form-control styles */
/* Add specific margin if needed */
#purchaseForm .form-group {
    margin-bottom: 20px;
}

#purchaseForm .form-control {
    /* Inherits general styling, ensure contrast if needed */
    background-color: rgba(1, 14, 33, 0.7); /* Slightly adjusted bg for modal */
}

#purchaseForm .cta {
    width: 100%; /* Make button full width */
    margin-top: 10px;
    padding: 15px 20px; /* Adjust padding */
    justify-content: center; /* Center icon and text */
}

#purchaseForm .cta i.fa-stripe-s {
    font-size: 1.5em; /* Make Stripe icon slightly larger */
    margin-right: 8px;
}

/* --- Inline Validation Styles --- */
.error-message {
    display: block; /* Show on new line */
    color: #ff7b7b; /* Lighter red for better readability on dark bg */
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em; /* Reserve space to prevent layout shifts */
    visibility: hidden; /* Use visibility to reserve space */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.active {
    visibility: visible;
    opacity: 1;
}

.form-control.input-error {
    border-color: #ff7b7b !important; /* Force red border */
    box-shadow: 0 0 0 3px rgba(255, 123, 123, 0.3); /* Red focus glow */
}

/* --- Payment Result Modal Styles --- */
.payment-result-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(1, 14, 33, 0.9); /* Dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-result-modal-overlay.active {
    display: block;
    opacity: 1;
}

.payment-result-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--sf-mid-blue-bg);
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    opacity: 0;
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    text-align: center; /* Center content */
}

.payment-result-modal-overlay.active .payment-result-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.payment-result-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.payment-result-modal-close:hover {
    color: var(--white);
    transform: scale(1.1) rotate(90deg);
}

.modal-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
}

.modal-icon-container.success {
    background-color: rgba(61, 220, 151, 0.15);
    border-color: var(--sf-green);
}

.modal-icon-container.error {
    background-color: rgba(255, 123, 123, 0.15);
    border-color: #ff7b7b;
}

.modal-icon-container i {
    font-size: 40px;
}

.modal-icon-container i.success-icon {
    color: var(--sf-green);
}

.modal-icon-container i.error-icon {
    color: #ff7b7b;
}

.payment-result-modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.payment-result-modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.payment-result-modal-content p strong {
    color: var(--sf-highlight-blue);
    font-weight: 600;
}

.payment-result-modal-content .cta {
    width: auto; /* Button width adapts to text */
    min-width: 150px;
    margin-top: 10px;
    padding: 12px 25px;
    justify-content: center;
}

