/* ==========================================================
   THEME 1: APPLE CUPERTINO SPATIAL MINIMAL PRO (DARK GRAYISH GRAPHITE)
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #000000;
    --bg-surface: rgba(255, 255, 255, 0.05);
    --bg-surface-solid: #111113;
    --bg-elevated: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.12);
    --accent: #2997ff;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}
a { color: inherit; text-decoration: none; transition: 0.15s ease; }
.ap-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-cyan { color: #2997ff; }
.text-green { color: #10b981; }
.text-purple { color: #a855f7; }

/* 1. Global Stealth Backdrop (Extends through Network Telemetry Section) */
.ap-global-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1800px;
    max-height: 220vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #000000;
}
.ap-hero-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.85;
}
.ap-hero-fade-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.85) 92%, #000000 100%);
}

/* 2. Floating Navbar Header */
.ap-dock-nav-wrap {
    position: sticky;
    top: 16px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}
.ap-dock-nav {
    background: rgba(16, 16, 18, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.7);
}
.ap-logo-link { font-size: 19px; font-weight: 800; color: #fff; }
.ap-dock-links { display: flex; gap: 22px; }
.ap-dock-item { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.ap-dock-item:hover, .ap-dock-item.active { color: #fff; }
.ap-dock-actions { display: flex; align-items: center; gap: 8px; }
.ap-btn-pill {
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.15s ease;
}
.ap-btn-primary { background: #ffffff; color: #000000 !important; }
.ap-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.ap-btn-ghost { background: transparent; color: var(--text-secondary) !important; border: 1px solid var(--border-color); }
.ap-btn-ghost:hover { color: #fff !important; }
.ap-btn-block { width: 100%; justify-content: center; padding: 12px 24px; border-radius: 10px; }
.ap-mobile-btn { display: none; background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }

/* Mobile Menu */
.ap-mobile-menu { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 999; padding: 80px 30px; }
.ap-mobile-menu.active { display: block; }
.ap-mobile-menu a { display: block; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px; text-align: center; }

/* 3. Hero Section (Transparent Layer) */
.ap-hero-section {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0 40px;
    background: transparent !important;
}
.ap-hero-content-layer {
    position: relative;
    z-index: 2;
}

.ap-dynamic-island {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 9999px;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.island-camera { width: 8px; height: 8px; border-radius: 50%; background: #2997ff; box-shadow: 0 0 8px #2997ff; }
.ap-keynote-title {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.ap-gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ap-keynote-subtitle {
    font-size: 18.5px;
    color: rgba(245, 245, 247, 0.85);
    max-width: 660px;
    margin: 0 auto 28px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* Glass Capsule Shortener */
.ap-capsule-shortener-wrap { max-width: 700px; margin: 0 auto 24px; width: 100%; }
.shorten-component-wrap { margin: 0; padding: 0; }
.shorten-input-pill {
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: 0.15s ease;
}
.shorten-input-pill:focus-within { border-color: #2997ff; box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.35); }
.shorten-main-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 17px;
    font-family: inherit;
}
.shorten-submit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s ease;
}
.shorten-submit-btn:hover { background: #e5e5ea; }

/* Shortened Link Result Card */
.shorten-result-container { margin-top: 14px; }
.shorten-result-container:empty { display: none !important; }
.shorten-success-card {
    background: rgba(17, 17, 19, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(41, 151, 255, 0.5);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.res-flex-row { display: flex; align-items: center; gap: 8px; }
.res-url-input {
    flex: 1;
    background: #000;
    border: 1px solid var(--border-color);
    color: #2997ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    outline: none;
}
.res-copy-btn {
    background: #2997ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.15s ease;
}
.res-copy-btn.copied { background: #10b981; }
.shorten-err-card {
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* Telemetry Pills Row */
.ap-telemetry-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}
.ap-telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 14px;
    color: var(--text-secondary);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.pill-dot.purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.pill-dot.blue { background: #2997ff; box-shadow: 0 0 6px #2997ff; }

/* 4. Apple Bento Live Stats Grid (Transparent Layer with Frosted Glass Cards) */
.ap-stats-bento-section {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0;
    position: relative;
    z-index: 2;
}
.ap-stats-bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ap-bento-stat-card {
    background: rgba(14, 14, 18, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.15s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ap-bento-stat-card:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.stat-pill-tag { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-color); }
.stat-pulse-light { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stat-pulse-light.cyan { background: #2997ff; box-shadow: 0 0 8px #2997ff; }
.stat-pulse-light.purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.stat-pulse-light.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.stat-big-counter { font-size: 42px; font-weight: 900; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat-card-title { font-size: 15px; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.stat-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* Publisher Simulator Bento Card */
.theme-section { padding: 70px 0; background: #000000; position: relative; z-index: 2; }
.ap-sim-header { margin-bottom: 36px; }
.ap-badge-sm { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #2997ff; letter-spacing: 0.08em; }
.ap-section-head { font-size: 34px; font-weight: 800; color: #fff; margin: 6px 0 8px; letter-spacing: -0.03em; }
.ap-section-sub { font-size: 16px; color: var(--text-secondary); }

.ap-simulator-bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.ap-control-card {
    background: #0d0d0f;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}
.ap-card-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ap-control-label { font-size: 15px; font-weight: 600; color: #ffffff; }
.ap-control-pill { font-size: 14px; font-weight: 700; color: #2997ff; background: rgba(41, 151, 255, 0.1); border: 1px solid rgba(41, 151, 255, 0.25); padding: 3px 10px; border-radius: 9999px; }

.ap-range-wrap { margin-top: 8px; }
.ap-custom-range {
    width: 100%;
    height: 6px;
    background: #222226;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}
.ap-custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    cursor: pointer;
}
.ap-range-markers { display: flex; justify-content: space-between; font-size: 12px; color: #6e6e73; margin-top: 8px; font-weight: 600; }

.ap-select-wrapper { position: relative; margin-top: 8px; }
.ap-custom-select {
    width: 100%;
    background: #000000;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.ap-custom-select:focus { border-color: #2997ff; }
.select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #86868b; pointer-events: none; font-size: 12px; }

/* Right Projected Revenue Card */
.ap-revenue-glass-card {
    background: linear-gradient(145deg, #141418 0%, #0a0a0c 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.rev-top-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rev-chip { font-size: 12px; font-weight: 700; color: #10b981; background: rgba(16, 185, 129, 0.12); padding: 3px 8px; border-radius: 6px; }
.rev-frequency { font-size: 13px; color: #86868b; }
.rev-stat-label { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; display: block; margin-bottom: 4px; }
.rev-big-number { font-size: 44px; font-weight: 900; color: #ffffff; letter-spacing: -0.03em; line-height: 1; }
.rev-sub-stat-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; margin-top: 20px; }
.sub-lbl { font-size: 12px; color: #86868b; display: block; margin-bottom: 2px; }
.sub-val { font-size: 15px; color: #ffffff; }

/* 9 Product Tiles Grid */
.ap-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-product-card {
    background: #0d0d0f;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px 22px;
    transition: 0.15s ease;
}
.ap-product-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); }
.card-glass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.step-chip { font-size: 12px; font-weight: 800; color: var(--text-secondary); font-family: monospace; }
.ap-card-icon { font-size: 22px; color: #fff; }
.ap-card-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ap-card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Clean Contact Us Form */
.theme-contact-wrap { max-width: 620px; margin: 0 auto; }
.contact-form-box { background: #0d0d0f; border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; text-align: left; }
.form-duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-input-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 6px; }
.form-ctrl {
    width: 100%;
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: 0.15s ease;
}
.form-ctrl:focus { border-color: #2997ff; }
.form-err-msg { color: #ef4444; font-size: 13px; margin-top: 4px; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.test-card { background: #0d0d0f; border: 1px solid var(--border-color); border-radius: 12px; padding: 22px; text-align: left; }
.test-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.test-author strong { display: block; font-size: 14px; color: #fff; }
.test-author span { font-size: 12px; color: var(--text-secondary); }

/* ==========================================================
   MOBILE VIEWPORT OPTIMIZATIONS (<768px & <500px)
   ========================================================== */
@media (max-width: 860px) {
    .ap-dock-links { display: none; }
    .ap-mobile-btn { display: block; }
    .ap-stats-bento-grid { grid-template-columns: 1fr; }
    .ap-simulator-bento { grid-template-columns: 1fr; }
    .ap-cards-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-duo-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ap-dock-nav-wrap { top: 12px; padding: 0 12px; }
    .ap-container { padding: 0 16px; }
    .ap-global-hero-backdrop { height: 1600px; max-height: 250vh; }
    .ap-hero-section {
        min-height: calc(100svh - 75px);
        min-height: calc(100vh - 75px);
        padding: 20px 0 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .ap-dynamic-island { margin-bottom: 16px; font-size: 12.5px; padding: 4px 14px; }
    .ap-keynote-title { font-size: 35px; line-height: 1.15; margin-bottom: 14px; }
    .ap-keynote-subtitle { font-size: 15px; margin-bottom: 24px; line-height: 1.5; }
    .ap-capsule-shortener-wrap { margin-bottom: 18px; }
    .shorten-input-pill { padding: 5px 6px 5px 16px; gap: 8px; }
    .shorten-main-input { font-size: 15px; }
    .shorten-submit-btn { padding: 9px 20px; font-size: 14px; }
    .ap-telemetry-row { gap: 8px; justify-content: center; }
    .ap-telemetry-pill { padding: 6px 14px; font-size: 12.5px; gap: 6px; }
    .theme-section { padding: 50px 0; }
    .ap-section-head { font-size: 26px; }
    .ap-control-card, .ap-revenue-glass-card { padding: 22px 16px; }
    .rev-big-number { font-size: 34px; }
}
