/* ============================================
   Treasury Nexus - Styles
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    /* Core palette - Dark Navy + Teal */
    --background: hsl(222, 47%, 6%);
    --foreground: hsl(210, 40%, 98%);

    --card: hsl(222, 47%, 8%);
    --card-foreground: hsl(210, 40%, 98%);

    --popover: hsl(222, 47%, 10%);
    --popover-foreground: hsl(210, 40%, 98%);

    --primary: hsl(168, 76%, 42%);
    --primary-foreground: hsl(222, 47%, 6%);

    --secondary: hsl(222, 47%, 12%);
    --secondary-foreground: hsl(210, 40%, 98%);

    --muted: hsl(222, 30%, 16%);
    --muted-foreground: hsl(215, 20%, 65%);

    --accent: hsl(168, 76%, 42%);
    --accent-foreground: hsl(222, 47%, 6%);

    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(210, 40%, 98%);

    --border: hsl(222, 30%, 18%);
    --input: hsl(222, 30%, 18%);
    --ring: hsl(168, 76%, 42%);

    --radius: 0.75rem;

    /* Extended palette */
    --navy-900: hsl(222, 47%, 6%);
    --navy-800: hsl(222, 47%, 8%);
    --navy-700: hsl(222, 47%, 12%);
    --navy-600: hsl(222, 30%, 18%);
    --navy-500: hsl(222, 25%, 25%);

    --teal-500: hsl(168, 76%, 42%);
    --teal-400: hsl(168, 76%, 52%);
    --teal-300: hsl(168, 60%, 65%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(168, 76%, 42%) 0%, hsl(180, 76%, 35%) 100%);
    --gradient-hero: linear-gradient(180deg, hsl(222, 47%, 6%) 0%, hsl(222, 47%, 10%) 100%);
    --gradient-card: linear-gradient(135deg, hsl(222, 47%, 10%) 0%, hsl(222, 47%, 8%) 100%);
    --gradient-glow: radial-gradient(ellipse at center, hsla(168, 76%, 42%, 0.15) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 8px hsla(222, 47%, 2%, 0.3);
    --shadow-md: 0 8px 24px hsla(222, 47%, 2%, 0.4);
    --shadow-lg: 0 16px 48px hsla(222, 47%, 2%, 0.5);
    --shadow-glow: 0 0 40px hsla(168, 76%, 42%, 0.2);

    /* Typography */
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (Preserved from original) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius (Updated to match new system) */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    --radius-card: 1rem;
    /* Matched --radius */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 500ms ease-in-out;
}

/* Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: "rlig" 1, "calt" 1;
}

img {
    border-radius: 8px;
    /* Standard image radius */
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--foreground);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    font-weight: 700;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 600;
}

/* Background Grid Pattern */
.bg-grid {
    background-image: none;
    position: relative;
}

/* New Design Utilities */
.glass-card {
    background-color: hsla(222, 47%, 8%, 0.5);
    /* using --card with opacity */
    backdrop-filter: blur(12px);
    border: 1px solid hsla(222, 30%, 18%, 0.5);
    /* using --border/50 */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
}

.gradient-text {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.glow-effect:hover::before {
    opacity: 0.6;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px hsla(168, 76%, 42%, 0.3);
    }

    50% {
        box-shadow: 0 0 40px hsla(168, 76%, 42%, 0.5);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}


/* Wireframe Image Placeholder */
.wireframe-img {
    background: var(--card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.wireframe-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, var(--secondary) 25%, transparent 25%, transparent 50%, var(--secondary) 50%, var(--secondary) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.2;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--teal-400);
    transform: translateY(-5px);
    box-shadow: 0 0 20px hsla(168, 76%, 42%, 0.4);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: hsla(222, 47%, 6%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 1.8rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-links {
    display: none;
    /* Hidden by default on mobile */
    list-style: none;
    flex-direction: column;
    position: fixed;
    top: 4rem;
    /* Below header */
    left: 0;
    width: 100%;
    background-color: var(--background);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.nav-links.active {
    display: flex;
    /* Show when active on mobile */
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    /* Full width target on mobile */
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        /* Always visible */
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.8125rem;
        width: auto;
    }
}

.nav-links a:hover {
    color: var(--foreground);
    background-color: var(--secondary);
}

/* Ensure button inside nav retains its specific text color */
.nav-links a.btn-primary {
    color: var(--primary-foreground) !important;
    background: var(--gradient-primary);
    width: 100%;
    /* Full width on mobile */
}

@media (min-width: 768px) {
    .nav-links a.btn-primary {
        width: auto;
    }
}

.nav-links a.btn-primary:hover {
    background: var(--gradient-primary);
    color: var(--primary-foreground) !important;
    opacity: 0.9;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

/* Primary Button (Shiny Style) */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: 0 0 20px hsla(168, 76%, 42%, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    opacity: 0.9;
    transform: translateY(0);
}

/* Secondary Button (Outline Style) */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Shared Shine Animation Layer */
.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -50%;
    width: 200%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    filter: blur(8px);
    opacity: 0.8;
    transform: rotate(-10deg);
    transition: top 0.6s ease-out;
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    top: 150%;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
/* Dark Gradient Animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    padding-top: 8rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
    position: relative;
    background-color: var(--background);
    background-image: radial-gradient(circle at 50% 90%, #15213B 0%, var(--background) 70%);
    color: var(--foreground);
    overflow: hidden;
}

/* Grid overlay removed */

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--foreground);
    display: inline-block;
    padding-bottom: 0.2em;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.5s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-line-1 {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
    display: inline-block;
}

.hero-line-2 {
    color: var(--primary);
    /* Maintain primary color for second line */
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content (10) */
    opacity: 0.6;
    /* Adjust visibility */
    pointer-events: none;
    /* Allow clicks to pass through */
}

@keyframes spotlight-text {
    0% {
        background-position: -200% center;
    }

    45% {}

    50% {
        /* Sharp bloom peak matching sweep (approx 800ms window) */
    }

    55% {}

    100% {
        background-position: 200% center;
    }
}

.hero h1 .text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 42rem;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    /* Reduced from 7rem */
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }

    .hero-cta .btn {
        width: 16rem;
        /* Increased width to prevent wrapping */
        justify-content: center;
        white-space: nowrap;
    }
}

.hero-visual {
    width: 100%;
    margin: 0 auto 6rem;
    /* Added 6rem bottom margin */
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-tabs {
    display: flex;
    background-color: #0b1221;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-bottom: none;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-tabs::-webkit-scrollbar {
    display: none;
}

.hero-tab {
    background: transparent;
    color: var(--muted-foreground);
    /* Grey for inactive */
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex: 1;
    border-right: 1px solid var(--border);
    /* Subtle border */
}

.hero-tab:last-child {
    border-right: none;
}

.hero-tab:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--foreground);
}

.hero-tab.active {
    background-color: #1e293b;
    /* Dark background instead of primary */
    color: #ffffff;
    /* White text */
}

.hero-screenshot {
    width: 100%;
    height: auto;
    /* Top radius removed to sit flush with tabs */
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-2xl);
    display: block;
    transition: opacity 0.2s ease-in-out;
}

.hero-card {
    width: 100%;
    height: 400px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-2xl);
}

.hero-icon svg {
    color: var(--color-bg-white);
    width: 2rem;
    height: 2rem;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.hero-sublabel {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* SVG Node Connector Animation */
.node-connector {
    stroke: var(--color-border);
    stroke-dasharray: 4;
    animation: flow 20s linear infinite;
}

@keyframes flow {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   Logo Bar
   ============================================ */
.logo-bar {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    /* Swapped from bottom to top */
    border-bottom: none;
    padding: 2.5rem 0;
    text-align: center;
}

.logo-bar-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    /* Center block with bottom margin */
    text-align: center;
    width: 100%;
    display: block;
}

.logo-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: opacity var(--transition-base);
}

.partner-logo:hover {
    opacity: 1;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 8rem 1.5rem;
}

.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 42rem;
}

/* ============================================
   Capabilities Section
   ============================================ */
.capabilities-card {
    padding: 2.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all var(--transition-base);
    height: 100%;
}

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

.capabilities-icon {
    width: 3rem;
    height: 3rem;
    background-color: hsla(168, 76%, 42%, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.capabilities-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.capabilities-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.capabilities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capabilities-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
}

.capabilities-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* ============================================
   Capabilities Section
   ============================================ */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.capabilities-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    transition: all var(--transition-base);
}

.capabilities-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.capabilities-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: hsla(168, 76%, 42%, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.capabilities-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.capabilities-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.features-section {
    background-color: var(--background);
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.bento-card {
    border: 1px solid hsla(222, 30%, 18%, 0.5);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    background-color: hsla(222, 47%, 8%, 0.5);
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    box-shadow: var(--shadow-sm);
}

.bento-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.bento-badge svg {
    color: var(--primary);
}

.bento-badge span {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--foreground);
}

.bento-card h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-bottom: 1rem;
    color: var(--foreground);
}

/* ============================================
   Key Capabilities Grid
   ============================================ */
.key-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
}

.key-cap-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all var(--transition-base);
}

.key-cap-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.key-cap-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.key-cap-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.key-cap-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.key-cap-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Spans */
.span-col-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .key-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .span-col-2,
    .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .key-capabilities-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Solutions by Role Section
   ============================================ */
.solutions-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background-color: hsla(222, 47%, 8%, 0.5);
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    margin: 0 auto 3rem;
    width: fit-content;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--muted-foreground);
    border: none;
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.table-btn:hover:not(.active) {
    color: var(--foreground);
    background-color: hsla(222, 47%, 12%, 0.5);
}

.solution-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.solution-card-box {
    background-color: hsla(222, 47%, 6%, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.solution-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--foreground);
    font-size: 1.125rem;
}

.metric-item {
    margin-bottom: 2rem;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    display: block;
}

.metric-label {
    font-weight: 700;
    color: var(--foreground);
    margin-right: 0.5rem;
}

.metric-sub {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.outcome-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--foreground);
    font-weight: 500;
}

.outcome-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (max-width: 768px) {
    /* .solution-cards-grid handles 1fr by default now */
}


/* ============================================
   Pricing Section
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 30px hsla(168, 76%, 42%, 0.1);
    transform: scale(1.02);
    z-index: 10;
    padding-top: 4rem;
    /* Extra space for badge */
}

.most-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.pricing-sub {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    min-height: 2.6rem;
    /* Align titles */
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-suffix {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-left: 0.25rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    /* Push button to bottom */
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.check-icon {
    color: var(--primary);
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
}

.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pricing-btn.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.pricing-btn.outline:hover {
    background-color: hsla(222, 47%, 12%, 0.5);
    border-color: var(--muted-foreground);
}

.pricing-btn.solid {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: var(--primary-foreground);
}

.pricing-btn.solid:hover {
    background-color: hsla(168, 76%, 38%, 1);
}

#pricing {
    background-color: #000000;
    color: #ffffff;
    padding: 6rem 0;
    /* Enhance vertical spacing */
}

#pricing .section-title {
    color: #ffffff;
}

#pricing .section-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .pricing-card.highlight {
        transform: scale(1);
        padding-top: 3rem;
    }
}




/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.step-number {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background-color: hsla(168, 76%, 42%, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-icon svg {
    width: 2rem;
    height: 2rem;
}

.step-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.step-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Enterprise Security Section
   ============================================ */
.security-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: hsla(168, 76%, 42%, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid hsla(168, 76%, 42%, 0.2);
}

.security-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.security-feature-card {
    background-color: hsla(222, 47%, 8%, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.security-feature-card:hover {
    background-color: var(--card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.security-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background-color: hsla(168, 76%, 42%, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.security-feature-card span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--foreground);
}

@media (max-width: 1024px) {
    .security-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .security-content {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .security-features-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================
   FAQ Section
   ============================================ */

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 10rem 1.5rem;
}

.faq-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 4rem;
}

.faq-list {
    max-width: 56rem;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    margin-bottom: 1rem;
}

.faq-item[open] {
    border-color: var(--color-border);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--color-text-secondary);
    margin-top: 1.5rem;
    line-height: 1.7;
}

.faq-extra {
    display: none;
}

.faq-extra.show {
    display: block;
}

.faq-toggle-btn {
    text-align: center;
    margin-top: 3rem;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.toggle-btn svg {
    transition: transform var(--transition-base);
}

.toggle-btn.active svg {
    transform: rotate(180deg);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    height: 16rem;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.1;
}

.about-visual svg {
    width: 4rem;
    height: 4rem;
}

.about-content h3 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.about-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--color-text-primary);
    padding-bottom: 0.25rem;
    transition: all var(--transition-base);
}

.about-link:hover {
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

/* ============================================
   CTA Section
   ============================================ */
/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 8rem 1.5rem;
    position: relative;
    background-color: var(--color-secondary);
    background-image: linear-gradient(to top, #15213B, #0f1115);
    color: var(--color-bg-white);
    overflow: hidden;
    text-align: center;
}

/* Grid Overlay removed per user request */

.cta-box {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    color: var(--color-bg-white);
}

.cta-box>p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 36rem;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 10;
}



.cta-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--background);
    color: var(--muted-foreground);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 1.8rem;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 20rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact span {
    color: var(--color-text-light);
}

.footer-column h5 {
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 8rem 1.5rem;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(168, 76%, 42%, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 40rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    /* Default to column (Mobile first) */
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.cta-actions .btn {
    width: 100%;
    /* Full width on mobile */
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
        /* Row on desktop */
        width: auto;
        justify-content: center;
    }

    .cta-actions .btn {
        width: 16rem;
        /* Match Hero CTA width */
        white-space: nowrap;
    }
}


/* ============================================
   Footer Section
   ============================================ */
@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }

    .cta-features {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-card.span-2 {
        grid-column: span 2;
    }

    .architecture-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap-ai {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: 5fr 7fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        padding: 6rem;
    }
}

/* Placeholder Styling Removed to support Dark Mode */

/* Ensure icons inside placeholders are visible if needed, or hide if requested "unused" */
/* User said "remove any text within them". I will do that in HTML. CSS just sets BG. */

.roadmap-grid {
    grid-template-columns: repeat(4, 1fr);
}


@media (min-width: 1280px) {
    h1 {
        font-size: 5rem;
    }
}

/* ============================================
   Contact Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-2xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    /* Prevent modal from being taller than screen */
    overflow-y: auto;
    /* Allow scrolling inside modal if needed */
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--foreground);
    background-color: var(--secondary);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
    /* Center header text as requested 'clean professional' usually implies centered headers for modals */
}

.modal-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.modal-header p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.required {
    color: var(--primary);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: hsla(222, 47%, 12%, 0.5);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(168, 76%, 42%, 0.2);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

input[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: hsla(222, 47%, 12%, 0.5);
    display: grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
}

input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
}

input[type="radio"]:checked {
    border-color: var(--primary);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-content {
        height: 100vh;
        max-height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        border: none;
        padding: 1.5rem;
        padding-top: 3rem;
        /* Extra active space for top close button to breathe or just visual hierarchy */
        /* Actually user asked for Consistent padding. Let's keep it uniform but safe. */
        /* Let's try uniform 1.5rem but ensure no vertical center forcing weird gaps */
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top to prevent cropping and odd spacing */
        overflow-y: auto;
        /* Ensure scrollability */
    }

    .modal-close {
        top: 1.5rem;
        right: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   Pricing Split Layout
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1.2fr 1fr;
        /* More space for features */
        gap: 4rem;
    }
}

/* Left Column: Features */
.features-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--muted-foreground);
}

.check-icon {
    color: var(--primary);
    background-color: hsla(168, 76%, 42%, 0.1);
    border-radius: 50%;
    padding: 2px;
    width: 1.5rem;
    height: 1.5rem;
}

/* Right Column: Action Card */
/* Right Column: Pricing Visual */
.pricing-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.pricing-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.pricing-features-container .btn {
    width: 100%;
}

@media (min-width: 640px) {
    .pricing-features-container .btn {
        width: auto;
        min-width: 200px;
    }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    border: 2px solid var(--background);
    /* Creates a padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}