:root {
    --figma-bg: #1e1e1e;
    --fb-blue: #0866ff;
    --gh-bg: #071510;
    --gh-border: #1b4d3e;
    --gh-text: #d8f3dc;
    --gh-accent: #2d6a4f;
    --paper-bg: #f4f9f4;
    --paper-line: #c8e1d3;
    --paper-text: #1b4332;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gh-bg);
    color: var(--gh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    border-top: 4px solid #52b788;
}

button,
input,
a {
    font: inherit;
}

a {
    -webkit-tap-highlight-color: transparent;
    color: #74c69d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 2px solid var(--gh-border);
    border-radius: 6px;
    background: var(--figma-bg);
    padding: 4px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 21, 16, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gh-border);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: #ffffff;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 11px;
    color: #74c69d;
    font-family: ui-monospace, monospace;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav a {
    color: var(--gh-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.header-nav a:hover {
    background: rgba(116, 198, 157, 0.1);
    border-color: var(--gh-border);
    text-decoration: none;
}

.header-spacer {
    flex: 1;
}

.mobile-menu-toggle {
    display: none;
    background: var(--figma-bg);
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    color: #ffffff;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--gh-bg);
    border-bottom: 1px solid var(--gh-border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--gh-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0f2a20 0%, #071510 100%);
    border-bottom: 1px solid var(--gh-border);
}

.hero-inner {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: auto;
    padding: 56px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 2em;
    background: rgba(82, 183, 136, 0.15);
    border: 1px solid rgba(82, 183, 136, 0.4);
    color: #52b788;
    font-size: 12px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52b788;
    box-shadow: 0 0 8px #52b788;
}

.hero h1 {
    max-width: 780px;
    margin: 16px 0 12px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 600;
}

.hero h1 span {
    color: #74c69d;
    font-weight: 700;
}

.hero-description {
    max-width: 600px;
    color: #95d5b2;
    font-size: 15px;
    line-height: 1.6;
}

.search-wrap {
    margin-top: 24px;
    width: min(640px, 100%);
}

.search-box {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #74c69d;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #74c69d;
}

.search-shortcut {
    display: none;
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid var(--gh-border);
    border-radius: 4px;
    color: #74c69d;
    font-size: 11px;
    background: #1b4d3e;
    font-family: ui-monospace, monospace;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    color: #95d5b2;
    font-size: 12px;
}

.hero-stat strong {
    color: #ffffff;
    font-family: ui-monospace, monospace;
}

.main {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
    padding: 32px 0 64px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gh-border);
    padding-bottom: 12px;
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.section-title p {
    margin: 4px 0 0;
    color: #95d5b2;
    font-size: 12px;
}

.result-count {
    color: #95d5b2;
    font-size: 12px;
    font-family: ui-monospace, monospace;
}

.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scrollbar-width: thin;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--gh-border);
    border-radius: 2px;
}

.category-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: 0.15s ease;
}

.category-pill span {
    color: #52b788;
}

.category-pill:hover {
    background: #1b4d3e;
    border-color: #52b788;
    color: #ffffff;
    text-decoration: none;
}

.category {
    margin-top: 32px;
    scroll-margin-top: 80px;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.category-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(82, 183, 136, 0.15);
    color: #52b788;
    border: 1px solid rgba(82, 183, 136, 0.3);
}

.category-total {
    color: #95d5b2;
    font-size: 12px;
    font-family: ui-monospace, monospace;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    min-height: 70px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    color: var(--gh-text);
    text-decoration: none;
    transition: 0.15s ease;
}

/* Notebook paper styling for the first 3 items of each section */
#movies .service:nth-child(-n+3),
section[id*="movie"] .service:nth-child(-n+3),
.category:nth-of-type(3) .service:nth-child(-n+3) {
    background-color: var(--paper-bg);
    background-image: linear-gradient(var(--paper-line) 1px, transparent 1px);
    background-size: 100% 24px;
    border: 1px solid #b7e4c7;
    border-left: 4px solid #2d6a4f;
    color: var(--paper-text);
    box-shadow: 2px 4px 10px rgba(0,0,0,0.25);
}

#movies .service:nth-child(-n+3) .service-name,
section[id*="movie"] .service:nth-child(-n+3) .service-name,
.category:nth-of-type(3) .service:nth-child(-n+3) .service-name {
    color: var(--paper-text);
    font-weight: 700;
}

#movies .service:nth-child(-n+3) .service-meta,
section[id*="movie"] .service:nth-child(-n+3) .service-meta,
.category:nth-of-type(3) .service:nth-child(-n+3) .service-meta {
    color: #40916c;
}

#movies .service:nth-child(-n+3) .service-icon,
section[id*="movie"] .service:nth-child(-n+3) .service-icon,
.category:nth-of-type(3) .service:nth-child(-n+3) .service-icon {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2d6a4f;
}

#movies .service:nth-child(-n+3) .service-arrow,
section[id*="movie"] .service:nth-child(-n+3) .service-arrow,
.category:nth-of-type(3) .service:nth-child(-n+3) .service-arrow {
    color: #2d6a4f;
}

.service:hover {
    background: #1b4d3e;
    border-color: #52b788;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#movies .service:nth-child(-n+3):hover,
section[id*="movie"] .service:nth-child(-n+3):hover,
.category:nth-of-type(3) .service:nth-child(-n+3):hover {
    background-color: #ffffff;
    background-image: linear-gradient(var(--paper-line) 1px, transparent 1px);
    background-size: 100% 24px;
    border-color: #52b788;
    transform: translateY(-2px);
    box-shadow: 3px 6px 15px rgba(0,0,0,0.35);
}

.service:active {
    transform: translateY(0);
}

.service-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #1b4d3e;
    border: 1px solid var(--gh-border);
    color: #74c69d;
    font-size: 14px;
    font-weight: 600;
}

.service-info {
    min-width: 0;
    flex: 1;
}

.service-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #95d5b2;
    font-size: 11px;
}

.service-arrow {
    width: 16px;
    height: 16px;
    color: #95d5b2;
    transition: 0.15s ease;
}

.service:hover .service-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.no-results {
    display: none;
    padding: 48px 20px;
    text-align: center;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
}

.no-results-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.no-results h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.no-results p {
    margin: 4px 0 0;
    color: #95d5b2;
    font-size: 12px;
}

.notice {
    margin-top: 32px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(82, 183, 136, 0.4);
    background: rgba(82, 183, 136, 0.1);
    border-radius: 8px;
    color: #95d5b2;
    font-size: 12px;
    line-height: 1.5;
}

.notice-icon {
    flex: 0 0 auto;
}

.footer {
    border-top: 1px solid var(--gh-border);
    background: #071510;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #95d5b2;
    font-size: 11px;
}

.footer strong {
    color: #ffffff;
}

.footer a {
    color: #74c69d;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.retention-banner {
    position: relative;
    overflow: hidden;
    background: #0f2a20;
    border-bottom: 1px solid var(--gh-border);
    border-top: 1px solid var(--gh-border);
}

.retention-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
}

.retention-glow {
    position: absolute;
    pointer-events: none;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.retention-glow-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background: #2d6a4f;
}

.retention-glow-right {
    right: -100px;
    top: -50px;
    background: #52b788;
}

.retention-content {
    min-width: 0;
    max-width: 680px;
}

.retention-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #52b788;
    font-size: 11px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    text-transform: uppercase;
}

.retention-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.2;
    font-weight: 600;
}

.retention-content h2 span {
    color: #74c69d;
}

.retention-content p {
    max-width: 580px;
    margin: 8px 0 16px;
    color: #95d5b2;
    font-size: 13px;
    line-height: 1.5;
}

.retention-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proof-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.proof-item strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
}

.proof-item span {
    color: #95d5b2;
    font-size: 11px;
}

.proof-divider {
    width: 1px;
    height: 16px;
    background: var(--gh-border);
}

.retention-action {
    flex: 0 0 220px;
    padding-left: 24px;
    border-left: 1px solid var(--gh-border);
    text-align: center;
}

.price-label {
    color: #95d5b2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.price {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 10px;
    font-family: ui-monospace, monospace;
}

.price span {
    color: #95d5b2;
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
}

.retention-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #2d6a4f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: 0.15s ease;
}

.retention-button:hover {
    background: #40916c;
    text-decoration: none;
}

.secure-text {
    margin-top: 6px;
    color: #95d5b2;
    font-size: 10px;
}

.secure-text span {
    color: #52b788;
    font-weight: 600;
}

.jerald-atlas-promo {
    width: 100%;
    margin: 40px 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.jerald-atlas-inner {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
    padding: 48px;
    border-radius: 12px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #ffffff;
}

.jerald-atlas-copy {
    position: relative;
    z-index: 3;
    max-width: 580px;
}

.jerald-atlas-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #74c69d;
    font-size: 11px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
}

.jerald-atlas-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #74c69d;
    box-shadow: 0 0 6px #74c69d;
}

.jerald-atlas-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 600;
}

.jerald-atlas-copy h2 strong {
    display: block;
    font-weight: 700;
    color: #74c69d;
}

.jerald-atlas-copy p {
    max-width: 540px;
    margin: 16px 0 24px;
    color: #95d5b2;
    font-size: 14px;
    line-height: 1.6;
}

.jerald-atlas-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #2d6a4f;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.15s ease;
}

.jerald-atlas-button span {
    font-size: 16px;
    transition: 0.15s ease;
}

.jerald-atlas-button:hover {
    background: #40916c;
    text-decoration: none;
}

.jerald-atlas-button:hover span {
    transform: translateX(3px);
}

.jerald-atlas-visual {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-orbit {
    position: absolute;
    border: 1px dashed var(--gh-border);
    border-radius: 50%;
}

.atlas-orbit-1 {
    width: 260px;
    height: 260px;
}

.atlas-orbit-2 {
    width: 320px;
    height: 320px;
}

.atlas-card {
    position: relative;
    z-index: 2;
    width: 240px;
    padding: 16px;
    border-radius: 8px;
    background: #071510;
    border: 1px solid var(--gh-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.atlas-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gh-border);
}

.atlas-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #1b4d3e;
    border: 1px solid var(--gh-border);
    font-size: 12px;
    font-weight: 700;
    color: #74c69d;
    font-family: ui-monospace, monospace;
}

.atlas-card-top small {
    display: block;
    color: #95d5b2;
    font-size: 9px;
    font-family: ui-monospace, monospace;
}

.atlas-card-top strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #ffffff;
}

.atlas-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 0;
}

.atlas-items div {
    padding: 6px 8px;
    border-radius: 4px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    font-size: 11px;
}

.atlas-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #0f2a20;
    border: 1px solid var(--gh-border);
    color: #95d5b2;
    font-size: 11px;
}

@media (min-width: 700px) {
    .search-shortcut {
        display: block;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .retention-inner {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px;
    }

    .retention-action {
        flex: initial;
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid var(--gh-border);
    }

    .retention-button {
        max-width: 280px;
        margin: 0 auto;
    }

    .jerald-atlas-inner {
        padding: 32px 20px;
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .jerald-atlas-copy {
        max-width: 100%;
    }

    .jerald-atlas-label {
        justify-content: center;
    }

    .jerald-atlas-visual {
        width: 260px;
        height: 260px;
    }

    .atlas-orbit-1 {
        width: 210px;
        height: 210px;
    }

    .atlas-orbit-2 {
        width: 260px;
        height: 260px;
    }

    .atlas-card {
        width: 210px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 20px, 1200px);
        height: 60px;
    }

    .hero-inner {
        width: min(100% - 20px, 1200px);
        padding: 36px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .main {
        width: min(100% - 20px, 1200px);
        padding-top: 20px;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        width: min(100% - 20px, 1200px);
        flex-direction: column;
        gap: 8px;
    }
}