/* ============================================
   Delta Apps — Dezvoltare Aplicații Native iOS
   Custom Stylesheet (paired with Tailwind CSS)
   ============================================ */

:root {
    --brand-blue: #1ca5ff;
    --brand-purple: #8300e9;
    --text-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
}

/* --- Skip to content (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--brand-blue);
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Navigation --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(241, 245, 249, 1);
}

/* --- Hero --- */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(28, 165, 255, 0.1), transparent 45%),
                radial-gradient(circle at bottom left, rgba(131, 0, 233, 0.05), transparent 45%);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* --- Cards & Buttons --- */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(28, 165, 255, 0.4);
}

/* --- Process Steps --- */
.process-step::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, transparent 100%);
    z-index: 0;
    opacity: 0.2;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}

/* --- Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* --- App Mockups --- */
.mockup-container {
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.group:hover .mockup-container {
    transform: scale(1.05);
}

/* --- Breadcrumbs (Legal Pages) --- */
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 40;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* --- Keyboard Focus --- */
:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card-hover:hover,
    .btn-primary:hover,
    .group:hover .mockup-container {
        transform: none;
    }
}
