/* ================================================================
   PDCO.AI — Landing page (poo.php compatible glass theme)
   Uses style.css design tokens; adapts to light/dark via data-theme
   ================================================================ */

.landing {
    background: var(--body-bg);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
}

.ld-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVBAR === */
.ld-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}
.ld-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    min-height: 64px;
    padding: .6rem 0;
}
.ld-nav-links {
    display: flex;
    gap: 28px;
}
.ld-nav-links a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}
.ld-nav-links a:hover { color: var(--brand); }
.ld-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.4;
    gap: 6px;
}
.ld-btn-primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--shadow);
}
.ld-btn-primary:hover { opacity: .9; color: #fff; transform: translateY(-1px); }
.ld-btn-outline {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.ld-btn-outline:hover { background: var(--hover); color: var(--text); }
.ld-btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid transparent;
}
.ld-btn-ghost:hover { color: var(--text); }
.ld-btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 12px;
}
.ld-btn-block { display: flex; width: 100%; }

/* === HERO === */
.ld-hero {
    padding: 96px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ld-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 480px;
    background: radial-gradient(ellipse at center, rgba(0,212,255,.14), transparent 65%);
    pointer-events: none;
}
.ld-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.ld-h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.ld-sub {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.ld-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.ld-hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ld-hero-badges span {
    font-size: 13px;
    color: var(--text-soft);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-bg);
}
.ld-hero-badges-center { margin-top: 24px; }

/* === MODELS STRIP === */
.ld-models-strip {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border-hairline);
}
.ld-models-strip > span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.ld-models {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.ld-models span {
    font-size: 13px;
    color: var(--text-soft);
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

/* === PREVIEW WINDOW === */
.ld-preview {
    padding: 16px 0 72px;
}
.ld-window {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ld-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--soft-bg);
    border-bottom: 1px solid var(--line);
}
.ld-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .45;
}
.ld-window-title {
    margin-right: 8px;
    font-size: 12px;
    color: var(--text-muted);
    direction: ltr;
}
.ld-window-body {
    padding: 24px;
}
.ld-chat-live {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ld-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.ld-msg-user { flex-direction: row-reverse; }
.ld-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.ld-msg-user .ld-msg-avatar {
    background: var(--text-soft);
    color: #fff;
}
.ld-msg-agent .ld-msg-avatar {
    background: var(--brand-grad);
    color: #fff;
}
.ld-msg-bubble {
    background: var(--soft-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    max-width: 460px;
    line-height: 1.6;
}
.ld-msg-user .ld-msg-bubble {
    background: var(--hover);
    border-color: var(--card-border);
}
.ld-tool-chip {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--brand-light);
    border: 1px solid var(--card-border);
    color: var(--brand);
    margin: 0 0 6px 6px;
}
.ld-msg-text { margin-top: 6px; }

/* === SECTIONS === */
.ld-section {
    padding: 72px 0;
}
.ld-section-alt {
    background: var(--soft-bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.ld-h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
}
.ld-lead {
    font-size: 16px;
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 40px;
}

/* === GRIDS & CARDS === */
.ld-grid {
    display: grid;
    gap: 16px;
}
.ld-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ld-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ld-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ld-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.ld-card-icon {
    font-size: 26px;
    margin-bottom: 14px;
}
.ld-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ld-card p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.65;
}
.ld-card-plain { text-align: center; }

/* === TABLE === */
.ld-table-wrap {
    max-width: 720px;
    margin: 0 auto;
    overflow-x: auto;
}
.ld-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.ld-table th,
.ld-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.ld-table thead th {
    background: var(--thead-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-bottom: none;
}
.ld-table td:first-child,
.ld-table th:first-child {
    text-align: right;
    color: var(--text);
}
.ld-col-hi {
    color: var(--brand);
    font-weight: 700;
}

/* === PRICING === */
.ld-pricing {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}
.ld-pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-light);
    border: 1px solid var(--card-border);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.ld-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ld-price-sub {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 24px;
}
.ld-price-list {
    list-style: none;
    text-align: right;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ld-price-list li {
    font-size: 14px;
    color: var(--text-soft);
    padding-right: 24px;
    position: relative;
}
.ld-price-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--brand);
    font-weight: 700;
}

/* === SECURITY === */
.ld-security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* === CTA === */
.ld-cta {
    padding: 88px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0,212,255,.1), transparent 70%);
}

/* === FOOTER === */
.ld-footer {
    background: var(--soft-bg);
    border-top: 1px solid var(--line);
    padding: 56px 0 24px;
}
.ld-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.ld-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ld-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ld-footer-col a {
    color: var(--text-soft);
    font-size: 14px;
    transition: color var(--transition);
}
.ld-footer-col a:hover { color: var(--brand); }
.ld-footer-note {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
}
.ld-footer-copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

/* === DESKTOP-STYLE INSTALLER WINDOW (webview) === */
.inst-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2,6,12,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.inst-window {
    width: 900px;
    max-width: 100%;
    height: 78vh;
    max-height: 640px;
    background: #0b1120;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 60px rgba(0,212,255,0.12);
    display: flex;
    flex-direction: column;
}
.inst-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.inst-dot { width: 12px; height: 12px; border-radius: 50%; }
.inst-dot-r { background: #f87171; }
.inst-dot-y { background: #fbbf24; }
.inst-dot-g { background: #4ade80; }
.inst-title {
    flex: 1;
    margin-left: 10px;
    color: #9aa4c0;
    font-size: 12px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inst-actions { display: flex; gap: 6px; }
.inst-btn {
    background: rgba(255,255,255,0.08);
    color: #9aa4c0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    width: 28px;
    height: 24px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.2s, color 0.2s;
}
.inst-btn:hover { background: rgba(239,68,68,0.85); color: #fff; border-color: transparent; }
.inst-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #0b1120;
}
.inst-launch {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.5);
    background: linear-gradient(135deg, #0f2440, #0b1120);
    color: #00d4ff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.inst-launch:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(0,212,255,0.35);
}
@media (max-width: 600px) {
    .inst-window { height: 92vh; max-height: none; }
    .inst-backdrop { padding: 8px; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .ld-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ld-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ld-security-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-h1 { font-size: 38px; }
    .ld-nav-links { display: none; }
    .ld-nav-actions .brand-chip { display: none; }
}
@media (max-width: 600px) {
    .ld-grid-4, .ld-grid-3, .ld-security-grid { grid-template-columns: 1fr; }
    .ld-h1 { font-size: 30px; }
    .ld-footer-inner { grid-template-columns: 1fr 1fr; }
    .ld-window-body { padding: 14px; }
    .landing .social-sidebar { display: none; }
}
