/* TITSbackup – REFACTORED LIQUID GLASS STYLE 
 * 
 * This CSS has been refactored to improve:
 * - Organization and readability
 * - Consistent use of CSS variables
 * - Removal of duplicate code
 * - Better responsive behavior
 * - Maintainability
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --pink: #ff4081;
    --dark-bg: #0c0c0e;
    --light-bg: #151518;
    --highlight: #ffd54f;
    --accent: #80cbc4;
    --text: #f0f0f0;
    --muted: #aaa;
    --danger: #ff1744;

    /* Typography */
    --font: 'Inter', sans-serif;
    --font-size-base: 1.05rem;
    --line-height-base: 1.6;

    /* Layout */
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    --glass-radius: 24px;
    --glass-blur: blur(20px);

    /* Effects */
    --pink-shadow: rgba(255, 64, 129, 0.25);
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--dark-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.05rem;
    background-image: linear-gradient(160deg, rgba(255,64,129,0.03), transparent);
    background-size: cover;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 3rem;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 1px 1px 10px #ff4081;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
    text-align: center;
}

a {
    color: var(--accent);
    text-decoration: underline;
}

a:hover {
    color: var(--highlight);
    text-decoration: none;
}

/* ===== GLASS PANEL COMPONENT ===== */
.glass-panel,
section,
.download,
.testimonials-carousel,
.user-submit,
.privacy,
.intro-hero,
.app-screenshot,
.usb-label-warning,
.blog-promo {
    position: relative;
    margin: var(--spacing-xxl) 0;
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1;
}

.glass-panel::before,
section::before,
.download::before,
.testimonials-carousel::before,
.user-submit::before,
.privacy::before,
.intro-hero::before,
.app-screenshot::before,
.usb-label-warning::before,
.blog-promo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

/* ===== HEADER ===== */
header {
    background: radial-gradient(circle at top left, #ff4081 0%, #2c003e 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 50px rgba(255, 64, 129, 0.3);
    position: relative;
    overflow: hidden;
}

/* ===== BUTTONS ===== */
:root {
    /* Button specific variables */
    --button-radius: 14px;
    --button-blur: blur(12px);
    --button-transition: all 0.3s ease;
    --button-scale-hover: scale(1.05);
}

.button {
    /* Layout */
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    margin: var(--spacing-xs);
    position: relative;
    overflow: hidden;

    /* Typography */
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    color: var(--text);

    /* Visual */
    cursor: pointer;
    border-radius: var(--button-radius);
    backdrop-filter: var(--button-blur);
    -webkit-backdrop-filter: var(--button-blur);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px var(--pink-shadow);
    transition: var(--button-transition);

    /* Default values for dynamic properties set via JS */
    --x: 50%;
    --y: 50%;
}

.button::before {
    content: "";
    position: absolute;
    /* Dynamic variables set via JS */
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.button:hover::before {
    opacity: 1;
}

.button.primary {
    background: rgba(255, 64, 129, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 64, 129, 0.4);
    box-shadow: 0 6px 24px rgba(255, 64, 129, 0.45);
}

.button.primary:hover {
    background: rgba(255, 64, 129, 0.2);
    transform: var(--button-scale-hover);
    box-shadow: 0 8px 28px rgba(255, 64, 129, 0.6);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 64, 129, 0.3);
    color: var(--pink);
}

.button.secondary:hover {
    background: rgba(255, 64, 129, 0.1);
    color: #fff;
    transform: var(--button-scale-hover);
    box-shadow: 0 8px 24px rgba(255, 64, 129, 0.4);
}

.button-icon {
    height: 1.2em;
    vertical-align: middle;
    margin-right: var(--spacing-xs);
    filter: brightness(1.1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* ===== LISTS ===== */
ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm) var(--spacing-lg);
    padding: 0;
}

ul li::before {
    margin-right: 0.75rem;
    color: var(--pink);
}

/* ===== INTRO HERO ===== */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-line {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hero-line.highlight {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pink);
    animation: pulseLine 3s ease-in-out infinite alternate;
}

.hero-line .dramatic {
    font-weight: bold;
    font-style: italic;
    color: var(--accent);
}

/* ===== DOWNLOAD SECTION ===== */
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scrollTestimonials 30s linear infinite;
    width: fit-content;
}

.testimonial {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 1.2rem;
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    min-width: 33.3333%;
}

.carousel-track:hover {
    animation-play-state: paused;
}



.testimonial span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===== PRICING ===== */
.fake-pricing {
    text-align: center;
}

.pricing-box {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--highlight);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--pink);
    margin-bottom: var(--spacing-sm);
}

.price span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted);
}

.price-features {
    list-style: disc;
    padding-left: 1.4rem;
    margin: var(--spacing-md) 0;
    text-align: left;
}

/* Common pricing features list styles */
.price-features li {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
}

.price-features li em {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Common pricing button wrapper */
.pricing-button-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

/* ===== TOOLTIP ===== */
.has-tooltip {
    position: relative;
    cursor: help;
}

.has-tooltip .tooltip {
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    position: absolute;
    bottom: 120%;
    left: 0;
    background: rgba(20, 20, 20, 0.9);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-4px);
}

/* ===== GET IMMORTALIZED ===== */
.user-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.user-submit-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-submit h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.user-submit p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.user-submit .verified-badge {
    color: var(--highlight);
    font-weight: bold;
    animation: pulseBadge 1.5s ease-in-out infinite;
}

.user-submit-buttons {
    margin-top: 2rem;
}

.user-submit .sparkle {
    animation: sparkle 1.5s infinite alternate ease-in-out;
    font-size: 1.4em;
    color: var(--highlight);
}

/* ===== DECORATIONS ===== */
.logo {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: glow-fade 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px var(--pink));
}

.corner-logo {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 64px;
    opacity: 0.8;
    filter: drop-shadow(0 0 6px var(--highlight));
    transition: transform 0.3s ease;
    z-index: 99;
}

.corner-logo:hover {
    transform: scale(1.15) rotate(-3deg);
    opacity: 1;
}

.bg-blob {
    position: fixed;
    width: 700px;
    height: 700px;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    filter: blur(20px);
}

.blob-left {
    top: -100px;
    left: -200px;
    transform: rotate(-10deg);
}

.blob-right {
    bottom: -100px;
    right: -200px;
    transform: rotate(10deg);
}

/* ===== FLOATING PNG ===== */
.floating-png {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80vw;
    height: 80vh;
    opacity: 0.22;
    z-index: -2;
    pointer-events: none;
    background: url("../assets/wip2ct_no_f_upscaled.png") center/contain no-repeat;
    filter: blur(28px) brightness(1.3) drop-shadow(0 0 80px var(--pink));
    animation: floatWobble 10s ease-in-out infinite alternate;
    transform-origin: center;
}

/* ===== USB LABEL WARNING ===== */
.usb-label-warning h2 {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.usb-label-warning p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text);
    text-align: center;
}

.usb-label-warning ul {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.usb-label-warning ul li {
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.usb-label-warning code {
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: var(--highlight);
}

/* ===== 404 PAGE ===== */
.not-found {
    text-align: center;
    padding: 10vh 2rem;
    max-width: 700px;
}

.not-found h1 {
    font-size: 6rem;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.not-found h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--pink);
}

.not-found p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
    line-height: 1.6;
}

/* ===== BLOG PROMO ===== */
.blog-promo h2 {
    font-size: 2.3rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
}

.blog-promo p {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRIVACY ===== */
.centered-privacy {
    text-align: center;
}

.centered-privacy .privacy-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.centered-privacy p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ===== APP SCREENSHOT ===== */
.app-screenshot {
    text-align: center;
}

.app-screenshot h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.app-screenshot p {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.app-screenshot img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 64, 129, 0.25);
}

.app-screenshot .caption {
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a0c;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 2px solid #222;
    margin-top: 5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulseLine {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes glow-fade {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

@keyframes sparkle {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

@keyframes floatWobble {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) scale(1.02, 0.98) rotate(1deg);
    }
    50% {
        transform: translate(40px, -30px) scale(0.94, 1.06) rotate(-1deg);
    }
    75% {
        transform: translate(-20px, 20px) scale(1.03, 0.97) rotate(2deg);
    }
    100% {
        transform: translate(-30px, 25px) scale(0.93, 1.07) rotate(-2deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    ul {
        grid-template-columns: 1fr;
    }
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    /* Adjust spacing for mobile */
    .glass-panel,
    section,
    .download,
    .testimonials-carousel,
    .user-submit,
    .privacy,
    .intro-hero,
    .app-screenshot,
    .usb-label-warning,
    .blog-promo {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ===== PRICING CARDS ===== */
.pricing-section {
    text-align: center;
    margin-top: var(--spacing-xxl);
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    flex: 1 1 300px;
    max-width: 360px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: var(--highlight);
    margin-bottom: var(--spacing-xs);
}

/* Price styles for pricing cards (different from pricing box) */
.pricing-card .price {
    font-size: 1.4rem;
    color: var(--pink);
    margin-bottom: var(--spacing-sm);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-xs) + 0.1rem) var(--spacing-lg);
    margin: var(--spacing-md) 0;
    text-align: left;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.pricing-card.unavailable {
    opacity: 0.6;
    filter: grayscale(0.2) blur(0.2px);
    position: relative;
}

.pricing-card.unavailable::after {
    content: "🚧";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 2rem;
    opacity: 0.2;
}

html {
    scroll-behavior: smooth;
}