/* ============================================
   FarmaKiosk - Modern Glass-Morphism Design
   Theme System Support
   ============================================ */

/* Base Variables (non-theme specific) */
:root {
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --success-color: #4ecdc4;
    --error-color: #ff6b6b;
    --warning-color: #ffd93d;
}

/* ============================================
   THEME: White (Default)
   White background with green accents
   Perfect for pharmacy/medical products
   ============================================ */
body.theme-white {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-glow: rgba(46, 125, 50, 0.4);
    --secondary-color: #1a1a1a;
    --accent-color: #00C853;
    --accent-light: #69F0AE;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #757575;
    --bg-dark: #f8faf8;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f0f4f0;
    --bg-light: #f5f7f5;
    --bg-subtle: #f8faf8;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(46, 125, 50, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-border: rgba(46, 125, 50, 0.12);
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.98);
    --footer-bg-start: #f5f7f5;
    --footer-bg-end: #e8ebe8;
}

/* ============================================
   THEME: Blue (Dark)
   Dark blue background with light blue accents
   ============================================ */
body.theme-blue {
    --primary-color: #7CB9E8;
    --primary-dark: #5aa4d4;
    --primary-light: #a8d4f2;
    --primary-glow: rgba(124, 185, 232, 0.5);
    --secondary-color: #1a2332;
    --accent-color: #4ecdc4;
    --accent-light: #7ee8e1;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --bg-dark: #0a0e17;
    --bg-gradient-start: #0d1321;
    --bg-gradient-end: #1a2332;
    --bg-light: #151c2c;
    --bg-subtle: #0f1520;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 58, 95, 0.3);
    --card-border: rgba(124, 185, 232, 0.15);
    --navbar-scrolled-bg: rgba(10, 14, 23, 0.98);
    --footer-bg-start: #1a2332;
    --footer-bg-end: #0a0e17;
}

/* ============================================
   THEME: Dark (Purple)
   Dark background with purple accents
   ============================================ */
body.theme-dark {
    --primary-color: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary-color: #1a1a1a;
    --accent-color: #F472B6;
    --accent-light: #F9A8D4;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --bg-dark: #0f0f0f;
    --bg-gradient-start: #0f0f0f;
    --bg-gradient-end: #1a1a1a;
    --bg-light: #262626;
    --bg-subtle: #1a1a1a;
    --glass-bg: rgba(38, 38, 38, 0.8);
    --glass-border: rgba(139, 92, 246, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --card-bg: rgba(38, 38, 38, 0.8);
    --card-border: rgba(139, 92, 246, 0.2);
    --navbar-scrolled-bg: rgba(15, 15, 15, 0.98);
    --footer-bg-start: #1a1a1a;
    --footer-bg-end: #0f0f0f;
}

/* ============================================
   THEME: Orange (Light)
   Warm light background with orange accents
   ============================================ */
body.theme-orange {
    --primary-color: #F97316;
    --primary-dark: #C2410C;
    --primary-light: #FB923C;
    --primary-glow: rgba(249, 115, 22, 0.4);
    --secondary-color: #1c1917;
    --accent-color: #FBBF24;
    --accent-light: #FDE68A;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --bg-dark: #fef7ed;
    --bg-gradient-start: #fffbf5;
    --bg-gradient-end: #fef7ed;
    --bg-light: #fef3e2;
    --bg-subtle: #fef7ed;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(249, 115, 22, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-border: rgba(249, 115, 22, 0.15);
    --navbar-scrolled-bg: rgba(255, 251, 245, 0.98);
    --footer-bg-start: #fef3e2;
    --footer-bg-end: #fde68a33;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Honeypot trap for bots - these spans are invisible to humans */
.h-trap {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Prevent focus outline on headings (Blazor enhanced navigation) */
h1, h2, h3, h4, h5, h6,
.page-hero h1,
.section-title,
.section-header h2,
.hero-title,
.landing-title,
.section-heading,
.cta-content h2,
.final-cta-content h2 {
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
.page-hero h1:focus,
.section-title:focus,
.section-header h2:focus,
.hero-title:focus,
.landing-title:focus,
.section-heading:focus,
.cta-content h2:focus,
.final-cta-content h2:focus {
    outline: none !important;
    box-shadow: none !important;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px var(--glass-shadow), 0 0 30px var(--primary-glow);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-medium);
    background: transparent;
}

/* Use pseudo-element for backdrop-filter to avoid creating containing block for fixed children */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.navbar.scrolled::before {
    background: var(--navbar-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--glass-shadow);
    opacity: 1;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-brand .logo-icon {
    height: 40px;
    width: auto;
    transition: transform var(--transition-medium);
    flex-shrink: 0;
}

.navbar-brand .logo-text {
    height: 24px;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-brand:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop: hide mobile-only elements */
.navbar-right-mobile {
    display: none;
}

.language-selector-mobile {
    display: none;
}

.language-selector-desktop {
    display: block;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Language Selector - Fixed Styling */
.language-selector {
    position: relative;
    z-index: 1001;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.current-flag {
    font-size: 1.2rem;
}

.current-code {
    font-weight: 600;
    font-size: 0.8rem;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--navbar-scrolled-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 40px var(--glass-shadow);
    overflow: hidden;
    z-index: 1002;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.language-option:hover {
    background: rgba(124, 185, 232, 0.15);
    color: var(--text-primary);
}

.language-option.active {
    background: rgba(124, 185, 232, 0.25);
    color: var(--primary-color);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-code {
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 25px;
}

.lang-name {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.language-option.active .lang-name {
    color: var(--primary-light);
}

/* CTA Button in Nav */
.cta-button {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9rem !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
}

/* Light themes need dark text on primary buttons */
body.theme-white .btn-primary,
body.theme-orange .btn-primary {
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: #ffffff;
}

body.theme-white .btn-primary:hover,
body.theme-orange .btn-primary:hover {
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow {
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-arrow {
    width: 18px;
    height: 18px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(124, 185, 232, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 185, 232, 0.2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(78, 205, 196, 0.15);
    top: 50%;
    right: 10%;
    animation-delay: -2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(124, 185, 232, 0.15);
    bottom: 20%;
    left: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.particle-0 { left: 5%; animation-delay: 0s; }
.particle-1 { left: 10%; animation-delay: -1s; }
.particle-2 { left: 15%; animation-delay: -2s; }
.particle-3 { left: 20%; animation-delay: -3s; }
.particle-4 { left: 25%; animation-delay: -4s; }
.particle-5 { left: 30%; animation-delay: -5s; }
.particle-6 { left: 35%; animation-delay: -6s; }
.particle-7 { left: 40%; animation-delay: -7s; }
.particle-8 { left: 45%; animation-delay: -8s; }
.particle-9 { left: 50%; animation-delay: -9s; }
.particle-10 { left: 55%; animation-delay: -10s; }
.particle-11 { left: 60%; animation-delay: -11s; }
.particle-12 { left: 65%; animation-delay: -12s; }
.particle-13 { left: 70%; animation-delay: -13s; }
.particle-14 { left: 75%; animation-delay: -14s; }
.particle-15 { left: 80%; animation-delay: -0.5s; }
.particle-16 { left: 85%; animation-delay: -1.5s; }
.particle-17 { left: 90%; animation-delay: -2.5s; }
.particle-18 { left: 95%; animation-delay: -3.5s; }
.particle-19 { left: 97%; animation-delay: -4.5s; }

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.card-content {
    padding: 2rem;
}

.typing-animation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.typing-line {
    height: 12px;
    background: linear-gradient(90deg, var(--glass-border) 0%, rgba(124, 185, 232, 0.3) 50%, var(--glass-border) 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 2s infinite;
}

.line-1 { width: 80%; }
.line-2 { width: 60%; animation-delay: 0.2s; }
.line-3 { width: 70%; animation-delay: 0.4s; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 185, 232, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.ai-icon {
    animation: pulse 2s infinite;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Why Section */
.why-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 185, 232, 0.05) 50%, transparent 100%);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(180deg, transparent 0%, rgba(78, 205, 196, 0.05) 50%, transparent 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefits-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 800px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.benefit-icon {
    color: var(--accent-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item span:last-child {
    color: var(--text-secondary);
}

.benefit-item-large {
    padding: 1.5rem;
}

.benefit-item-large .benefit-icon {
    font-size: 1.5rem;
}

.patients-benefits {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 185, 232, 0.05) 50%, transparent 100%);
}

/* Security Section */
.security-section .security-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.security-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 30px;
}

.security-check {
    font-size: 1.25rem;
}

.security-item span:last-child {
    color: var(--text-secondary);
}

.security-tagline {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Designed For Section */
.designed-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 185, 232, 0.05) 50%, transparent 100%);
}

.designed-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, rgba(124, 185, 232, 0.1) 0%, transparent 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================
   Page Hero (for inner pages)
   ============================================ */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(124, 185, 232, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Page
   ============================================ */
.features-detail-grid {
    display: grid;
    gap: 2rem;
}

.feature-detail-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.feature-detail-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 185, 232, 0.1);
    border-radius: var(--border-radius);
}

.feature-detail-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-detail-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   Pricing Page
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(124, 185, 232, 0.3);
}

.plan-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    width: fit-content;
}

.plan-badge.gold {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.plan-badge.rhodium {
    background: rgba(124, 185, 232, 0.2);
    border-color: rgba(124, 185, 232, 0.5);
    color: var(--primary-color);
}

.billing-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.radio-option:hover {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--text-primary);
}

.radio-option em {
    color: var(--accent-color);
    font-style: normal;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-billing {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plan-tokens {
    display: block;
    padding: 0.625rem 1rem;
    background: rgba(124, 185, 232, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-tokens.highlight {
    background: rgba(124, 185, 232, 0.25);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.plan-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: center;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 185, 232, 0.1);
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-info-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-wrapper {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 185, 232, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.form-message.success {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-psy {
    color: var(--text-primary);
}

.footer-ss {
    color: var(--primary-color);
}

.footer-istant {
    color: var(--primary-color);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links h4,
.footer-company h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
}

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

.footer-company address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-company strong {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Error Page
   ============================================ */
.error-content {
    text-align: center;
    padding: 4rem 0;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.error-content h1 {
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 2rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-container {
        position: relative;
        z-index: 1;
    }

    .navbar-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--navbar-scrolled-bg) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.15s ease-out, visibility 0s 0.15s;
        z-index: 9999 !important;
    }

    .navbar-menu.open {
        transform: translateX(0) !important;
        visibility: visible !important;
        transition: transform 0.15s ease-out, visibility 0s 0s;
    }

    .navbar-menu .nav-link {
        font-size: 1.5rem !important;
        color: var(--text-primary) !important;
    }

    .navbar-menu .btn {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
    }

    .navbar-right-mobile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: relative;
        z-index: 10000 !important;
        flex-shrink: 0;
    }

    .language-selector-mobile {
        display: block;
        position: relative;
    }

    .language-selector-mobile .language-btn {
        padding: 0.4rem 0.6rem;
    }

    .language-selector-desktop {
        display: none;
    }

    .language-selector-mobile .language-dropdown {
        position: fixed;
        top: 60px;
        right: 1rem;
        left: auto;
        transform: none;
        min-width: 160px;
        margin-top: 0;
        z-index: 10001 !important;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 10000 !important;
        flex-shrink: 0;
        position: relative;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .features-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.popular {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

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

    .page-hero {
        padding: 8rem 0 4rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand .logo-icon {
        height: 32px;
    }

    .navbar-brand .logo-text {
        height: 18px;
    }

    .navbar-right-mobile {
        gap: 0.5rem;
    }

    .language-selector-mobile .language-btn {
        padding: 0.35rem 0.5rem;
    }

    .language-selector-mobile .language-dropdown {
        top: 55px;
        right: 0.5rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .feature-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-detail-icon {
        margin: 0 auto;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

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

@media (max-width: 360px) {
    .navbar-brand .logo-text {
        display: none;
    }

    .navbar-brand .logo-icon {
        height: 36px;
    }
}

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

/* Access Issue Banner */
.access-issue-banner {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.access-issue-banner .access-issue-icon {
    margin-bottom: 1rem;
}

.access-issue-banner .access-issue-icon svg {
    width: 64px;
    height: 64px;
}

.access-issue-banner p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Why Better Link */
.why-better-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(124, 185, 232, 0.1);
    border: 1px solid rgba(124, 185, 232, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(124, 185, 232, 0.3),
                0 0 30px rgba(124, 185, 232, 0.15),
                inset 0 0 10px rgba(124, 185, 232, 0.05);
    animation: pillGlow 3s ease-in-out infinite;
}

@keyframes pillGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(124, 185, 232, 0.3),
                    0 0 30px rgba(124, 185, 232, 0.15),
                    inset 0 0 10px rgba(124, 185, 232, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(124, 185, 232, 0.5),
                    0 0 40px rgba(124, 185, 232, 0.25),
                    inset 0 0 15px rgba(124, 185, 232, 0.1);
    }
}

.why-better-link:hover {
    background: rgba(124, 185, 232, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 0 25px rgba(124, 185, 232, 0.5),
                0 0 50px rgba(124, 185, 232, 0.3),
                inset 0 0 15px rgba(124, 185, 232, 0.1);
    animation: none;
}

.landing-why-link {
    margin-top: 2rem;
}

.hero-why-link {
    margin-top: 1.5rem;
}
