/* ----------------------------------------------------------
   Codex.us.com — converted to static PHP/HTML/CSS/JS
   Recreates layout, type & color of the original Kadence theme.
   ---------------------------------------------------------- */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #453e3e;
    background: #f7f3f5;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ec5b53; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.5; color: #1A202C; }
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 22px; color: #2D3748; }
p  { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 5px; top: 5px; background: #fff; padding: 8px 14px; z-index: 10000; }

/* ---------- Header ---------- */
.site-header {
    background: #000;
    color: #fff;
    position: relative;
    z-index: 50;
}
.site-header-inner {
    max-width: 1250px;
    min-height: 106px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.site-logo { width: 53px; height: auto; }
.site-title { font-weight: 700; font-size: 26px; line-height: 1.2; color: #fff; }
.primary-nav .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.primary-nav .primary-menu > li > a,
.primary-nav .primary-menu > li > .menu-link {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.6em;
}
.primary-nav .primary-menu > li > a:hover { color: #ec5b53; }
.primary-nav .menu-item.has-children { position: relative; }
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #000;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 13px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 60;
}
.primary-nav .menu-item.has-children:hover > .sub-menu,
.primary-nav .menu-item.has-children:focus-within > .sub-menu,
.primary-nav .menu-item.has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-nav .sub-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
.primary-nav .sub-menu li:last-child { border-bottom: none; }
.primary-nav .sub-menu a {
    color: #F7FAFC;
    font-size: 12px;
    padding: 1em 1.2em;
    display: block;
}
.primary-nav .sub-menu a:hover { color: #ec5b53; background: #000; }
.primary-nav .caret { transition: transform .2s; }
.primary-nav .menu-item.has-children:hover .caret,
.primary-nav .menu-item.has-children.is-open .caret { transform: rotate(180deg); }

/* mobile toggle (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: #ef4d48;
    border: 1px solid currentColor;
    padding: 0.4em 0.6em;
    font-size: 14px;
    border-radius: 2px;
    align-items: center;
    gap: 8px;
}
.mobile-menu-icon {
    width: 22px; height: 16px;
    display: inline-block; position: relative;
}
.mobile-menu-icon span {
    position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.mobile-menu-icon span:nth-child(1) { top: 0; }
.mobile-menu-icon span:nth-child(2) { top: 7px; }
.mobile-menu-icon span:nth-child(3) { top: 14px; }

/* mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86vw;
    max-width: 380px;
    background: #000;
    color: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1000;
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-inner { padding: 16px 18px 40px; }
.mobile-drawer-close {
    background: transparent; border: 0; color: #fff;
    font-size: 32px; line-height: 1;
    margin-left: auto; display: block;
}
.mobile-menu, .mobile-sub-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu > li > a,
.mobile-menu > li > .mobile-submenu-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: transparent; border: 0;
    color: #F7FAFC;
    padding: 1em 0;
    font-size: 14px;
    text-align: left;
}
.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.mobile-menu > li.is-open .mobile-sub-menu { max-height: 400px; }
.mobile-sub-menu a {
    display: block;
    color: #F7FAFC;
    padding: .85em 0 .85em 16px;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    z-index: 999;
}
.mobile-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Generic layout helpers ---------- */
.section { padding: 70px 0; }
.section-narrow { padding: 48px 0; }
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.divider {
    width: 9%;
    border: 0;
    border-top: 2px solid #ef4d48;
    margin: 18px auto;
}
.divider-left { margin-left: 0; }

/* shared dark sections common headings */
.dark-section { background: #000; color: #fff; }
.dark-section h2,
.dark-section h1 { color: #ff0300; font-family: 'Playfair Display', serif; }
.dark-section p { color: #fff; line-height: 31px; }
.gray-section { background: #f3f3f3; }
.gray-section h2 { font-family: 'Playfair Display', serif; }

/* Buttons */
.btn {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: box-shadow .2s, transform .1s;
    box-shadow: 0 4px 0 rgba(0,0,0,.05);
}
.btn:hover { background: #5cb85c; color: #fff; box-shadow: 0 15px 25px -7px rgba(0,0,0,.25); transform: translateY(-1px); }
.btn-block { display: block; text-align: center; }

/* ----------------------------------------------------------
   HOMEPAGE
   ---------------------------------------------------------- */
.home-hero {
    background-image: linear-gradient(150deg, #000 0%, #410303 69%);
    color: #fff;
    padding: 60px 0 80px;
}
.home-hero .container { text-align: center; }
.home-hero h1 {
    color: #ff0300;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 36px;
    font-weight: 600;
    padding-bottom: 30px;
    margin: 0;
}
.home-hero .hero-lead {
    display: flex; align-items: center; gap: 18px;
    text-align: left; max-width: 900px; margin: 0 auto;
    color: #fff;
}
.home-hero .hero-lead img { flex: 0 0 106px; width: 106px; height: 106px; }
.home-hero .download-row {
    margin: 40px 0 8px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.home-hero .version-tag { color: #fff; font-size: 17px; }
.home-hero .version-tag strong { color: #fff; }
.home-hero .hero-extra {
    padding-top: 40px;
    line-height: 31px;
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
    text-align: left;
}
.home-hero p { color: #fff; }

.what-section h2,
.use-section h2,
.download-section h2,
.faqs-section h2 {
    color: #ff0300;
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 38px;
    line-height: 36px;
    padding: 80px 0 30px;
    margin: 0;
}
.use-section h2,
.faqs-section h2 { color: inherit; padding-top: 0; }
.faqs-section h2 { color: #ff0300; }

.what-section .feature-image {
    margin: 0 auto 24px;
    max-width: 100%;
}
.what-section .feature-image img { margin: 0 auto; }

.overview-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 60px;
    align-items: start;
}
.overview-row h2 {
    color: #ff0300;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    text-align: left;
    margin: 0 0 6px;
    padding: 0;
}
.overview-row p { padding-top: 20px; }
.overview-row .overview-image {
    background-color: #b31717;
    padding: 10px;
    max-width: 100%;
}
.overview-row .overview-image img { width: 100%; height: auto; }

.use-section { background: #f3f3f3; padding: 70px 0; color: #453e3e; }
.use-section h2 { color: #1A202C; }
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 880px;
}
.steps-list li {
    position: relative;
    padding: 4px 0 4px 22px;
    line-height: 1.6;
}
.steps-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 14px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #1A202C;
}

.download-section { background: #000; color: #fff; padding: 70px 0 100px; text-align: center; }
.download-section h2 { color: #ff0300; }
.download-section p { color: #fff; padding-top: 0; max-width: 950px; margin: 0 auto 30px; line-height: 31px; }
.download-section .btn { display: inline-block; }

.faqs-section { background: #f3f3f3; padding: 130px 0 100px; }
.faqs-list { max-width: 950px; margin: 0 auto; }
.faqs-list .faq-q {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 17px;
    margin: 28px 0 6px;
    color: #1A202C;
}
.faqs-list .faq-q::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: #1A202C;
    flex: 0 0 6px;
}
.faqs-list .faq-a { margin: 0 0 0 18px; padding-bottom: 4px; color: #453e3e; }
.faqs-list a { color: #2B6CB0; text-decoration: underline; }

/* ----------------------------------------------------------
   WORKSHOP PAGE
   ---------------------------------------------------------- */
.workshop-hero {
    background-color: #000;
    background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('/landing/assets/images/Codex-Executor-screen-2.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 110px 20px;
}
.workshop-hero h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin: 0;
    line-height: 1.3;
}
.workshop-body { padding: 50px 0 70px; }
.workshop-body h2 {
    font-family: 'Playfair Display', serif;
    color: #1A202C;
    font-size: 24px;
    margin: 30px 0 14px;
}
.workshop-body .event-info { font-size: 17px; }
.workshop-body ul { padding-left: 22px; }
.workshop-body ul li { margin-bottom: 4px; }
.workshop-form { max-width: 760px; }
.form-row { margin-bottom: 16px; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: #2D3748;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    background: #fff;
    font: inherit;
    color: #1A202C;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row .radio { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: normal; }
.form-row .radio input { margin: 0; }
.form-submit { background: #2B6CB0; color: #fff; border: 0; padding: 10px 24px; border-radius: 3px; font-weight: 600; }
.form-submit:hover { background: #215387; }
.workshop-body .support-line { margin-top: 30px; font-size: 15px; color: #4A5568; }
.workshop-body .support-line a { color: #2B6CB0; text-decoration: underline; }

/* ----------------------------------------------------------
   APP LISTING PAGES (Hydrogen / Script Ware)
   ---------------------------------------------------------- */
.breadcrumbs {
    max-width: 1100px;
    margin: 30px auto 10px;
    padding: 0 40px;
    font-size: 14px;
    color: #4A5568;
}
.breadcrumbs a:hover { color: #ec5b53; }

.app-card {
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    align-items: center;
}
.app-card .app-icon {
    background: #eef2f7;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-card .app-icon img { width: 80px; height: 80px; object-fit: contain; }
.app-card h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.app-meta-by { color: #4A5568; font-size: 15px; margin: 0 0 4px; }
.app-meta-rating { color: #4A5568; font-size: 14px; margin: 0 0 4px; }
.app-meta-rating .star { color: #f6ad55; }
.app-meta-date { color: #718096; font-size: 14px; margin: 0; }

.app-notice {
    max-width: 1100px;
    margin: 30px auto;
    padding: 18px 40px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    color: #4A5568;
    font-style: italic;
}
.app-explore-btn {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 40px;
    text-align: center;
}
.app-explore-btn .btn { background: #2B6CB0; }
.app-explore-btn .btn:hover { background: #215387; }
.app-download-btn { text-align: center; margin: 30px auto; padding: 0 40px; }
.app-download-btn .btn { background: #2B6CB0; }

.app-version-block {
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 0 40px;
}
.app-version-block h2 {
    font-size: 22px;
    margin: 30px 0 18px;
    font-weight: 700;
}
.version-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 22px 28px;
}
.version-grid > div { font-size: 15px; }
.version-grid .label { font-weight: 700; color: #1A202C; margin-bottom: 2px; }
.version-grid .value { color: #4A5568; }

.media-frame {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 40px;
}
.media-frame img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.app-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 70px;
}
.app-content h2,
.app-content h3 {
    font-weight: 700;
    margin: 28px 0 10px;
    color: #1A202C;
}
.app-content h2 { font-size: 22px; }
.app-content h3 { font-size: 19px; }
.app-content p { margin-bottom: 14px; }
.app-content ul { padding-left: 22px; margin-bottom: 14px; }
.app-content ul li { margin-bottom: 6px; }
.app-content .arrow-list { list-style: none; padding-left: 0; }
.app-content .arrow-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.app-content .arrow-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2B6CB0;
    font-weight: 700;
}
.app-content .features-list { padding-left: 0; list-style: none; }
.app-content .features-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.app-content .features-list li::before { content: "•"; position: absolute; left: 0; color: #2B6CB0; font-weight: 700; }
.app-content .features-list strong { color: #1A202C; }

/* ---------- Static pages (About / Privacy / 404) ---------- */
.static-page { padding: 70px 0 90px; background: #fff; }
.static-page h1 { font-family: 'Playfair Display', serif; color: #1A202C; font-size: 38px; margin: 0 0 24px; }
.static-page h2 { font-family: 'Playfair Display', serif; color: #1A202C; font-size: 24px; margin: 30px 0 12px; }
.static-page p, .static-page li { color: #453e3e; }
.static-page ul { padding-left: 22px; margin-bottom: 16px; }
.static-page ul li { margin-bottom: 6px; }
.static-page a { color: #2B6CB0; text-decoration: underline; }
.static-page a:hover { color: #ec5b53; }

.error-page { background: #fff; padding: 100px 0 120px; text-align: center; }
.error-page .error-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 12px;
    color: #ff0300;
}
.error-page h1 { font-family: 'Playfair Display', serif; font-size: 32px; margin: 0 0 14px; color: #1A202C; }
.error-page .error-lead { color: #4A5568; margin-bottom: 36px; }
.error-page .error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-page .btn-secondary { background: #1A202C; }
.error-page .btn-secondary:hover { background: #2D3748; }

/* ---------- Footer ---------- */
.site-footer {
    background: #2b161b;
    color: #fff;
    padding: 24px 0;
    margin-top: 0;
}
.site-footer-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.site-footer .copyright { margin: 0; font-size: 16px; color: #fff; }
.site-footer .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer .footer-menu a { color: #fff; font-size: 14px; padding: 4px 0; }
.site-footer .footer-menu a:hover { color: #ec5b53; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .container, .container-narrow { padding: 0 24px; }
    .app-card, .app-version-block, .media-frame, .app-content, .app-notice, .app-explore-btn, .app-download-btn, .breadcrumbs {
        padding-left: 24px; padding-right: 24px;
    }
    .home-hero h1 { font-size: 23px; }
    .what-section h2, .download-section h2, .faqs-section h2 { font-size: 30px; padding-top: 50px; }
    .overview-row { grid-template-columns: 1fr 1fr; }
    .version-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .site-header-inner { min-height: 65px; padding: 0 14px; }
    .site-logo { width: 28px; }
    .site-title { font-size: 20px; }
    .primary-nav { display: none; }
    .mobile-menu-toggle { display: inline-flex; }

    h1 { font-size: 26px; }
    h2 { font-size: 23px; }

    .section, .home-hero, .use-section, .download-section, .faqs-section { padding-left: 0; padding-right: 0; }
    .container, .container-narrow { padding: 0 17px; }

    .home-hero h1 { font-size: 22px; padding-top: 50px; line-height: 30px; }
    .home-hero .hero-lead { flex-direction: column; text-align: center; }
    .home-hero .hero-lead img { flex: 0 0 auto; width: 100px; height: 100px; }

    .what-section h2, .download-section h2, .faqs-section h2 { font-size: 27px; padding-top: 50px; }
    .overview-row { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
    .overview-row h2 { font-size: 27px; text-align: center; }
    .overview-row .overview-image { max-width: 220px; margin: 0 auto; }

    .faqs-section { padding: 60px 0; }

    .app-card { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 0 17px; }
    .app-card .app-icon { margin: 0 auto; }
    .breadcrumbs { padding: 0 17px; }
    .app-notice, .app-explore-btn, .app-version-block, .media-frame, .app-content { padding-left: 17px; padding-right: 17px; }
    .version-grid { grid-template-columns: 1fr 1fr; padding: 18px 20px; }
    .form-row.split { grid-template-columns: 1fr; }
    .workshop-hero { padding: 70px 16px; }
    .workshop-hero h2 { font-size: 26px; }
}
