/* CSS Reset & Variables */
:root {
    /* Color Palette */
    --primary: #3056A3;
    --primary-rgb: 48, 86, 163;
    --primary-dark: #1F3F86;
    --accent-free: #4D88FF;
    --accent-plus: #8A5CFF;
    --accent-pro: #D4A017;
    --success: #2F8D5D;
    --danger: #C94F5D;
    
    /* Neutral Colors */
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    
    /* Layout & Shadow */
    --container-max: 1200px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --shadow-premium: 0 25px 50px -12px rgba(48, 86, 163, 0.12);
    
    /* Font Stack */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #6D16D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.w-full { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    min-height: 34px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(48, 86, 163, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 86, 163, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #041426;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    height: 68px;
    display: flex;
    align-items: center;
    transition: background .25s ease, box-shadow .25s ease;
    isolation: isolate;
    transform: translateZ(0);
}

.main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(7, 27, 49, 0.98), rgba(4, 20, 38, 0.98)), #041426;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.main-header.scrolled {
    background-color: #041426;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Brand Logo styles matching index.html */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-family: "Michroma", "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: block;
    flex: 0 0 48px;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .58em;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}

.brand-letter {
    display: inline-block;
    min-width: .62em;
    text-align: center;
    font-weight: 700;
    -webkit-text-stroke: .035em currentColor;
    paint-order: stroke fill;
}

.brand-e {
    width: .98em;
    height: .82em;
    display: inline-grid;
    grid-template-rows: .18em .18em .18em;
    align-content: space-between;
    transform: translateY(.02em);
}

.brand-e span {
    display: block;
    width: 100%;
    height: .18em;
    background: currentColor;
    border: 0;
}

.brand-e span:nth-child(2) {
    background: #7de8f0;
}

.brand-a {
    width: 1.08em;
    height: .92em;
    position: relative;
    display: inline-block;
    min-width: 1.08em;
    color: inherit;
    transform: translateY(.02em);
}

.brand-a::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 100%, 80% 100%, 50% 24%, 20% 100%, 0 100%);
    z-index: 1;
}

.brand-a .a-stroke {
    display: none;
}

.brand-a .a-dot {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .055em;
    width: .36em;
    height: .14em;
    background: #7de8f0;
    border-radius: .16em .16em .04em .04em;
    transform: translateX(-50%);
    z-index: 2;
}

/* Logo Dark background variations (drawer) */
.logo-dark {
    color: #132b46;
}

.logo-dark .brand-wordmark {
    color: #132b46;
}

.logo-dark .brand-e span {
    background: currentColor;
}

.logo-dark .brand-e span:nth-child(2) {
    background: #11b8c8;
}

.logo-dark .brand-a .a-dot {
    background: #11b8c8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 20px 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.77);
    font-size: 13px; /* Matched to index.html navigation font size */
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    border-radius: 999px;
    background: #11b8c8;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 200;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.mobile-drawer.active {
    transform: translateX(-280px);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 150;
    display: none;
}

.drawer-backdrop.active {
    display: block;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(48, 86, 163, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-premium span.material-icons {
    font-size: 14px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    color: #05051E;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(48,86,163,0.12) 0%, rgba(248,250,252,0) 70%);
    z-index: 1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

/* Intro Section */
.section-intro {
    padding: 60px 0 20px;
}

.section-tagline {
    font-family: var(--font-body);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px; /* Matched to eyebrow in index.html */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title-main {
    font-size: 2.25rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 40px 0 80px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse .feature-image-wrapper {
    order: 2;
}

.feature-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.feature-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
}

.feature-details {
    padding: 20px 0;
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #05051E;
}

.feature-description {
    color: var(--text-muted);
    font-size: 15px; /* Matched to feature copy in index.html */
    margin-bottom: 24px;
}

.breadcrumb-trail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background-color: #F1F5F9;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
}

.bc-step:first-child {
    color: var(--primary);
}

.bc-step:last-child {
    color: var(--text-main);
}

.bc-separator {
    color: #94A3B8;
}

.feature-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.feature-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Subscription Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: var(--bg-card-alt, #FFFFFF);
}

.plans-main-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.plans-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 48px; /* Separation from the simulator card */
    line-height: 1.6;
}

/* Interactive Expense & Income Simulator (Cashflow) */
.simulator-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 64px;
}

.sim-panel-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sim-panel-right {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sim-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sim-section-title span.material-icons {
    color: var(--primary);
    font-size: 20px;
}

.sim-btn-add {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sim-btn-add:hover {
    background-color: var(--primary-dark);
}

/* Expenses table/list */
.sim-expenses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    background-color: #FAFAFA;
}

.sim-expense-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.sim-expense-desc {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sim-expense-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: right;
}

.sim-expense-type {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sim-type-income {
    color: var(--success);
    background-color: rgba(47, 141, 93, 0.1);
}

.sim-type-expense {
    color: var(--danger);
    background-color: rgba(201, 79, 93, 0.1);
}

.sim-expense-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: color 0.2s ease;
}

.sim-expense-delete:hover {
    color: var(--danger);
}

/* Form block for adding expenses */
.sim-expense-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 12px;
}

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

.sim-expense-form input,
.sim-expense-form select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.sim-expense-form input:focus,
.sim-expense-form select:focus {
    border-color: var(--primary);
}

.sim-expense-form select {
    background-color: #FFFFFF;
    color: var(--text-main);
}

/* Color indicators for budget results */
.sim-val-income {
    color: var(--success) !important;
}

.sim-val-expense {
    color: var(--danger) !important;
}

.sim-val-balance {
    transition: color 0.2s ease;
}

.sim-val-balance.positive {
    color: var(--success) !important;
}

.sim-val-balance.negative {
    color: var(--danger) !important;
}

/* Right panel results styling */
.sim-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.sim-result-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.sim-result-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}



.sim-empty-state {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 24px 0;
    line-height: 1.5;
}



/* Security & Sync Section */
.security-section {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.security-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.security-tagline {
    font-family: var(--font-body);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px; /* Matched to eyebrow in index.html */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.security-title {
    font-size: 2.25rem;
    margin-bottom: 40px;
}

.security-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.security-feature:last-child {
    margin-bottom: 0;
}

.security-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: rgba(48, 86, 163, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-feat-icon span {
    font-size: 22px;
}

.security-feat-title {
    font-size: 16px; /* Matched to card heading scales */
    margin-bottom: 6px;
}

.security-feat-desc {
    color: var(--text-light);
    font-size: 14px; /* Matched to standard description text scale */
}

.security-image-wrapper {
    display: flex;
    justify-content: center;
}

.security-img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    padding: 80px 0;
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download-desc {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-button {
    background-color: #000000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}

.store-button:hover {
    background-color: #1A1A1A;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

.store-icon {
    font-size: 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 0.65rem;
    opacity: 0.75;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.store-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Footer styling */
.main-footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 80px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-left .logo-area {
    color: #FFFFFF;
}

.footer-left .app-logo {
    background-color: #FFFFFF;
    color: #0F172A;
}

.footer-about {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    color: #FFFFFF;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 32px;
}

.copyright {
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .simulator-container {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* Fonts scale down */
    .hero-title {
        font-size: 2.75rem;
    }
    .download-title {
        font-size: 2rem;
    }
    .plans-main-title {
        font-size: 1.75rem;
    }
    .plans-section {
        padding: 48px 0;
    }
    
    /* Layout stacks */
    .hero-container,
    .feature-row,
    .security-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-row.reverse .feature-image-wrapper {
        order: 0;
    }
    
    .hero-content, .security-content {
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    

    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Nav bar changes */
    .main-nav {
        display: none;
    }
    .nav-actions {
        margin-left: auto;
        margin-right: 12px;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .store-button {
        width: 100%;
    }
}

/* Language Picker Styles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
}

.language-picker {
    position: relative;
}

.language-trigger,
.language-option {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.language-trigger {
    height: 36px;
    min-width: 132px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.language-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.36);
    transform: translateY(-1px);
}

.language-trigger::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1001;
    min-width: 152px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(4, 20, 38, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s, transform .16s, visibility .16s;
}

.language-picker.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: #102235;
    background: transparent;
    text-align: left;
}

.language-option:hover,
.language-option.active {
    background: #eef7f8;
}

.flag {
    width: 20px;
    height: 14px;
    display: inline-block;
    flex: 0 0 20px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.flag-es {
    background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.flag-en {
    background:
        linear-gradient(33deg, transparent 42%, #fff 42% 48%, #c8102e 48% 53%, #fff 53% 59%, transparent 59%),
        linear-gradient(-33deg, #012169 38%, #fff 38% 44%, #c8102e 44% 49%, #fff 49% 55%, #012169 55%),
        linear-gradient(#fff 42%, #c8102e 42% 58%, #fff 58%),
        linear-gradient(90deg, transparent 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
        #012169;
}

.flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}

.flag-de {
    background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}


@media (max-width: 560px) {
    .logo {
        gap: 9px;
        font-size: 11px;
    }
    .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }
}

@media (max-width: 400px) {
    .language-trigger {
        min-width: auto;
        padding: 0 8px;
        gap: 0;
    }
    .language-trigger::after {
        display: none;
    }
    .language-current {
        display: none;
    }
}
