/* ============================================
   POLYARTHRITIS LANDINGPAGE – THEME STYLES
   ============================================ */

/* --- Reset & Variables --- */
:root {
    --blue-deep: #0a1628;
    --blue-dark: #0d2147;
    --blue-mid: #1a3a6e;
    --blue-glow: #4a9eff;
    --blue-bright: #6bb5ff;
    --gold: #e8c840;
    --gold-light: #f0d860;
    --white: #ffffff;
    --white-soft: rgba(255, 255, 255, 0.85);
    --white-muted: rgba(255, 255, 255, 0.6);
    --btn-border: rgba(120, 180, 255, 0.5);
    --btn-shadow: rgba(74, 154, 255, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--blue-deep);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Page wrapper & Background --- */
.lp-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
}

.lp-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.15) 0%,
        rgba(13, 33, 71, 0.35) 40%,
        rgba(10, 22, 40, 0.65) 100%
    );
}

/* --- Sparkle decorations --- */
.sparkle {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    animation: sparkle-pulse 3s ease-in-out infinite;
}
.sparkle svg {
    filter: drop-shadow(0 0 6px rgba(180, 210, 255, 0.6));
}
.sparkle--1 { top: 6%;  left: 3%;  animation-delay: 0s; }
.sparkle--2 { top: 4%;  left: 7%;  animation-delay: 0.6s; }
.sparkle--3 { top: 14%; left: 1.5%; animation-delay: 1.2s; }
.sparkle--4 { bottom: 22%; right: 2.5%; animation-delay: 0.3s; }
.sparkle--5 { bottom: 6%;  right: 4%; animation-delay: 1.8s; }
.sparkle--6 { top: 45%;  left: 2%; animation-delay: 2.2s; }

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

/* --- Layout container --- */
.lp-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 28px 70px;
    flex: 1;
}

/* --- Header --- */
.lp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 28px;
}

.lp-swiss-cross {
    width: 54px;
    height: 54px;
    background: #d32f2f;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(211, 47, 47, 0.45);
    flex-shrink: 0;
}
.lp-swiss-cross svg {
    width: 28px;
    height: 28px;
}

.lp-lang-nav {
    position: absolute;
    top: 4px;
    right: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 15px;
}
.lp-lang-nav a {
    color: var(--white-soft);
    text-decoration: none;
    cursor: pointer;
    padding: 3px 4px;
    transition: color 0.3s, text-shadow 0.3s;
}
.lp-lang-nav a:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.lp-lang-nav a.active {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.lp-lang-nav .divider {
    color: var(--white-muted);
    user-select: none;
}

/* --- Hero section --- */
.lp-hero {
    margin-top: 8px;
    max-width: 520px;
}

.lp-hero__title {
    font-size: clamp(30px, 5.5vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.lp-hero__subtitle {
    font-size: clamp(20px, 3.8vw, 32px);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.35;
    margin-bottom: 22px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.lp-hero__desc {
    font-size: clamp(14px, 2.3vw, 17px);
    font-style: italic;
    color: var(--white-soft);
    line-height: 1.65;
    margin-bottom: 40px;
}

/* --- Video / CTA section --- */
.lp-video {
    margin: 44px 0 34px;
}

.lp-vimeo {
    display: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 44px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.4);
}
.lp-vimeo.is-visible {
    display: block;
    animation: fadeSlideIn 0.6s ease-out;
}
.lp-vimeo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Glossy pill CTA button */
.lp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 38px;
    border: 1.5px solid var(--btn-border);
    border-radius: 50px;
    background: linear-gradient(
        180deg,
        rgba(90, 160, 240, 0.32) 0%,
        rgba(58, 123, 213, 0.22) 40%,
        rgba(30, 80, 170, 0.28) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
    color: var(--white);
}
.lp-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}
.lp-cta:hover {
    border-color: rgba(150, 200, 255, 0.7);
    box-shadow: 0 4px 30px var(--btn-shadow), 0 0 60px rgba(74, 154, 255, 0.15);
    transform: translateY(-2px);
}
.lp-cta:active { transform: translateY(0); }

.lp-cta__icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
}
.lp-cta__icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lp-cta__text {
    font-size: clamp(17px, 2.8vw, 22px);
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* --- Disclaimer --- */
.lp-disclaimer {
    text-align: center;
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--white-muted);
    line-height: 1.7;
    margin: 32px auto 18px;
    max-width: 600px;
}

.lp-videolang {
    text-align: center;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    color: var(--white);
    margin-top: 22px;
}

/* --- Digistore24 button --- */
.lp-digistore {
    margin-top: 48px;
    text-align: center;
}
.lp-digistore__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 38px;
    border-radius: 50px;
    border: 1.5px solid rgba(232, 200, 64, 0.5);
    background: linear-gradient(180deg, rgba(232,200,64,0.25) 0%, rgba(200,170,40,0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--gold-light);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.lp-digistore__btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}
.lp-digistore__btn:hover {
    border-color: rgba(232, 200, 64, 0.8);
    box-shadow: 0 4px 30px rgba(232, 200, 64, 0.25);
    transform: translateY(-2px);
}

/* --- Fade-in animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease-out forwards;
}
.fade-in--d1 { animation-delay: 0.1s; }
.fade-in--d2 { animation-delay: 0.25s; }
.fade-in--d3 { animation-delay: 0.4s; }
.fade-in--d4 { animation-delay: 0.55s; }
.fade-in--d5 { animation-delay: 0.75s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .lp-content { padding: 20px 18px 50px; }
    .lp-swiss-cross { width: 44px; height: 44px; }
    .lp-swiss-cross svg { width: 22px; height: 22px; }
    .lp-cta { padding: 14px 24px; }
    .lp-hero { max-width: 100%; }
}

@media (min-width: 768px) {
    .lp-content { padding: 40px 44px 80px; }
    .lp-hero { max-width: 50%; }
}

/* --- WordPress Admin Bar compat --- */
body.admin-bar .lp-bg,
body.admin-bar .lp-bg-overlay {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .lp-bg,
    body.admin-bar .lp-bg-overlay {
        top: 46px;
    }
}

/* --- WordPress reset overrides --- */
.lp-page a { color: inherit; }
.lp-page img { max-width: 100%; height: auto; }
