/* ============================================================
   Landing platform — Server-project Razor Pages (wp-landing-consolidation)
   Shared atoms (hero / CTA / features / screenshot / walkthrough) + per-variant
   layout (V1, V2). Uses --op-* design tokens (design-tokens.css loads first).
   ============================================================ */

.op-landing {
    margin: 0;
    font-family: var(--op-font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
    color: var(--op-text-primary, #111827);
    background: var(--op-bg-primary, #ffffff);
    /* Sticky-footer layout: hero fills, footer pins to the bottom of the viewport. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   SHARED — hero atoms (white text on brand gradient)
   ============================================================ */
.op-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(122, 193, 67, 0.15);
    border: 1px solid rgba(122, 193, 67, 0.3);
    color: var(--op-brand-green-400);
    padding: 4px 12px;
    border-radius: var(--op-radius-full, 999px);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.op-hero__pulse {
    width: 6px;
    height: 6px;
    background: var(--op-brand-green-400);
    border-radius: 50%;
    animation: op-pulse 2s infinite;
}

@keyframes op-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.op-hero__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.op-hero__highlight {
    background: linear-gradient(135deg, var(--op-brand-green-400), var(--op-brand-green-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.op-hero__subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 460px;
}

/* ============================================================
   SHARED — CTA
   ============================================================ */
.op-cta-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.op-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--op-brand-green-400), var(--op-brand-green-600));
    color: #ffffff;
    border: none;
    border-radius: var(--op-radius-lg, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(122, 193, 67, 0.3);
    text-decoration: none;
    font-family: inherit;
}

.op-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 193, 67, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.op-cta-arrow { transition: transform 0.2s; }
.op-cta-primary:hover .op-cta-arrow { transform: translateX(3px); }

.op-cta-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    transition: color 0.2s;
}

.op-cta-secondary:hover { color: #ffffff; }

/* ============================================================
   SHARED — feature list
   ============================================================ */
.op-feature-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.op-feature-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #ffffff;
}

.op-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--op-radius-lg, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fi-green  { background: rgba(122, 193, 67, 0.2); }
.fi-blue   { background: rgba(0, 116, 178, 0.2); }
.fi-amber  { background: rgba(245, 158, 11, 0.2); }
.fi-purple { background: rgba(99, 102, 241, 0.2); }
.fi-teal   { background: rgba(16, 185, 129, 0.2); }

/* ============================================================
   SHARED — dashboard screenshot (always dark frame)
   ============================================================ */
.op-dashboard-screenshot { position: relative; }

.op-preview-window {
    background: #1f1f1f;
    border-radius: var(--op-radius-xl, 12px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.op-preview-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1f1f1f;
    border-bottom: 1px solid #333333;
}

.op-titlebar-dots { display: flex; gap: 6px; }

.op-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.op-dot--red    { background: #ff5f57; }
.op-dot--yellow { background: #ffbd2e; }
.op-dot--green  { background: #28ca42; }

.op-titlebar-url {
    flex: 1;
    margin: 0 12px;
    background: #292929;
    border-radius: var(--op-radius-md, 6px);
    padding: 4px 12px;
    font-size: 11px;
    color: #a0a0a0;
    text-align: center;
}

.op-titlebar-spacer { width: 52px; }
.op-preview-screenshot { overflow: hidden; }
.op-screenshot-img { width: 100%; height: auto; display: block; object-fit: cover; }

.op-frosted-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--op-radius-xl, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    animation: op-fade-overlay 0.6s ease 1.5s forwards;
}

@keyframes op-fade-overlay { to { opacity: 1; } }

.op-frosted-content { text-align: center; padding: 24px; }
.op-frosted-content strong { display: block; color: #e5e5e5; font-size: 15px; }
.op-frosted-content p { color: #a0a0a0; font-size: 13px; margin-top: 4px; }

.op-lock-circle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #a0a0a0;
}

/* ============================================================
   SHARED — walkthrough video
   ============================================================ */
.op-walkthrough {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    max-width: 560px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--op-radius-xl, 12px);
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.op-walkthrough:hover {
    border-color: rgba(122, 193, 67, 0.5);
    background: rgba(0, 0, 0, 0.35);
}

.op-walkthrough__heading { color: #ffffff; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.op-walkthrough__body { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.op-walkthrough__cta { display: inline-block; color: var(--op-brand-green-400); font-weight: 600; font-size: 14px; }

.op-walkthrough__play {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
}

/* ============================================================
   VARIANT V1 — two-column hero + preview on brand gradient
   ============================================================ */
.op-landing-v1 {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 40px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--op-brand-blue-800) 0%, var(--op-brand-green-700) 100%);
}

.op-landing-v1::before {
    content: '';
    position: absolute;
    inset: 0;
    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: 60px 60px;
    pointer-events: none;
}

.op-landing-v1::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122, 193, 67, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.op-landing-v1__container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.op-landing-v1__logo {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-landing-v1__logo-ball { width: 36px; height: auto; }
.op-landing-v1__logo-name { height: 28px; width: auto; }

/* ============================================================
   VARIANT V2 — product-shot-forward, centered single column
   ============================================================ */
.op-landing-v2 {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding: 110px 40px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--op-brand-blue-800) 0%, var(--op-brand-green-700) 100%);
}

/* Subtle grid + glow orb backdrop (parity with V1) */
.op-landing-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    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: 60px 60px;
    pointer-events: none;
}

.op-landing-v2::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122, 193, 67, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.op-landing-v2__grid {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.op-landing-v2__headline {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.op-landing-v2__body { margin-bottom: 28px; }

.op-landing-v2__body p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 16px;
}

.op-landing-v2__body p:last-child { margin-bottom: 0; }

/* Clean device frame for V2 (no simulated-browser titlebar) */
.op-dashboard-screenshot--plain .op-preview-window {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--op-radius-xl, 12px);
}

/* ============================================================
   SHARED — landing header (transparent, overlays the hero gradient)
   ============================================================ */
.op-landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 40px;
}

.op-landing-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.op-landing-header__ball { width: 34px; height: auto; }
.op-landing-header__name { height: 26px; width: auto; }

.op-landing-header__actions { display: flex; align-items: center; gap: 12px; }

.op-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    /* Match the hero CTA's rounded-rectangle (radius-lg), not a full pill, for one consistent button language. */
    border-radius: var(--op-radius-lg, 8px);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.op-nav-btn--ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
}

.op-nav-btn--ghost:hover { border-color: #ffffff; color: #ffffff; }

.op-nav-btn--primary {
    color: #ffffff;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--op-brand-green-400), var(--op-brand-green-600));
    box-shadow: 0 4px 14px rgba(122, 193, 67, 0.3);
}

.op-nav-btn--primary:hover { transform: translateY(-1px); color: #ffffff; }

/* ============================================================
   SHARED — site footer (dark info strip)
   ============================================================ */
.op-site-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 40px;
    background: var(--op-brand-green-900, #1a2e15);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.op-site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.op-site-footer__links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.op-site-footer__links a:hover { color: #ffffff; }
.op-site-footer__copy { color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ============================================================
   CONSENT BANNER (chassis-managed)
   ============================================================ */
.op-consent-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--op-bg-secondary, #f9fafb);
    border-top: 1px solid var(--op-border-default, #e5e7eb);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    font-size: var(--op-text-sm, 0.875rem);
}

.op-consent-banner__text { flex: 1 1 320px; color: var(--op-text-secondary, #6b7280); }
.op-consent-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.op-consent-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--op-radius-md, 6px);
    font-size: var(--op-text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--op-border-default, #e5e7eb);
    background: transparent;
    color: var(--op-text-primary, #111827);
}

.op-consent-btn--accept {
    background: var(--op-primary, #4f7a34);
    border-color: var(--op-primary, #4f7a34);
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .op-landing-header { padding: 16px 20px; }

    .op-landing-v1 { padding: 96px 24px 40px; }
    .op-landing-v1__container { grid-template-columns: 1fr; gap: 40px; }
    .op-hero__title { font-size: 32px; }
    .op-hero__subtitle { max-width: 100%; }
    .op-landing-v1__preview { max-width: 500px; margin: 0 auto; }

    .op-landing-v2 { padding: 96px 24px 40px; }
    .op-landing-v2__grid { grid-template-columns: 1fr; gap: 40px; }
    .op-landing-v2__headline { font-size: 40px; }
    .op-landing-v2__media { max-width: 560px; }

    .op-site-footer { padding: 18px 20px; }
}

@media (max-width: 480px) {
    .op-hero__title { font-size: 26px; }
    .op-landing-v2__headline { font-size: 32px; }
    .op-cta-primary { padding: 12px 24px; font-size: 14px; }

    .op-landing-header__name { height: 22px; }
    .op-nav-btn { padding: 8px 16px; font-size: 13px; }
}
