/* ═══════════════════════════════════════════════════════════════
   TabSwitch — Dayclaw-Inspired Design System
   Tailwind v4 Custom Styles & Decorations
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframe Animations ── */
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(30px, -20px) scale(1.05); }
    50%  { transform: translate(-20px, 30px) scale(0.95); }
    75%  { transform: translate(20px, 20px) scale(1.02); }
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0) rotateX(2deg); }
    50%  { transform: translateY(-10px) rotateX(2deg); }
}

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

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

/* ── Gradient Orbs ── */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px; height: 600px;
    background: #fb923c;
    top: -15%; left: -10%;
    opacity: 0.06;
}

.orb-2 {
    width: 500px; height: 500px;
    background: #f97316;
    top: 20%; right: -15%;
    animation-delay: -7s;
    opacity: 0.05;
}

.orb-3 {
    width: 400px; height: 400px;
    background: #fdba74;
    bottom: 15%; left: 40%;
    animation-delay: -14s;
    opacity: 0.04;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── App Mockup Float ── */
.app-mockup-wrapper {
    animation: mockupFloat 6s ease-in-out infinite;
}

/* ── Language Dropdown ── */
.lang-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Pricing Ribbon ── */
.pricing-ribbon {
    position: absolute;
    top: 18px;
    right: -40px;
    z-index: 2;
    padding: 5px 44px;
    background: #fb923c;
    color: #151519;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* ── Comparison Slider ── */
.comparison-divider {
    width: 2px;
    background: white;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-handle {
    position: absolute;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #151519;
    gap: 2px;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #fb923c;
    color: #151519;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    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; }
}

/* ── Feature List Bullets ── */
.feature-list li::before,
.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb923c;
}

.pricing-features li::before {
    content: '✓';
    top: 0;
    width: auto;
    height: auto;
    background: none;
    color: #fb923c;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ── Nav Link Underline ── */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fb923c;
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Dayclaw Decorations ── */

/* Corner Cross */
.corner-cross {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.corner-cross::before,
.corner-cross::after {
    content: '';
    position: absolute;
    background-color: #fb923c;
}

.corner-cross::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.corner-cross::after {
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    transform: translateX(-50%);
}

/* Vertical Lines Decoration */
.vlines {
    position: relative;
}

.vlines::before,
.vlines::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.vlines::before { left: var(--marketing-frame-x, max(24px, calc((100vw - 70rem) / 2))); }
.vlines::after { right: var(--marketing-frame-x, max(24px, calc((100vw - 70rem) / 2))); }

/* Section Number Style */
.section-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fb923c;
    text-transform: uppercase;
}

/* Dayclaw CTA Button Glow */
.btn-dayclaw {
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease;
}

.btn-dayclaw:hover {
    box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.25), 0 4px 6px -4px rgba(251, 146, 60, 0.25);
}

/* Card Hover Effect */
.card-dayclaw {
    transition: all 0.2s ease;
}

.card-dayclaw:hover {
    border-color: rgba(251, 146, 60, 0.4);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── JS-Driven State Classes ── */
#nav.scrolled {
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-tab.active {
    background: #1c1c21;
    color: #fafafa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lang-option.active {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    font-weight: 500;
}

/* ── Small Responsive Tweaks ── */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .vlines::before,
    .vlines::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .comparison-bar { height: 140px; }
}

*, ::after, ::before, ::backdrop, ::file-selector-button {
	box-sizing: content-box;
}
