html { scroll-behavior: smooth; }

/* Nav dropdown — bridge gap so mouse can reach menu */
.nav-dropdown { position: relative; }

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 14rem;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.nav-dropdown-menu {
    background: #fff;
    border-radius: 0.875rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.18);
    padding: 0.35rem 0;
    max-height: min(70vh, 24rem);
    overflow-y: auto;
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    background: color-mix(in srgb, var(--brand-primary) 8%, white);
    color: var(--brand-primary);
    outline: none;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.nav-dropdown-open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.nav-dropdown-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* Hero & backgrounds */
.hero-gradient {
    background: color-mix(in srgb, var(--brand-primary) 7%, #f8fafc);
    position: relative;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background: radial-gradient(ellipse 70% 55% at 75% 25%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 72%);
}

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

.hero-orb-1 {
    width: 280px;
    height: 280px;
    background: color-mix(in srgb, var(--brand-primary) 30%, transparent);
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: color-mix(in srgb, var(--brand-primary) 22%, transparent);
    bottom: 15%;
    left: 8%;
    animation-delay: -3s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Cards */
.corp-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.corp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--brand-primary) 18%, transparent);
    border-color: color-mix(in srgb, var(--brand-primary) 25%, #e2e8f0);
}

.icon-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
    color: var(--brand-primary);
}

/* Solution section stats — flat unified panel */
.solution-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: linear-gradient(160deg, #f8fafc 0%, #ffffff 55%, #fff7f2 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.1);
}

.solution-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.35rem 1.15rem;
    min-height: 7.5rem;
}

.solution-stat:nth-child(odd) {
    border-right: 1px solid rgba(226, 232, 240, 0.9);
}

.solution-stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.solution-stat-number {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
}

.solution-stat-number .stat-number {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.solution-stat-plus {
    font-size: 0.72em;
    font-weight: 700;
    color: color-mix(in srgb, var(--brand-primary) 75%, #64748b);
}

.solution-stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.15rem;
}

.solution-stat-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
}

@media (min-width: 1024px) {
    .solution-stat {
        padding: 1.5rem 1.35rem;
    }
}

/* Stats — corporate */
.stats-pro-section {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stats-pro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 1024px) {
    .stats-pro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.stats-pro-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.stats-pro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-pro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--brand-primary) 22%, transparent);
    border-color: color-mix(in srgb, var(--brand-primary) 30%, #e2e8f0);
}

.stats-pro-card:hover::before { opacity: 1; }

.stats-pro-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 1rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
}

.stats-pro-icon svg { width: 1.35rem; height: 1.35rem; }

.stats-pro-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.stats-pro-value .stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .stats-pro-value .stat-number { font-size: 2.5rem; }
}

.stats-pro-plus {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.stats-pro-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.stats-pro-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* Footer logo — white on dark */
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

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

.site-footer {
    background: #0f172a;
}

/* Stats */
.stat-number {
    font-variant-numeric: tabular-nums;
    background: var(--brand-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code block demo */
.code-window {
    animation: code-float 6s ease-in-out infinite;
}

@keyframes code-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Nav scrolled state */
.public-nav.nav-scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* Page hero (subpages) */
.page-hero {
    background: color-mix(in srgb, var(--brand-primary) 5%, #f8fafc);
    padding-top: 6rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .page-hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}

/* Reference logos */
.ref-logo-grid {
    display: grid;
    gap: 1rem;
}

.ref-logo-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .ref-logo-grid-page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ref-logo-grid-page {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ref-logo-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .ref-logo-grid-home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ref-logo-grid-home {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ref-logo-card {
    margin: 0;
}

.ref-logo-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 7.5rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ref-logo-card-inner:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 35%, #e2e8f0);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.ref-logo-img {
    height: 2.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.82;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.ref-logo-card-inner:hover .ref-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.ref-logo-fallback {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-logo-fallback svg {
    width: 1.35rem;
    height: 1.35rem;
}

.ref-logo-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-refs-band {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .home-refs-band {
        padding: 2rem;
    }
}

.home-refs-band-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.home-refs-band-title {
    margin: 0.35rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.home-refs-band-foot {
    margin-top: 1.25rem;
    text-align: center;
}

.home-refs-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.home-refs-link:hover {
    text-decoration: underline;
}

.ref-logo-grid-home .ref-logo-card-inner {
    min-height: 6.75rem;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.92);
}

/* Homepage reference carousel */
.ref-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ref-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.ref-carousel-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ref-carousel-track .ref-logo-card {
    flex: 0 0 calc((100% - 4 * 0.75rem) / 5);
    min-width: 0;
}

.ref-carousel-track .ref-logo-card-inner {
    min-height: 6.5rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.ref-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ref-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.ref-carousel-arrow:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--brand-primary) 40%, #e2e8f0);
    color: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.ref-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.ref-carousel.is-static .ref-carousel-controls {
    display: none;
}

@media (max-width: 1023px) {
    .ref-carousel-track .ref-logo-card {
        flex: 0 0 calc((100% - 2 * 0.75rem) / 3);
    }
}

@media (max-width: 639px) {
    .ref-carousel-track .ref-logo-card {
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }

    .ref-carousel-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Contact form */
.contact-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 16px;
}

.contact-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* Pulse ring on CTA */
.btn-pulse {
    position: relative;
    overflow: visible;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid color-mix(in srgb, var(--brand-primary) 40%, transparent);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.08); opacity: 0; }
}

/* Hero enhancements */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, #e2e8f0);
}

.hero-eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.hero-trust-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-primary) 8%, white);
    color: var(--brand-primary);
}

.hero-trust-icon svg { width: 1rem; height: 1rem; }

.hero-code-panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--brand-primary) 14%, transparent);
    overflow: hidden;
    max-width: 100%;
}

.hero-code-panel pre,
.hero-code-pre {
    max-width: 100%;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hero-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 8%, #f8fafc);
    color: #475569;
    border: 1px solid #e2e8f0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

/* Corporate pillars */
.corp-pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .corp-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
    .corp-pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.corp-pillar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.125rem;
    padding: 1.35rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.corp-pillar:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand-primary) 28%, #e2e8f0);
    box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.corp-pillar-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
    margin-bottom: 0.85rem;
}

.corp-pillar-icon svg { width: 1.35rem; height: 1.35rem; }

.corp-pillar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.corp-pillar p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #64748b;
}

/* Features pro */
.features-pro-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f8fafc 100%);
}

.feat-category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 0.75rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.feat-category-nav::-webkit-scrollbar { display: none; }

.feat-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.feat-category-pill:hover,
.feat-category-pill.active {
    border-color: color-mix(in srgb, var(--brand-primary) 40%, #e2e8f0);
    background: color-mix(in srgb, var(--brand-primary) 8%, white);
    color: var(--brand-primary);
}

.feat-pill-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.feat-pill-icon svg { width: 1rem; height: 1rem; }

.feat-pill-count {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
    color: var(--brand-primary);
}

.feat-category-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.06);
    scroll-margin-top: 6rem;
}

.feat-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: color-mix(in srgb, var(--brand-primary) 6%, white);
    border-bottom: 1px solid #f1f5f9;
}

.feat-category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, #e2e8f0);
    flex-shrink: 0;
}

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

.feat-category-meta { flex: 1; min-width: 0; }

.feat-category-meta h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.feat-category-meta p {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.feat-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
    color: var(--brand-primary);
    flex-shrink: 0;
}

.feat-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
}

@media (min-width: 640px) {
    .feat-items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .feat-items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}

@media (min-width: 1280px) {
    .feat-items-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.feat-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid #f1f5f9;
    background: #fafbfc;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feat-item:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 25%, #e2e8f0);
    background: color-mix(in srgb, var(--brand-primary) 4%, white);
    transform: translateY(-1px);
}

.feat-item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
}

.feat-item-icon svg { width: 1rem; height: 1rem; }

.feat-item-body { min-width: 0; }

.feat-item-body h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.feat-item-body p {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
}

/* Mobile off-canvas flyout */
.public-nav {
    z-index: 100;
}

.mobile-flyout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-flyout-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-flyout {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 320px);
    height: 100dvh;
    background: #fff;
    z-index: 115;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.mobile-flyout.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.75rem;
}

.mobile-flyout-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.mobile-flyout-logo {
    height: 2rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
    display: block;
}

.mobile-flyout-close {
    padding: 0.5rem;
    border-radius: 0.65rem;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
}

.mobile-flyout-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mobile-flyout-nav {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    overflow-y: auto;
}

.mobile-flyout-link {
    display: block;
    padding: 1rem 1rem;
    border-radius: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s, color 0.2s;
}

.mobile-flyout-link:hover,
.mobile-flyout-link.active {
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
}

.mobile-flyout-cta {
    margin-top: 0.5rem;
    text-align: center;
    background: color-mix(in srgb, var(--brand-primary) 12%, white) !important;
    color: var(--brand-primary) !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Impact cards (static grid) */
.impact-cards-section {
    overflow: hidden;
}

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

@media (min-width: 768px) {
    .impact-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.impact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.impact-card-stat {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.65rem;
}

.impact-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.impact-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    flex: 1;
}

/* Hero responsive */
.hero-gradient {
    overflow: hidden;
}

.a11y-hero-grid > * {
    min-width: 0;
}

@media (max-width: 1023px) {
    .hero-gradient {
        padding-bottom: 3rem !important;
    }

    .hero-orb-1 {
        width: 180px;
        height: 180px;
        top: 5%;
        right: -40px;
    }

    .hero-orb-2 {
        width: 140px;
        height: 140px;
        left: -30px;
    }

    .hero-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .hero-code-panel {
        margin-top: 0.5rem;
    }
}

@media (max-width: 639px) {
    #mobileMenuBtn {
        position: relative;
        z-index: 200;
    }
}

/* Impact slider (legacy, kept for compatibility) */
.impact-slider-section {
    padding: 4rem 0;
    background: #fff;
    overflow: hidden;
}

.impact-slider-wrap {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
}

.impact-slider {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 1rem 1rem;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1rem;
}

.impact-slider::-webkit-scrollbar { display: none; }

.impact-slide {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.impact-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-primary);
}

.impact-slide-stat {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-slide h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.impact-slide p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
}

@media (min-width: 640px) {
    .impact-slide {
        flex: 0 0 min(75vw, 380px);
    }
}

@media (min-width: 1024px) {
    .impact-slider {
        gap: 1rem;
        padding-left: 0;
        padding-right: 0;
        scroll-padding-inline: 0;
    }

    .impact-slide {
        flex: 0 0 min(420px, 32%);
    }
}

.impact-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.impact-slider-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.impact-slider-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.impact-slider-dots {
    display: flex;
    gap: 0.4rem;
}

.impact-slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    transition: all 0.2s;
}

.impact-slider-dot.active {
    width: 1.25rem;
    background: var(--brand-primary);
}

/* Accessibility landing */
.a11y-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .a11y-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

.barrier-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .barrier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .barrier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.barrier-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.barrier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.12);
}

.barrier-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.75rem 0 0.5rem;
}

.barrier-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
}

.feat-icon-svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 639px) {
    .hero-gradient { padding-top: 6.5rem; }
    .corp-card:hover { transform: none; }
    .stats-pro-card:hover { transform: none; }
    .corp-pillar:hover { transform: none; }
    .feat-item:hover { transform: none; }
}

.touch-manipulation { touch-action: manipulation; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-orb, .code-window { animation: none; }
    .btn-pulse::after { animation: none; }
}

/* Yasal / sözleşme sayfaları */
.legal-page {
    padding-top: 5rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f8fafc 100%);
}

.legal-hero {
    padding: 3rem 0 2rem;
}

.legal-hero-error {
    padding: 5rem 0 6rem;
}

.legal-hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: end;
}

@media (min-width: 1024px) {
    .legal-hero-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

.legal-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.legal-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 1.5rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem;
}

.legal-back-link,
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.legal-back-link:hover,
.legal-back-btn:hover {
    opacity: 0.8;
}

.legal-back-btn {
    padding: 0.75rem 1.15rem;
    border-radius: 0.85rem;
    background: var(--brand-primary);
    color: #fff;
}

.legal-hero-card {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.legal-card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-body-section {
    padding: 0 0 4rem;
}

.legal-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 17rem minmax(0, 1fr);
        gap: 2rem;
    }
}

.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.legal-sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.55rem;
}

.legal-sidebar-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.legal-sidebar-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.legal-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.legal-sidebar-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.legal-sidebar-links a:hover {
    text-decoration: underline;
}

.legal-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
    .legal-content {
        padding: 2rem 2.25rem;
    }
}

.prose-legal {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
    max-width: none;
}

.prose-legal h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2rem 0 0.85rem;
    letter-spacing: -0.02em;
}

.prose-legal h2:first-child {
    margin-top: 0;
}

.prose-legal h3,
.prose-legal h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0 0.65rem;
}

.prose-legal p {
    margin: 0 0 1rem;
}

.prose-legal ul,
.prose-legal ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.prose-legal ul {
    list-style-type: disc;
}

.prose-legal ol {
    list-style-type: decimal;
}

.prose-legal ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
}

.prose-legal ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.35rem;
}

.prose-legal li {
    display: list-item;
    margin-bottom: 0.45rem;
    padding-left: 0.2rem;
}

.prose-legal a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose-legal blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--brand-primary);
    background: #f8fafc;
    border-radius: 0 0.75rem 0.75rem 0;
}

.prose-legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.prose-legal th,
.prose-legal td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem;
    text-align: left;
}

.prose-legal th {
    background: #f8fafc;
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .legal-page {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #0b1220 100%);
  }
  .legal-title,
  .legal-sidebar-label,
  .prose-legal h2,
  .prose-legal h3,
  .prose-legal h4 {
    color: #f8fafc;
  }
  .legal-lead,
  .legal-updated,
  .legal-sidebar-meta {
    color: #94a3b8;
  }
  .legal-content,
  .legal-sidebar-card {
    background: #111827;
    border-color: #1f2937;
  }
  .prose-legal {
    color: #cbd5e1;
  }
  .prose-legal blockquote {
    background: #0f172a;
  }
  .prose-legal th {
    background: #0f172a;
  }
  .prose-legal th,
  .prose-legal td {
    border-color: #334155;
  }
}

/* Çerez politikası bildirimi — anasayfa sol alt */
.cookie-consent {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: min(24rem, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cookie-consent-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-link:hover {
  opacity: 0.9;
}

.cookie-consent-btn {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 0.65rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cookie-consent-btn:hover {
  opacity: 0.92;
}

.cookie-consent-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .cookie-consent-inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .cookie-consent-btn {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: none;
  }
}

/* Giriş / Kayıt sayfaları */
.auth-page {
  min-height: 100vh;
  padding: 6.5rem 1rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

.auth-page-wrap {
  max-width: 28rem;
  margin: 0 auto;
}

.auth-page-wrap-wide {
  max-width: 32rem;
}

.auth-page-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, white);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.auth-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.auth-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}

.auth-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2rem;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, white);
}

.auth-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.auth-btn:hover {
  opacity: 0.92;
}

.auth-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-alert-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-switch-block {
  line-height: 1.8;
}

.auth-switch a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-consent {
  margin-top: 0.15rem;
}

.auth-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
  cursor: pointer;
}

.auth-consent-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.auth-consent-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-consent-link:hover {
  text-decoration: underline;
}

.home-refs-section .home-refs-band {
    margin-top: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.home-refs-section .home-refs-band-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Referans başvuru popup */
body.ref-apply-open {
    overflow: hidden;
}

.ref-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ref-apply-modal[hidden] {
    display: none !important;
}

.ref-apply-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.ref-apply-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.ref-apply-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ref-apply-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.ref-apply-sub {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
}

.ref-apply-close {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.ref-apply-close:hover {
    background: #e2e8f0;
}

.ref-apply-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ref-apply-file {
    width: 100%;
    font-size: 0.875rem;
    color: #475569;
}

.ref-apply-preview {
    margin-top: 0.65rem;
    max-height: 4rem;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.35rem;
    background: #f8fafc;
}

.ref-apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.ref-apply-btn-ghost {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.ref-apply-btn-ghost:hover {
    background: #f8fafc;
}

.ref-apply-actions .auth-btn {
    width: auto;
    min-width: 9rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .auth-page {
    padding-top: 7.5rem;
    display: flex;
    align-items: center;
  }

  .auth-page-wrap {
    width: 100%;
  }
}
