/* ============================================================
   GRAFIKZMIAN.PL – index.css (v2.0 Pastel Edition)
   Nowoczesny, pastelowy, glassmorphism UX
   ============================================================ */

/* ===== CSS VARIABLES (PASTEL PALETTE) ===== */
:root {
    /* Primary pastels */
    --pastel-pink:      #FFD6E0;
    --pastel-rose:      #F8B4C8;
    --pastel-lavender:  #E8D5F5;
    --pastel-violet:    #C9A7E8;
    --pastel-mint:      #D4F5E9;
    --pastel-green:     #8FDDC0;
    --pastel-peach:     #FFDAB9;
    --pastel-sky:       #D6F0FF;
    --pastel-blue:      #A8D8F0;
    --pastel-cream:     #FFF8F0;
    --pastel-yellow:    #FFF3C4;

    /* Functional colors */
    --primary:          #7C5CBF;   /* deep violet for actions */
    --primary-light:    #9B7DD4;
    --primary-glow:     rgba(124, 92, 191, 0.15);
    --secondary:        #2D2D3A;   /* dark text */
    --accent:           #FC8BAF;   /* soft pink accent */
    --success:          #10B981;
    --warning:          #F59E0B;
    --danger:           #EF4444;
    --info:             #3B82F6;

    /* Neutrals */
    --white:            #FFFFFF;
    --text:             #2D2D3A;
    --text-muted:       #6B7280;
    --text-light:       #9CA3AF;
    --border:           rgba(200, 180, 220, 0.25);
    --border-light:     rgba(200, 180, 220, 0.15);
    --surface:          rgba(255, 255, 255, 0.7);
    --surface-solid:    #FFFFFF;

    /* Gradients */
    --grad-primary:     linear-gradient(135deg, #7C5CBF 0%, #FC8BAF 100%);
    --grad-pastel:      linear-gradient(135deg, #FFD6E0, #E8D5F5, #D4F5E9);
    --grad-hero:        linear-gradient(160deg, #FFF5F7 0%, #F5F0FF 50%, #F0FFF8 100%);
    --grad-card:        linear-gradient(135deg, rgba(255,214,224,0.1), rgba(212,245,233,0.1));
    --grad-btn:         linear-gradient(135deg, #7C5CBF, #A78BFA);
    --grad-cta:         linear-gradient(135deg, #7C5CBF 0%, #FC8BAF 50%, #8FDDC0 100%);

    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(124, 92, 191, 0.08);
    --shadow-md:        0 8px 30px rgba(124, 92, 191, 0.12);
    --shadow-lg:        0 20px 60px rgba(124, 92, 191, 0.15);
    --shadow-hover:     0 25px 70px rgba(124, 92, 191, 0.2);
    --shadow-glow:      0 0 40px rgba(124, 92, 191, 0.1);

    /* Layout */
    --radius-sm:        10px;
    --radius:           16px;
    --radius-lg:        24px;
    --radius-xl:        32px;
    --radius-full:      50px;

    /* Transitions */
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition:       all 0.35s var(--ease);
    --transition-slow:  all 0.6s var(--ease);

    /* Typography */
    --font:             'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size:        16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(255, 214, 224, 0.25), transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 15%, rgba(232, 213, 245, 0.2), transparent 60%),
        radial-gradient(ellipse 600px 700px at 50% 80%, rgba(212, 245, 233, 0.2), transparent 60%),
        radial-gradient(ellipse 500px 400px at 80% 70%, rgba(255, 218, 185, 0.15), transparent 60%);
    animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0%   { opacity: 0.8; }
    50%  { opacity: 1; }
    100% { opacity: 0.8; }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER / NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

header:hover {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-btn);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(124, 92, 191, 0.3);
}

/* Nav links */
#mainNav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

#mainNav ul li a {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

#mainNav ul li a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--pastel-lavender);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--grad-btn);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(124, 92, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 191, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm-mobile {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 140px 0 80px;
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 213, 245, 0.3), transparent 70%);
    border-radius: 50%;
    animation: heroPulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 245, 233, 0.25), transparent 70%);
    border-radius: 50%;
    animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 1; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero h1 span {
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.check-icon {
    color: var(--success);
    font-weight: 700;
}

/* ===== APP PREVIEW (HERO RIGHT) ===== */
.app-preview {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: previewFloat 6s ease-in-out infinite;
    transition: var(--transition-slow);
}

.app-preview:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

@keyframes previewFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(240, 235, 250, 0.6);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #FF6B6B; }
.dots span:nth-child(2) { background: #FFD93D; }
.dots span:nth-child(3) { background: #6BCB77; }

.preview-body {
    padding: 20px;
}

.schedule-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}

.status-pill {
    padding: 4px 12px;
    background: var(--pastel-mint);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: 16px;
    border-radius: var(--radius);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mini-table th {
    background: var(--pastel-lavender);
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
}

.mini-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}

.mini-table tr:last-child td {
    border-bottom: none;
}

.mini-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

/* Shift badges */
.shift-1 {
    display: inline-block;
    padding: 3px 8px;
    background: var(--pastel-sky);
    color: #2563EB;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.shift-2 {
    display: inline-block;
    padding: 3px 8px;
    background: var(--pastel-peach);
    color: #D97706;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.shift-u {
    display: inline-block;
    padding: 3px 8px;
    background: var(--pastel-mint);
    color: #059669;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.shift-pu {
    display: inline-block;
    padding: 3px 8px;
    background: var(--pastel-yellow);
    color: #B45309;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.kp-alert {
    background: rgba(255, 240, 230, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-alert strong {
    color: var(--warning);
}

/* ===== FLOW BAR (STEPS) ===== */
.flow-bar {
    padding: 60px 0;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.flow-step {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.flow-step:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.flow-step:last-child::after {
    display: none;
}

.flow-num {
    display: inline-block;
    padding: 4px 12px;
    background: var(--grad-pastel);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.flow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.flow-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--secondary);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-cta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
    opacity: 0;
}

.feature-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--surface-solid);
    border-color: var(--border);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--pastel-lavender);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(5deg);
    background: var(--pastel-pink);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===== DOCS SECTION ===== */
.docs-section {
    background: var(--pastel-cream);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.doc-box {
    background: var(--surface-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.doc-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--pastel-lavender);
}

.doc-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.doc-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-box ul li {
    position: relative;
    padding-left: 20px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.doc-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* ===== PRICING SECTION ===== */
.pricing-note {
    max-width: 700px;
    margin: 0 auto 36px;
    padding: 16px 24px;
    background: var(--pastel-mint);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(255, 214, 224, 0.2), rgba(232, 213, 245, 0.2));
    border: 2px solid var(--pastel-rose);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.trial-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trial-banner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.trial-banner p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing table */
.pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
    background: var(--surface);
    backdrop-filter: blur(10px);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.pricing-table thead tr {
    background: var(--pastel-lavender);
}

.pricing-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.pricing-table td {
    padding: 18px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

.pricing-table tbody tr {
    transition: var(--transition);
}

.pricing-table tbody tr:hover {
    background: rgba(232, 213, 245, 0.1);
}

.price-cell {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary) !important;
}

.price-cell span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.popular-row {
    background: rgba(124, 92, 191, 0.04) !important;
    border-left: 4px solid var(--primary);
}

.popular-row:hover {
    background: rgba(124, 92, 191, 0.08) !important;
}

.row-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    background: var(--grad-btn);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.action-cell {
    text-align: center;
}

/* Enterprise */
.enterprise-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(45, 45, 58, 0.03), rgba(124, 92, 191, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ===== SECURITY BAR ===== */
.security-bar {
    background: linear-gradient(135deg, rgba(255, 214, 224, 0.08), rgba(212, 245, 233, 0.08));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 80px 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.sec-item {
    padding: 28px 24px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sec-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--pastel-lavender);
}

.sec-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.sec-item p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.88rem;
    margin-top: 14px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand .logo span {
    color: var(--pastel-pink);
}

footer h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--pastel-pink);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(45, 45, 58, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface-solid);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s var(--ease-bounce);
    border: 1px solid var(--border-light);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pastel-lavender);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--pastel-pink);
    transform: rotate(90deg);
}

/* Modal tabs */
.modal-tabs {
    display: flex;
    gap: 4px;
    background: var(--pastel-cream);
    border-radius: var(--radius);
    padding: 4px;
    margin: 20px 0 24px;
}

.modal-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Form elements */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(232, 213, 245, 0.05);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
    line-height: 1.4;
}

/* PIN row (two inputs side by side) */
.pin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Password meter */
.password-meter {
    height: 5px;
    background: #E5E7EB;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.password-meter-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s var(--ease), background-color 0.4s;
}

/* Demo alert */
.demo-alert {
    margin-top: 18px;
    padding: 12px 18px;
    background: var(--pastel-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    font-size: 0.84rem;
    color: #92400E;
    display: none;
    text-align: center;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.feature-card,
.doc-box,
.flow-step,
.sec-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
}

.feature-card.visible,
.doc-box.visible,
.flow-step.visible,
.sec-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid items */
.feature-card:nth-child(1), .doc-box:nth-child(1), .flow-step:nth-child(1), .sec-item:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2), .doc-box:nth-child(2), .flow-step:nth-child(2), .sec-item:nth-child(2) { transition-delay: 80ms; }
.feature-card:nth-child(3), .doc-box:nth-child(3), .flow-step:nth-child(3), .sec-item:nth-child(3) { transition-delay: 160ms; }
.feature-card:nth-child(4), .flow-step:nth-child(4), .sec-item:nth-child(4) { transition-delay: 240ms; }
.feature-card:nth-child(5) { transition-delay: 320ms; }
.feature-card:nth-child(6) { transition-delay: 400ms; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pastel-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--pastel-lavender);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pastel-rose);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--pastel-lavender);
    color: var(--secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        text-align: center;
        padding: 120px 0 60px;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-cta,
    .hero-trust {
        justify-content: center;
    }

    .app-preview {
        max-width: 600px;
        margin: 0 auto;
    }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #mainNav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        z-index: 998;
    }

    #mainNav.open {
        transform: translateY(0);
        opacity: 1;
    }

    #mainNav ul {
        flex-direction: column;
        gap: 4px;
    }

    #mainNav ul li a {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .mobile-toggle {
        display: block;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions .btn-outline,
    .nav-actions .btn-primary {
        display: inline-flex;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    section {
        padding: 70px 0;
    }

    .features-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trial-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .enterprise-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .pin-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .pricing-table-wrap {
        border-radius: var(--radius);
    }
}

/* ===== ACCESSIBILITY: FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== PRINT STYLES (for documents) ===== */
@media print {
    header, footer, .modal-overlay, .nav-actions, .hero-cta, .flow-bar {
        display: none !important;
    }

    body::before {
        display: none;
    }

    .feature-card, .doc-box {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
