/*
Theme Name: CFxD Modern
Description: A focused, responsive CFxD presentation theme built on Twenty Seventeen.
Author: CFxD
Template: twentyseventeen
Version: 1.2.0
Text Domain: cfxd-modern
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

body.cfxd-modern {
  --cf-bg: #0a1018;
  --cf-panel: #101b28;
  --cf-panel-raised: #152332;
  --cf-text: #eef4fa;
  --cf-muted: #a8b7c7;
  --cf-accent: #67dce7;
  --cf-border: #263646;
  background: var(--cf-bg);
  color: var(--cf-text);
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.cfxd-modern *, .cfxd-modern *::before, .cfxd-modern *::after { box-sizing: border-box; }
.cfxd-modern .site-content-contain { background: var(--cf-bg); }
.cfxd-modern #content { padding: 0; }
.cfxd-modern a { color: var(--cf-text); text-decoration: none; }
.cfxd-modern a:hover { color: var(--cf-accent); }
.cfxd-modern a:focus-visible, .cfxd-modern button:focus-visible, .cfxd-modern input:focus-visible, .cfxd-modern select:focus-visible, .cfxd-modern textarea:focus-visible { outline: 3px solid var(--cf-accent); outline-offset: 5px; }
.cfxd-modern h1, .cfxd-modern h2, .cfxd-modern h3, .cfxd-modern h4 { color: var(--cf-text); font-weight: 600; letter-spacing: -.035em; text-transform: none; }
.cfxd-modern p { color: var(--cf-muted); }
.cfxd-modern .cfxd-shell { width: min(1180px, calc(100% - 80px)); max-width: 1180px; margin-inline: auto; }
.cfxd-modern .cfxd-header { background: #0a1018; border-bottom: 1px solid var(--cf-border); }
.cfxd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.cfxd-modern .cfxd-brand { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; box-shadow: none; width: max-content; }
.cfxd-modern .cfxd-brand-image { display: block; width: auto; height: auto; max-width: 180px; max-height: 62px; }
.cfxd-modern .cfxd-wordmark { display: inline-block; font-size: 35px; font-weight: 800; letter-spacing: -.065em; line-height: 1.1; color: #fff; }
.cfxd-wordmark > span { color: var(--cf-accent); }
.cfxd-brand-caption { margin-top: 3px; font-size: 11px; color: var(--cf-muted); letter-spacing: .025em; font-weight: 500; text-transform: none; }
.cfxd-nav { display: flex; align-items: center; gap: 26px; }
.cfxd-modern .cfxd-menu { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; }
.cfxd-menu li { position: relative; margin: 0; }
.cfxd-modern .cfxd-menu a { display: block; color: #bcc9d5; font-size: 12px; font-weight: 500; padding: 12px 0; }
.cfxd-modern .cfxd-menu a:hover, .cfxd-modern .cfxd-menu .current-menu-item > a, .cfxd-modern .cfxd-menu .current-menu-ancestor > a { color: var(--cf-accent); }
.cfxd-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 190px; padding: 12px 18px; margin: 0; background: var(--cf-panel); border: 1px solid var(--cf-border); list-style: none; z-index: 10; border-radius: 8px; }
.cfxd-menu li:hover > .sub-menu, .cfxd-menu li:focus-within > .sub-menu { display: block; }
.cfxd-modern .cfxd-menu-toggle { display: none; padding: 9px 14px; border: 1px solid var(--cf-border); border-radius: 6px; color: var(--cf-text); background: var(--cf-panel); font-size: 13px; }
.cfxd-menu-toggle[hidden] { display: none !important; }
.cfxd-modern .cfxd-button { display: inline-flex; gap: 22px; justify-content: center; align-items: center; padding: 14px 22px; min-height: 48px; background: var(--cf-accent); color: #0a1820; border: 1px solid var(--cf-accent); border-radius: 5px; font-size: 13px; font-weight: 700; line-height: 1.4; box-shadow: none; transition: background .15s ease, border-color .15s ease; }
.cfxd-modern .cfxd-button:hover { background: #a6f0f5; border-color: #a6f0f5; color: #0a1820; }
.cfxd-modern .cfxd-button-secondary { color: var(--cf-text); border-color: #405367; background: transparent; }
.cfxd-modern .cfxd-button-secondary:hover { color: var(--cf-accent); background: #152332; border-color: var(--cf-accent); }
.cfxd-modern .cfxd-button-small { padding: 10px 15px; min-height: 40px; gap: 12px; font-size: 12px; white-space: nowrap; }
.cfxd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cfxd-hero-section { position: relative; padding: 76px 0 68px; background: radial-gradient(ellipse at 85% 35%, #18333d80, transparent 55%); }
.cfxd-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.cfxd-modern .cfxd-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; font-size: 10px; letter-spacing: .16em; font-weight: 600; color: var(--cf-accent); line-height: 1.6; }
.cfxd-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cf-accent); box-shadow: 0 0 0 4px #67dce714; }
.cfxd-modern .cfxd-hero-copy h1 { font-size: clamp(34px, 3.7vw, 53px); line-height: 1.12; margin: 0 0 25px; padding: 0; letter-spacing: -.045em; }
.cfxd-hero-copy h1 span { color: var(--cf-accent); }
.cfxd-modern .cfxd-hero-description { font-size: 15px; line-height: 1.8; max-width: 490px; margin-bottom: 28px; }
.cfxd-modern .cfxd-hero-note { margin: 20px 0 0; font-size: 11px; color: #9aafbf; }
.cfxd-hero-note span { padding: 0 10px; color: #52697d; }
.cfxd-simulation-frame { margin: 0; background: #17202b; border: 1px solid #395062; border-radius: 10px; overflow: hidden; box-shadow: 0 22px 60px #0005; }
.cfxd-frame-toolbar, .cfxd-simulation-frame figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; font-size: 10px; color: #bdccda; background: #111e2a; }
.cfxd-frame-toolbar > span:last-child { font-size: 8px; letter-spacing: .1em; color: #8fa8bd; }
.cfxd-frame-toolbar i { display: inline-block; width: 6px; height: 6px; background: var(--cf-accent); border-radius: 50%; margin-right: 7px; }
.cfxd-simulation-frame img { width: 100%; height: auto; display: block; }
.cfxd-simulation-frame figcaption { margin: 0; font-style: normal; border-top: 1px solid #395062; }
.cfxd-frame-caption-tag { padding: 3px 8px; border: 1px solid #395062; border-radius: 4px; color: var(--cf-accent); }
.cfxd-capability-strip { background: #101a25; border-block: 1px solid var(--cf-border); }
.cfxd-capability-strip > div { display: flex; justify-content: space-between; gap: 18px; padding-block: 22px; font-size: 11px; font-weight: 500; color: #c2cfdb; }
.cfxd-capability-strip span + span::before { content: '+'; margin-right: 16px; color: var(--cf-accent); }
.cfxd-section-block { padding-block: 78px; }
.cfxd-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 45px; margin-bottom: 34px; }
.cfxd-modern .cfxd-section-heading h2, .cfxd-modern .cfxd-learn-section h2, .cfxd-modern .cfxd-bottom-cta h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; padding: 0; margin: 0; }
.cfxd-section-heading > p { max-width: 380px; font-size: 14px; margin-bottom: 0; }
.cfxd-section-heading .cfxd-eyebrow { margin-bottom: 12px; }
.cfxd-workflow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cfxd-workflow-card { background: var(--cf-panel); border: 1px solid var(--cf-border); border-radius: 7px; padding: 23px 20px; }
.cfxd-step-number { display: block; font-size: 12px; color: var(--cf-accent); font-weight: 500; margin-bottom: 24px; }
.cfxd-modern .cfxd-workflow-card h3 { padding: 0; margin: 0 0 10px; font-size: 17px; }
.cfxd-workflow-card p { font-size: 12px; line-height: 1.8; margin-bottom: 0; }
.cfxd-learn-section { background: #101a25; border-block: 1px solid var(--cf-border); padding-block: 65px; }
.cfxd-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cfxd-learn-grid > div:first-child > p:not(.cfxd-eyebrow) { font-size: 14px; max-width: 410px; margin-block: 22px; }
.cfxd-modern .cfxd-text-link { display: inline-flex; align-items: center; gap: 25px; font-size: 12px; font-weight: 600; color: var(--cf-accent); box-shadow: none; }
.cfxd-text-link:hover { text-decoration: underline; }
.cfxd-resource-stack { display: grid; gap: 10px; }
.cfxd-modern .cfxd-resource-stack > a { display: flex; justify-content: space-between; align-items: center; background: #152332; border: 1px solid #2c4053; padding: 20px 25px; border-radius: 6px; font-size: 16px; font-weight: 500; }
.cfxd-resource-stack small { display: block; color: #91a8bc; font-size: 8px; letter-spacing: .14em; margin-bottom: 5px; }
.cfxd-resource-stack > a > span:last-child { color: var(--cf-accent); }
.cfxd-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cfxd-news-card { border-top: 1px solid #405367; padding: 23px 0 0; display: flex; flex-direction: column; align-items: start; }
.cfxd-news-card time { color: #9cafbf; font-size: 10px; letter-spacing: .08em; }
.cfxd-modern .cfxd-news-card h3 { font-size: 18px; line-height: 1.4; margin: 15px 0 12px; padding: 0; }
.cfxd-news-card p { font-size: 13px; line-height: 1.7; margin-bottom: 22px; }
.cfxd-news-card > .cfxd-text-link { margin-top: auto; }
.cfxd-modern .cfxd-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 78px; padding: 36px; border: 1px solid #345367; border-radius: 9px; background: linear-gradient(120deg, #19323d, #101b28); }
.cfxd-bottom-cta .cfxd-eyebrow { margin-bottom: 12px; }
.cfxd-bottom-cta p:last-child { font-size: 13px; margin: 15px 0 0; }

/* Existing page HTML and shortcodes remain the source of content. */
.cfxd-modern #content > .wrap { width: min(1100px, calc(100% - 80px)); max-width: 1100px; padding: 58px 0 72px; }
.cfxd-modern #content > .wrap #primary { width: 100%; max-width: none; float: none; }
body.cfxd-modern.page #content #primary .entry-header, body.cfxd-modern.page #content #primary .entry-content { width: 100%; float: none; }
.cfxd-modern.page #content .entry-header { margin-bottom: 28px; }
.cfxd-modern.page #content .entry-title { color: var(--cf-text); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.025em; text-transform: none; margin: 0; }
.cfxd-modern.page #content .entry-content { font-size: 16px; }
.cfxd-modern .entry-content a { box-shadow: none; }
.cfxd-modern .entry-content a:not([class]) { color: var(--cf-accent); text-decoration: underline; text-underline-offset: 3px; }
.cfxd-modern .entry-content h2, .cfxd-modern .entry-content h3 { line-height: 1.3; }
.cfxd-modern .entry-content h2 { font-size: 28px; }
.cfxd-modern .entry-content h3 { font-size: 21px; }
.cfxd-modern .entry-content .cfxd-product, .cfxd-modern .entry-content .cfxd-docs, .cfxd-modern .entry-content .cfxd-download-min { max-width: none; }
.cfxd-modern .entry-content .cfxd-product__intro, .cfxd-modern .entry-content .cfxd-docs__intro, .cfxd-modern .entry-content .cfxd-download-min__intro { font-size: 17px; line-height: 1.75; max-width: 830px; margin-bottom: 28px; opacity: 1; }
.cfxd-modern .entry-content .cfxd-card, .cfxd-modern .entry-content .cfxd-section, .cfxd-modern .entry-content .cfxd-license__item, .cfxd-modern .entry-content .cfxd-download-min__card { background: var(--cf-panel); border-color: var(--cf-border); border-radius: 8px; padding: 25px; }
.cfxd-modern .entry-content .cfxd-card__title, .cfxd-modern .entry-content .cfxd-section__title, .cfxd-modern .entry-content .cfxd-download-min__title { font-size: 21px; letter-spacing: -.02em; margin-bottom: 12px; }
.cfxd-modern .entry-content .cfxd-card__text, .cfxd-modern .entry-content .cfxd-list, .cfxd-modern .entry-content .cfxd-license__text, .cfxd-modern .entry-content .cfxd-download-min__text { font-size: 15px; line-height: 1.75; opacity: 1; }
.cfxd-modern .entry-content .cfxd-btn { background: var(--cf-accent); color: #0a1820; border: 1px solid var(--cf-accent); padding: 12px 18px; font-size: 13px; font-weight: 600; border-radius: 5px; margin-top: 8px; }
.cfxd-modern .entry-content .cfxd-btn:hover { background: #a6f0f5; color: #0a1820; }
.cfxd-modern .entry-content .cfxd-docs__grid, .cfxd-modern .entry-content .cfxd-product__grid { gap: 20px; }
.cfxd-modern .entry-content .cfxd-docs__grid .cfxd-card { display: flex; flex-direction: column; align-items: start; }
.cfxd-modern .entry-content .cfxd-docs__grid .cfxd-card__text { flex-grow: 1; }
.cfxd-modern .entry-content .cfxd-section { margin-top: 25px; }
.cfxd-modern .entry-content .cfxd-table { font-size: 14px; }
.cfxd-modern .entry-content .cfxd-table th, .cfxd-modern .entry-content .cfxd-table td { border-color: var(--cf-border); padding: 14px 16px; }
.cfxd-modern .entry-content .cfxd-table thead th { background: #1a2b3c; }
.cfxd-modern .entry-content .cfxd-table tbody tr:nth-child(even) { background: #142130; }
.cfxd-modern .entry-content .cfxd-license__title { font-size: 18px; }
.cfxd-modern .entry-content .cfxd-hero { display: block; margin: 0 0 25px; }
.cfxd-modern .entry-content img.cfxd-hero { border-radius: 8px; width: 100%; }
.cfxd-modern .entry-meta, .cfxd-modern .entry-meta a, .cfxd-modern .widget-title, .cfxd-modern .widget { color: var(--cf-muted); }
.cfxd-modern .entry-content, .cfxd-modern .entry-summary, .cfxd-modern .comment-content { color: var(--cf-text); }
.cfxd-modern .entry-content blockquote, .cfxd-modern .entry-content li { color: #c0cfdb; }
.cfxd-modern .entry-content input, .cfxd-modern .entry-content textarea, .cfxd-modern .entry-content select { border-radius: 5px; }
.cfxd-modern .woocommerce ul.products li.product { background: var(--cf-panel); padding: 22px; border: 1px solid var(--cf-border); border-radius: 8px; }
.cfxd-modern .woocommerce div.product .product_title { font-size: 32px; }
.cfxd-modern .woocommerce a.button, .cfxd-modern .woocommerce button.button { background: var(--cf-accent); color: #0a1820; border-radius: 5px; }
.cfxd-modern .woocommerce ul.products li.product .price { color: var(--cf-accent); }
.cfxd-modern .woocommerce-account .woocommerce-MyAccount-navigation a { color: var(--cf-text); }
.cfxd-modern .cfxd-footer { background: #080e15; border-top: 1px solid var(--cf-border); padding-top: 44px; }
.cfxd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.25fr 1fr; gap: 45px; padding-bottom: 35px; }
.cfxd-footer-grid p { font-size: 12px; margin: 16px 0 0; line-height: 1.8; }
.cfxd-modern .cfxd-footer-grid h2 { color: #e0eaf2; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 0; margin: 0 0 18px; }
.cfxd-modern .cfxd-footer-grid > div:not(:first-child) > a { display: block; font-size: 11px; color: #9aafbf; margin-bottom: 9px; }
.cfxd-modern .cfxd-footer-grid a:hover { color: var(--cf-accent); }
.cfxd-footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--cf-border); padding-block: 19px; color: #839aad; font-size: 10px; }
.cfxd-social-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; font-size: 12px; }
.cfxd-modern .skip-link:focus { background: #fff; color: #09121b; }

@media (max-width: 1120px) {
  .cfxd-modern .cfxd-shell { width: calc(100% - 48px); }
  .cfxd-modern .cfxd-menu { gap: 15px; }
  .cfxd-nav { gap: 18px; }
  .cfxd-header-inner { gap: 18px; }
  .cfxd-hero-grid { gap: 28px; }
  .cfxd-modern .cfxd-hero-copy h1 { font-size: 42px; }
  .cfxd-workflow-card { padding: 20px 15px; }
}
@media (max-width: 920px) {
  .cfxd-header-inner { flex-wrap: wrap; min-height: 82px; padding-block: 17px; }
  .cfxd-modern .cfxd-menu-toggle { display: inline-flex; align-items: center; gap: 14px; }
  .cfxd-nav { width: 100%; align-items: start; flex-direction: column; border-top: 1px solid var(--cf-border); padding-block: 18px 4px; }
  .cfxd-nav-ready .cfxd-nav:not(.is-open) { display: none; }
  .cfxd-modern .cfxd-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .cfxd-modern .cfxd-menu a { padding: 12px 0; font-size: 14px; }
  .cfxd-menu .sub-menu { display: block; position: static; border: 0; background: transparent; padding: 0 0 0 18px; }
  .cfxd-hero-section { padding-block: 48px; }
  .cfxd-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cfxd-modern .cfxd-hero-copy h1 { font-size: clamp(36px, 6vw, 54px); }
  .cfxd-hero-copy { max-width: 620px; }
  .cfxd-modern .cfxd-hero-description { max-width: 540px; }
  .cfxd-simulation-frame { max-width: 660px; }
  .cfxd-capability-strip > div { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .cfxd-capability-strip span + span::before { display: none; }
  .cfxd-workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfxd-learn-grid { gap: 30px; }
  .cfxd-bottom-cta { flex-direction: column; align-items: start !important; }
  .cfxd-footer-grid { grid-template-columns: 1.5fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .cfxd-modern .cfxd-shell { width: calc(100% - 36px); }
  .cfxd-modern .cfxd-wordmark { font-size: 30px; }
  .cfxd-brand-caption { font-size: 10px; }
  .cfxd-modern .cfxd-brand-image { max-height: 48px; max-width: 140px; }
  .cfxd-modern .cfxd-hero-copy h1 { font-size: 36px; }
  .cfxd-modern .cfxd-hero-description { font-size: 14px; }
  .cfxd-modern .cfxd-button { padding: 13px 16px; font-size: 12px; gap: 15px; }
  .cfxd-frame-toolbar > span:last-child { font-size: 7px; }
  .cfxd-capability-strip > div { font-size: 10px; }
  .cfxd-section-block { padding-block: 48px; }
  .cfxd-section-heading { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 24px; }
  .cfxd-section-heading > p { max-width: none; }
  .cfxd-workflow-grid { grid-template-columns: 1fr; }
  .cfxd-workflow-card { display: grid; grid-template-columns: 35px 1fr; gap: 5px 10px; padding: 20px; }
  .cfxd-step-number { grid-row: 1 / 3; margin-bottom: 0; padding-top: 2px; }
  .cfxd-modern .cfxd-workflow-card h3 { margin: 0; }
  .cfxd-workflow-card p { grid-column: 2; }
  .cfxd-learn-section { padding-block: 45px; }
  .cfxd-learn-grid, .cfxd-news-grid { grid-template-columns: 1fr; gap: 25px; }
  .cfxd-modern .cfxd-bottom-cta { padding: 25px 20px; margin-bottom: 48px; }
  .cfxd-modern #content > .wrap { width: calc(100% - 36px); padding-block: 38px 48px; }
  .cfxd-modern .entry-content .cfxd-card, .cfxd-modern .entry-content .cfxd-section, .cfxd-modern .entry-content .cfxd-download-min__card { padding: 20px; }
  .cfxd-modern .entry-content .cfxd-product__intro, .cfxd-modern .entry-content .cfxd-docs__intro, .cfxd-modern .entry-content .cfxd-download-min__intro { font-size: 15px; }
  .cfxd-modern .entry-content .cfxd-table { min-width: 610px; }
  .cfxd-footer-grid { gap: 27px 18px; }
  .cfxd-footer-grid > div:first-child { grid-column: 1 / -1; }
  .cfxd-footer-bottom { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .cfxd-modern * { transition: none !important; scroll-behavior: auto !important; } }
