/* =========================================
   SEIDER — HOME CSS
   Redesign: Precision Finance aesthetic
   Fonts: Syne (headings) + DM Sans (body)
========================================= */

/* =========================================
   DESIGN TOKENS
========================================= */

:root {
    --nav-h: 68px;

    /* Surfaces */
    --bg:           #ffffff;
    --bg-2:         #f8fafc;
    --bg-3:         #f1f5f9;

    /* Text */
    --text:         #0f172a;
    --text-muted:   #64748b;
    --text-subtle:  #94a3b8;

    /* Accent */
    --accent:       #2563eb;
    --accent-dark:  #1d4ed8;
    --accent-light: #eff6ff;
    --accent-border:rgba(37,99,235,0.18);

    /* Borders */
    --border:       #e2e8f0;
    --border-2:     #cbd5e1;

    /* Cards */
    --card-bg:      #ffffff;
    --card-border:  #e2e8f0;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:    0 24px 60px rgba(0,0,0,0.10);

    /* Type */
    --font-display: "Inter", sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radius */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
}

body.dark-mode {
    --bg:           #070d1a;
    --bg-2:         #0d1526;
    --bg-3:         #111d32;
    --text:         #f1f5f9;
    --text-muted:   #94a3b8;
    --text-subtle:  #64748b;
    --border:       rgba(255,255,255,0.07);
    --border-2:     rgba(255,255,255,0.12);
    --card-bg:      rgba(15,23,42,0.85);
    --card-border:  rgba(255,255,255,0.06);
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg:    0 24px 60px rgba(0,0,0,0.4);
    --accent-light: rgba(37,99,235,0.12);
    --accent-border:rgba(59,130,246,0.2);
}

/* =========================================
   RESETS
========================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.hidden { opacity: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.15;
}

p { margin: 0; }

a { text-decoration: none; color: inherit; }

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

input {
    font-family: var(--font-body);
    font-size: 15px;
}

img { display: block; }

.hidden { display: none !important; }

/* =========================================
   GLOBAL BUTTON COMPONENTS
========================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(37,99,235,0.28);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid var(--border-2);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-2);
    background: var(--bg-2);
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 16px;
}

/* =========================================
   NAV
========================================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.nav-scrolled {
    background: rgba(255,255,255,0.92);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .site-nav.nav-scrolled {
    background: rgba(7,13,26,0.94);
    border-color: rgba(255,255,255,0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-img {
    height: 30px;
    width: auto;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

/* Right cluster */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language */
.language-wrapper {
    position: relative;
}

.nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    font-family: var(--font-body);
    cursor: pointer;
}

.nav-lang-btn:hover {
    color: var(--text);
    background: var(--bg-2);
    border-color: var(--border);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1100;
    backdrop-filter: blur(12px);
}

.language-menu.hidden { display: none; }

.language-option {
    display: block;
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: var(--font-body);
}

.language-option:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Dark mode btn */
.nav-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 38px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav-theme-btn:hover {
    color: var(--text);
    background: var(--bg-2);
    border-color: var(--border);
}

/* Nav buttons */
.nav-btn-login {
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.nav-btn-login:hover {
    color: var(--text);
    background: var(--bg-2);
    border-color: var(--border);
}

.nav-btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.nav-btn-signup:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 14px rgba(37,99,235,0.28);
}

/* =========================================
   HERO
========================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

/* Background orbs + grid */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -120px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -50px;
    right: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    animation: orbFloat2 18s ease-in-out infinite;
}

body.dark-mode .hero-orb-1 {
    background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
    opacity: 0.7;
}

body.dark-mode .hero-orb-2 {
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
    opacity: 0.7;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.04); }
    66%  { transform: translate(-15px, 25px) scale(0.97); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(-25px, 20px) scale(1.06); }
    70%  { transform: translate(20px, -15px) scale(0.96); }
}

/* Subtle dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black, transparent);
}

/* Hero layout */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px 100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
}

/* Hero text */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    animation: heroFadeUp 0.7s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--accent-border);
    margin-bottom: 24px;
    letter-spacing: 0.1px;
}

.hero-title {
    font-size: clamp(42px, 5.5vw, 66px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.08;
}

.hero-title-accent {
    color: var(--accent);
    display: block;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Stats row */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 500;
}

.hero-meta-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* =========================================
   PREVIEW CARD (Dashboard Mockup)
========================================= */

.hero-visual {
    animation: heroFadeUp 0.7s 0.15s ease both;
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
    animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0.1); }
}

.preview-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.preview-badge-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16,185,129,0.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.2);
    letter-spacing: 0.5px;
}

/* Balance */
.preview-balance-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.preview-balance-label {
    font-size: 12px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 4px;
    font-weight: 500;
}

.preview-balance-amount {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}

.preview-cents {
    font-size: 22px;
    color: var(--text-muted);
}

.preview-balance-change {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.preview-up {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16,185,129,0.10);
    padding: 2px 8px;
    border-radius: 999px;
}

.preview-period {
    font-size: 12px;
    color: var(--text-subtle);
}

/* Chart */
.preview-chart-area {
    margin-bottom: 20px;
}

.preview-chart {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 60px;
}

.chart-bar {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 4px 4px 0 0;
    background: var(--bg-3);
    transition: height 0.3s ease;
}

body.dark-mode .chart-bar {
    background: rgba(255,255,255,0.06);
}

.chart-bar.active {
    background: var(--accent);
}

/* Transactions */
.preview-transactions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.preview-txn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.preview-txn:last-child { border-bottom: none; }

.txn-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.txn-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.txn-amount {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
}

.txn-out { color: var(--text-muted); }
.txn-in  { color: #10b981; }

/* =========================================
   PAGE SECTIONS
========================================= */

.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 28px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =========================================
   FEATURE CARDS
========================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--r-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.feature-card:hover {
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before { opacity: 1; }

.feature-number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
    transition: opacity 0.22s ease;
}

.feature-card:hover .feature-number { opacity: 0.8; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   SECURITY SECTION
========================================= */

.security-section {
    background: var(--bg-2);
    max-width: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}

.security-section .section-header,
.security-section .cards-grid {
    max-width: 1200px;
}

.security-card {
    padding: 32px 28px;
    border-radius: var(--r-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.security-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-2);
}

.security-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.security-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   STEPS
========================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.step-card {
    padding: 32px 28px;
    border-radius: var(--r-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform 0.22s ease;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -1px;
}

.step-connector {
    display: none; /* decorative - handled by grid */
}

.step-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   CTA SECTION
========================================= */

.cta-section {
    background: #0f172a;
    padding: 100px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .cta-section {
    background: #030812;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(37,99,235,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.cta-tag {
    color: #93c5fd;
    background: rgba(37,99,235,0.15);
    border-color: rgba(59,130,246,0.25);
    margin-bottom: 16px;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 14px;
    letter-spacing: -1.5px;
}

.cta-section p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #070d1a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 28px;
}

body.dark-mode .site-footer {
    background: #030812;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: #f1f5f9;
}

.footer-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.footer-copy {
    font-size: 13px;
    color: #64748b;
}

/* =========================================
   SCROLL TOP (floating)
========================================= */

.side-buttons-right {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
}

.scroll-top {
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: var(--text);
    color: var(--bg);
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    box-shadow: var(--shadow-lg);
}

/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-xl);
    padding: 22px 26px;
    box-shadow: var(--shadow-lg);
    animation: cardSlideUp 0.25s ease;
    backdrop-filter: blur(20px);
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.form-field {
    position: relative;
}

.form-field input {
    width: 100%;
    padding: 7px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-border);
    background: var(--bg);
}

.form-field input::placeholder { color: var(--text-subtle); }

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
    background: var(--accent-dark);
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* OAuth buttons */
.oauth-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.18s ease;
}

.oauth-btn:hover {
    background: var(--bg-3);
    border-color: var(--border-2);
}

/* Switch auth */
.switch-auth {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.switch-label { color: var(--text-muted); }

.switch-link {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.switch-link:hover { color: var(--accent-dark); }

/* Close button */
.btn-close {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 12px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-close:hover {
    background: var(--bg-2);
    color: var(--text);
}

/* =========================================
   CUSTOM MODAL
========================================= */

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.custom-modal-overlay:not(.active) { display: none; }

.custom-modal {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-xl);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-lg);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.custom-modal-icon {
    font-size: 22px;
}

.custom-modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.custom-modal-message {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 10px 22px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.18s ease;
}

.custom-modal-btn.cancel {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.custom-modal-btn.cancel:hover {
    background: var(--bg-3);
    color: var(--text);
}

.custom-modal-btn.confirm {
    background: var(--accent);
    border: 1px solid transparent;
    color: #fff;
}

.custom-modal-btn.confirm:hover {
    background: var(--accent-dark);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    /* Nav */
    .nav-btn-login { display: none; }

    .nav-lang-btn span { font-size: 0; }
    .nav-lang-btn::after {
        font-size: 16px;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 5px 80px;
        gap: 48px;
    }

    #btnLogin, #btnSignup {
        display: none;
    }

    .hero-content {
        align-items: center;
    }

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

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

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

    /* Cards */
    .cards-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* Sections */
    .page-section {
        padding: 80px 20px;
    }

    .security-section > * {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Auth */
    .auth-card { padding: 28px 24px; }

}