/*
 Theme Name:   MarketDesk Child V3
 Theme URI:    https://www.marketdesk.com
 Description:  MarketDesk Landing — institutional fintech redesign (Claude Design handoff, 2026-04). Faithful port of src/*.jsx, Variant A. Ports v1 site-wide features (CPT, shortcodes, NextAuth, floating contact). Inner pages continue to render via Divi Builder.
 Author:       MarketDesk
 Author URI:   https://www.marketdesk.com
 Template:     Market Desk
 Version:      3.1.3
 Text Domain:  marketdesk-child-v3
*/

/* ==========================================================================
   BASE RESET + TYPOGRAPHY (matches MarketDesk Landing.html shell)
   ========================================================================== */

.md-v3 *,
.md-v3 *::before,
.md-v3 *::after { box-sizing: border-box; }

.md-v3 {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0F172A;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01' on, 'cv11' on;
    font-size: 16px;
    line-height: 1.5;
}

.md-v3 a { text-decoration: none; }
.md-v3 h1, .md-v3 h2, .md-v3 h3, .md-v3 h4 { margin: 0; font-family: inherit; }
.md-v3 button { font-family: inherit; }
.md-v3 p { margin: 0; }
.md-v3 ::selection { background: #3B82F6; color: #fff; }
.md-v3 img { max-width: 100%; height: auto; }

/* Design tokens (for classes that want them; inline styles use literals) */
.md-v3 {
    --md-navy:       #0B1E3D;
    --md-navyMid:    #1E3A5F;
    --md-navyDeep:   #060E24;
    --md-steel:      #3B82F6;
    --md-steelSoft:  #60A5FA;
    --md-text:       #0F172A;
    --md-textMuted:  #475569;
    --md-textLight:  #94A3B8;
    --md-border:     #E2E8F0;
    --md-borderSoft: #EEF2F7;
    --md-bg:         #FFFFFF;
    --md-bgSoft:     #F8FAFC;
    --md-bgTint:     #EEF4FB;
    --md-success:    #10B981;
    --md-danger:     #EF4444;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.md-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #EEF2F7;
}
.md-nav__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.md-nav__links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.md-nav__item {
    position: relative;
}
.md-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0F172A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.005em;
    padding: 10px 0; /* bigger hover target so dropdown doesn't flicker */
    transition: color .15s;
}
.md-nav__link:hover,
.md-nav__link:focus { color: #0B1E3D; outline: none; }
.md-nav__caret {
    color: #94A3B8;
    transition: transform .15s, color .15s;
}
.md-nav__item:hover .md-nav__caret,
.md-nav__item:focus-within .md-nav__caret {
    color: #0B1E3D;
    transform: rotate(180deg);
}

/* Dropdown panel */
.md-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 16px 40px -12px rgba(11, 30, 61, 0.15), 0 4px 12px -4px rgba(11, 30, 61, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 51;
    /* Invisible bridge so hover doesn't break between the link and dropdown */
}
.md-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.md-nav__item:hover .md-nav__dropdown,
.md-nav__item:focus-within .md-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.md-nav__dropdown-inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
}
.md-nav__dropdown-link {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    color: #0F172A;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.md-nav__dropdown-link:hover,
.md-nav__dropdown-link:focus {
    background: #F1F5FB;
    color: #0B1E3D;
    outline: none;
}
.md-nav__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.md-nav__signin {
    color: #0F172A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.md-nav__cta {
    background: #0B1E3D;
    color: #fff;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.005em;
    box-shadow: 0 1px 2px rgba(11, 30, 61, 0.08);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .md-nav__links { display: none; }
    .md-nav__actions .md-nav__signin { display: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.md-footer {
    background: #060E24;
    color: #94A3B8;
    padding: 56px 28px 24px;
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
}
.md-footer__inner { max-width: 1240px; margin: 0 auto; }

/* Top row: logo + small tagline */
.md-footer__top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1E293B;
    flex-wrap: wrap;
}
.md-footer__tagline {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* 4-column link grid */
.md-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 44px 0 40px;
}
.md-footer__col-head {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #CBD5E1;
    margin-bottom: 16px;
}
.md-footer__link {
    display: block;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.95;
    text-decoration: none;
    transition: color .15s;
}
.md-footer__link:hover { color: #60A5FA; }

/* Bottom bar */
.md-footer__bottom {
    border-top: 1px solid #1E293B;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    flex-wrap: wrap;
}
.md-footer__addr-inline { color: #64748B; }

@media (max-width: 900px) {
    .md-footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .md-footer__bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
    .md-footer__cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HERO A
   ========================================================================== */

.md-hero-a {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(59,130,246,0.10), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(59,130,246,0.06), transparent 60%),
        linear-gradient(180deg, #FBFCFE 0%, #F6F9FD 100%);
    border-bottom: 1px solid #EEF2F7;
    padding: 72px 28px 88px;
    position: relative;
    overflow: hidden;
}
.md-hero-a__grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(#E2E8F0 1px, transparent 1px),
        linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4), transparent 70%);
    pointer-events: none;
}
.md-hero-a__inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}
.md-hero-a__row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.md-hero-a__h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-hero-a__h1 .md-grad {
    background: linear-gradient(90deg, #1E3A5F 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.md-hero-a__sub {
    margin: 24px 0 32px;
    font-size: 18px;
    line-height: 1.55;
    color: #475569;
    max-width: 480px;
}
.md-hero-a__ctas {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.md-btn-primary {
    background: #0B1E3D;
    color: #fff;
    padding: 13px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.005em;
    box-shadow: 0 2px 4px rgba(11,30,61,0.1);
    display: inline-block;
}
.md-btn-ghost {
    color: #0B1E3D;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.md-hero-a__stats {
    margin-top: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    color: #475569;
    font-size: 12.5px;
    flex-wrap: wrap;
}
.md-hero-a__stats .sep { color: #E2E8F0; }

@media (max-width: 900px) {
    .md-hero-a { padding: 56px 24px 64px; }
    .md-hero-a__row { grid-template-columns: 1fr; gap: 40px; }
    .md-hero-a__h1 { font-size: 44px; }
}

/* ==========================================================================
   STACKED PRODUCTS (hero visual)
   ========================================================================== */

.md-stack {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #1a2d4e;
    height: 460px;
    box-shadow: 0 30px 80px -20px rgba(11,30,61,0.35);
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background:
        radial-gradient(900px 500px at 70% 30%, rgba(59,130,246,0.15), transparent 60%),
        radial-gradient(600px 400px at 20% 80%, rgba(59,130,246,0.08), transparent 60%),
        linear-gradient(180deg, #0A1A33 0%, #060E24 100%);
}
.md-hero-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 5;
    font-size: 10px;
    color: #94A3B8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}
.md-hero-topbar .dot-sep { color: #334155; padding: 0 4px; }
.md-hero-botbar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: linear-gradient(0deg, rgba(6,14,36,0.85), transparent);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10.5px;
    z-index: 3;
    color: #94A3B8;
    flex-wrap: wrap;
}
.md-hero-botbar .div { color: rgba(255,255,255,0.15); }
.md-hero-botbar .accent { color: #A5C4FC; }

.md-stack__deck {
    position: absolute;
    inset: 36px 0 36px 0;
}
.md-stack__card {
    position: absolute;
    width: 340px;
    height: 220px;
    background: #0A1A33;
    border: 1px solid #1E3A62;
    border-radius: 10px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(96,165,250,0.1);
    overflow: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
}
.md-stack__card--front {
    box-shadow: 0 40px 80px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(96,165,250,0.2);
}
.md-stack__card-head {
    padding: 8px 12px;
    border-bottom: 1px solid #1a2d4e;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
}
.md-stack__card-head .dot {
    width: 6px; height: 6px; border-radius: 50%;
}
.md-stack__card-head .title {
    font-size: 10px;
    color: #94A3B8;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.md-stack__card-body {
    padding: 12px;
    font-size: 10px;
    color: #DBEAFE;
}
.md-stack__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(96,165,250,0.1);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
}
.md-stack__row span:first-child { color: #94A3B8; }

@media (max-width: 900px) {
    .md-stack { height: 380px; }
    .md-stack__card { width: 280px; height: 190px; }
}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */

.md-section {
    padding: 96px 28px;
}
.md-section > .md-container {
    max-width: 1240px;
    margin: 0 auto;
}
.md-section--white { background: #fff; }
.md-section--soft { background: #F8FAFC; }
.md-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3B82F6;
}
.md-eyebrow--on-dark { color: #60A5FA; }

/* ==========================================================================
   SOLUTIONS GRID
   ========================================================================== */

.md-solutions__intro { max-width: 720px; margin-bottom: 56px; }
.md-solutions__h2 {
    margin: 12px 0 16px !important;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-solutions__lede {
    color: #475569;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
}
.md-solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.md-solutions__card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 24px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}
.md-solutions__card:hover {
    border-color: #3B82F6;
    box-shadow: 0 12px 28px -12px rgba(59,130,246,0.18);
}
.md-solutions__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF4FB, #E0ECFB);
    color: #0B1E3D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.md-solutions__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.md-solutions__title {
    margin: 0 !important;
    font-size: 17px;
    font-weight: 600;
    color: #0B1E3D;
    letter-spacing: -0.01em;
}
.md-solutions__tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3B82F6;
    background: #EEF4FB;
    padding: 3px 7px;
    border-radius: 4px;
}
.md-solutions__desc {
    margin: 0 !important;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}
.md-solutions__more {
    color: #3B82F6;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .md-solutions__grid { grid-template-columns: 1fr; }
    .md-solutions__h2 { font-size: 32px; }
}

/* ==========================================================================
   BLUESKY SECTION + DIAGRAM
   ========================================================================== */

.md-bluesky {
    background: linear-gradient(180deg, #0B1E3D 0%, #060E24 100%);
    padding: 120px 28px;
    position: relative;
    overflow: hidden;
}
.md-bluesky__dots {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.7), transparent 70%);
    pointer-events: none;
}
.md-bluesky__inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}
.md-bluesky__row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}
.md-bluesky__h2 {
    margin: 14px 0 20px !important;
    font-size: 48px;
    line-height: 1.05;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.md-bluesky__h2 .md-grad {
    background: linear-gradient(90deg, #60A5FA, #A5C4FC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.md-bluesky__lede {
    color: #94A3B8;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}
.md-bluesky__feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 32px;
}
.md-bluesky__feat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #CBD5E1;
    font-size: 14px;
}
.md-bluesky__check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    flex-shrink: 0;
}
.md-bluesky__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 24px;
}
.md-bluesky__stat-n {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.md-bluesky__stat-l {
    color: #64748B;
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.md-diagram {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(11,30,61,0));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.md-diagram__label {
    font-size: 10px;
    color: #60A5FA;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.md-diagram__row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.md-diagram__node {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: #E2E8F0;
    font-size: 12px;
    backdrop-filter: blur(4px);
}
.md-diagram__node-ttl { font-weight: 600; }
.md-diagram__node-sub { font-size: 10.5px; color: #64748B; margin-top: 3px; }
.md-diagram__arrow { text-align: center; color: #475569; font-size: 14px; margin: 4px 0; }
.md-diagram__core {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border: 1px solid rgba(96,165,250,0.4);
    border-radius: 12px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 0 40px -10px rgba(59,130,246,0.5);
}
.md-diagram__core-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.md-diagram__core-ttl { font-size: 14px; font-weight: 600; }
.md-diagram__core-sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.md-diagram__ai-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.md-diagram__pills { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.md-diagram__pill {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.25);
    border-radius: 3px;
    color: #BFDBFE;
}

@media (max-width: 900px) {
    .md-bluesky { padding: 72px 24px; }
    .md-bluesky__row { grid-template-columns: 1fr; gap: 48px; }
    .md-bluesky__h2 { font-size: 32px; }
    .md-bluesky__stats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.md-how__head { text-align: center; margin-bottom: 64px; }
.md-how__h2 {
    margin: 12px 0 0 !important;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.md-how__line {
    position: absolute;
    top: 28px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, #E2E8F0, #3B82F6, #E2E8F0);
}
.md-how__step { background: #fff; position: relative; z-index: 1; }
.md-how__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(11,30,61,0.04);
    font-family: ui-monospace, Menlo, monospace;
}
.md-how__ttl {
    margin: 20px 0 10px !important;
    font-size: 22px;
    font-weight: 600;
    color: #0B1E3D;
    letter-spacing: -0.01em;
}
.md-how__desc {
    margin: 0 !important;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 340px;
}

@media (max-width: 900px) {
    .md-how__grid { grid-template-columns: 1fr; gap: 32px; }
    .md-how__line { display: none; }
    .md-how__h2 { font-size: 30px; }
}

/* ==========================================================================
   LIVE DEMO (tabbed)
   ========================================================================== */

.md-demo__head { text-align: center; margin-bottom: 40px; }
.md-demo__h2 {
    margin: 12px 0 16px !important;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-demo__lede {
    color: #475569;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 auto !important;
    max-width: 640px;
}
.md-demo__tabwrap { text-align: center; margin-bottom: 20px; }
.md-demo__tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}
.md-demo__tab {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: #475569;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: -0.005em;
    font-family: inherit;
}
.md-demo__tab.is-active {
    background: #0B1E3D;
    color: #fff;
}
.md-demo__desc {
    margin: 14px auto 0 !important;
    color: #475569;
    font-size: 13.5px;
    max-width: 520px;
}
.md-demo__panel { display: none; }
.md-demo__panel.is-active { display: block; }

@media (max-width: 900px) {
    .md-demo__h2 { font-size: 30px; }
    .md-demo__tabs { flex-wrap: wrap; }
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.md-cta-final {
    padding: 96px 28px;
    border-top: 1px solid #EEF2F7;
    background: #fff;
}
.md-cta-final__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.md-cta-final__h2 {
    margin: 14px 0 16px !important;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-cta-final__lede {
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto 32px !important;
    max-width: 620px;
}
.md-cta-final__ctas {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.md-btn-final-primary {
    background: #0B1E3D;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.005em;
    display: inline-block;
}
.md-btn-final-outline {
    background: transparent;
    color: #0B1E3D;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.005em;
    border: 1px solid #E2E8F0;
    display: inline-block;
}

@media (max-width: 900px) {
    .md-cta-final__h2 { font-size: 32px; }
}

/* ==========================================================================
   MDVIEW mockup
   ========================================================================== */

.md-mdview {
    background: #0A1A33;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a2d4e;
    box-shadow: 0 30px 60px -20px rgba(11,30,61,0.4);
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans', sans-serif;
    height: 540px;
}
.md-mdview__topbar {
    height: 40px;
    background: #1E88E5;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 22px;
    color: #E0F2FE;
    font-size: 12px;
    flex-shrink: 0;
}
.md-mdview__topbar img { height: 22px; width: auto; display: block; }
.md-mdview__topbar-item { display: inline-flex; align-items: center; gap: 5px; }
.md-mdview__topbar-ver { margin-left: auto; font-size: 11px; opacity: 0.9; }
.md-mdview__topbar-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff;
}
.md-mdview__crumb {
    padding: 10px 16px 4px;
    background: #0F2740;
    border-bottom: 1px solid #1a2d4e;
}
.md-mdview__crumb-path { font-size: 10.5px; color: #94A3B8; margin-bottom: 4px; }
.md-mdview__crumb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-mdview__title { color: #fff; font-size: 15px; font-weight: 600; }
.md-mdview__pill {
    padding: 2px 8px;
    border: 1px solid #334155;
    color: #94A3B8;
    border-radius: 3px;
    font-size: 9.5px;
    letter-spacing: 0.03em;
}
.md-mdview__pill--ok {
    padding: 2px 8px;
    background: rgba(16,185,129,0.15);
    color: #10B981;
    border-radius: 3px;
    font-size: 9.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.md-mdview__pill--ok .dot {
    width: 5px; height: 5px; border-radius: 50%; background: #10B981;
}
.md-mdview__pill--alt {
    padding: 3px 10px;
    background: #1E293B;
    color: #CBD5E1;
    border-radius: 3px;
    font-size: 10.5px;
}
.md-mdview__star { margin-left: auto; color: #D4920B; font-size: 14px; }
.md-mdview__tabs {
    display: flex;
    gap: 18px;
    padding: 0 16px;
    background: #0A1A33;
    border-bottom: 1px solid #1a2d4e;
    font-size: 11.5px;
    flex-shrink: 0;
}
.md-mdview__tab--active {
    color: #60A5FA;
    border-bottom: 2px solid #60A5FA;
    padding: 8px 0;
}
.md-mdview__tab {
    color: #94A3B8;
    padding: 8px 0;
}
.md-mdview__ticker {
    display: flex;
    padding: 6px 0;
    background: #0A1A33;
    border-bottom: 1px solid #1a2d4e;
    font-size: 10px;
    flex-shrink: 0;
}
.md-mdview__ticker-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #CBD5E1;
    padding: 0 8px;
    border-right: 1px solid #1a2d4e;
    white-space: nowrap;
    overflow: hidden;
}
.md-mdview__ticker-cell:last-child { border-right: none; }
.md-mdview__ticker-cell .sym { color: #fff; font-weight: 500; }
.md-mdview__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    min-height: 0;
}
.md-mdview__chart {
    padding: 12px;
    border-right: 1px solid #1a2d4e;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.md-mdview__chart-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.md-mdview__chart-sym {
    font-size: 10px;
    color: #60A5FA;
    letter-spacing: 0.05em;
}
.md-mdview__live-tag {
    background: #10B981;
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 4px;
    font-size: 8.5px;
    font-weight: 600;
}
.md-mdview__range {
    display: flex;
    gap: 4px;
    font-size: 10px;
}
.md-mdview__range span {
    padding: 1px 6px;
    border-radius: 3px;
    color: #64748B;
}
.md-mdview__range span.is-active {
    background: #1E88E5;
    color: #fff;
}
.md-mdview__legend {
    display: flex;
    gap: 12px;
    font-size: 9.5px;
    color: #CBD5E1;
    margin-bottom: 4px;
}
.md-mdview__legend .ask { color: #60A5FA; }
.md-mdview__legend .bid { color: #10B981; }
.md-mdview__svg {
    width: 100%;
    flex: 1;
    min-height: 0;
}
.md-mdview__xax {
    font-size: 9px;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    padding-top: 4px;
}
.md-mdview__cards {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
}
.md-mdview__pair {
    border-radius: 6px;
    padding: 8px 10px;
    background: rgba(11,30,61,0.4);
}
.md-mdview__pair--up { border: 1px solid rgba(16,185,129,0.45); }
.md-mdview__pair--dn { border: 1px solid rgba(239,68,68,0.45); }
.md-mdview__pair-sym {
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
    margin-bottom: 4px;
}
.md-mdview__pair-hdr {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #64748B;
    margin-bottom: 1px;
}
.md-mdview__pair-vals {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 600;
}
.md-mdview__pair--up .md-mdview__pair-vals { color: #10B981; }
.md-mdview__pair--dn .md-mdview__pair-vals { color: #EF4444; }
.md-mdview__ql {
    background: #0E254A;
    padding: 6px 12px;
    font-size: 10px;
    color: #D4920B;
    border-top: 1px solid #1a2d4e;
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}
.md-mdview__ql span:last-child { margin-left: auto; }

/* ==========================================================================
   BSADMIN mockup
   ========================================================================== */

.md-bsadmin {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 30px 60px -20px rgba(11,30,61,0.2);
    height: 540px;
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans', sans-serif;
}
.md-bsadmin__topbar {
    height: 40px;
    background: #0A1A33;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #fff;
    font-size: 12.5px;
    flex-shrink: 0;
    gap: 10px;
}
.md-bsadmin__topbar img { height: 20px; width: auto; display: block; }
.md-bsadmin__topbar-ver { margin-left: auto; font-size: 11px; opacity: 0.7; }
.md-bsadmin__topbar-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin-left: 10px;
}
.md-bsadmin__tabs {
    display: flex;
    padding: 0 18px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 11px;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.md-bsadmin__tab {
    padding: 10px 14px;
    color: #6B7280;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.md-bsadmin__tab--active {
    color: #1E88E5;
    font-weight: 600;
    border-bottom: 2px solid #1E88E5;
}
.md-bsadmin__body {
    flex: 1;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 0;
}
.md-bsadmin__side {
    border-right: 1px solid #E5E7EB;
    padding: 10px;
    overflow: hidden;
    font-size: 11px;
    background: #fff;
}
.md-bsadmin__search {
    padding: 6px 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    color: #9CA3AF;
    margin-bottom: 8px;
    font-size: 10.5px;
}
.md-bsadmin__tree { display: flex; flex-direction: column; gap: 2px; color: #374151; }
.md-bsadmin__tree-item { padding: 3px 0; }
.md-bsadmin__tree-item--branch { color: #2563EB; }
.md-bsadmin__tree-item--dim { padding-left: 18px; color: #9CA3AF; font-size: 10px; }
.md-bsadmin__tree-item--subbranch { padding-left: 18px; color: #2563EB; display: flex; justify-content: space-between; }
.md-bsadmin__tree-count { color: #6B7280; }
.md-bsadmin__pub {
    padding: 2px 0 2px 34px;
    color: #D97706;
}
.md-bsadmin__pub--active {
    background: #FEF3C7;
}
.md-bsadmin__form {
    padding: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.md-bsadmin__form-ttl { color: #111827; font-size: 14px; font-weight: 600; }
.md-bsadmin__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.md-bsadmin__field-label { font-size: 10px; color: #6B7280; margin-bottom: 3px; }
.md-bsadmin__field-val {
    padding: 6px 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 11px;
    color: #111827;
}
.md-bsadmin__field-val--dim { color: #9CA3AF; }
.md-bsadmin__sub-ttl { color: #111827; font-size: 13px; font-weight: 600; margin-top: 4px; }
.md-bsadmin__hint { font-size: 10px; color: #1E88E5; }
.md-bsadmin__matrix-wrap {
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    flex: 1;
    min-height: 0;
}
.md-bsadmin__matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}
.md-bsadmin__matrix th {
    padding: 6px 4px;
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.03em;
}
.md-bsadmin__matrix th.corner {
    background: #0F2740;
    color: #fff;
    border: 1px solid #1a2d4e;
    width: 90px;
}
.md-bsadmin__matrix th.col--on {
    background: #10B981;
    color: #fff;
    border: 1px solid #059669;
}
.md-bsadmin__matrix th.col--off {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}
.md-bsadmin__matrix td.row-label {
    background: #10B981;
    color: #fff;
    padding: 6px;
    font-weight: 600;
    font-size: 9.5px;
    border: 1px solid #059669;
}
.md-bsadmin__matrix td.cell {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    height: 22px;
}
.md-bsadmin__actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.md-bsadmin__btn {
    padding: 6px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 11px;
    color: #374151;
}
.md-bsadmin__btn--primary {
    background: #1E88E5;
    color: #fff;
    border-color: #1E88E5;
}
.md-bsadmin__btn--danger {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

/* ==========================================================================
   AI TERMINAL
   ========================================================================== */

.md-ai {
    background: #0A0F1E;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(11,30,61,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
    border: 1px solid #1a2236;
    overflow: hidden;
    height: 540px;
    display: flex;
    flex-direction: column;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.md-ai__head {
    padding: 10px 14px;
    border-bottom: 1px solid #1a2236;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #0E1628, #0A0F1E);
    flex-shrink: 0;
}
.md-ai__dot { width: 10px; height: 10px; border-radius: 50%; }
.md-ai__dot--r { background: #FF5F56; }
.md-ai__dot--y { background: #FFBD2E; }
.md-ai__dot--g { background: #27C93F; }
.md-ai__title { margin-left: 10px; font-size: 11px; color: #64748B; }
.md-ai__model { margin-left: auto; font-size: 10px; color: #60A5FA; }
.md-ai__body {
    flex: 1;
    padding: 18px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 12.5px;
}
.md-ai__msg { display: flex; gap: 10px; }
.md-ai__avatar-u {
    width: 22px; height: 22px; border-radius: 6px;
    background: #1E293B;
    display: inline-flex; align-items: center; justify-content: center;
    color: #94A3B8; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.md-ai__avatar-ai {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.md-ai__text-u { color: #CBD5E1; }
.md-ai__text-ai { flex: 1; color: #E2E8F0; line-height: 1.6; }
.md-ai__accent { color: #60A5FA; }
.md-ai__table {
    margin-top: 10px;
    background: #060B19;
    border: 1px solid #1a2236;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
}
.md-ai__table-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.6fr;
    padding: 4px 0;
    color: #CBD5E1;
}
.md-ai__table-row + .md-ai__table-row { border-top: 1px solid #101726; }
.md-ai__table-row .inst { color: #E2E8F0; }
.md-ai__table-row .venue { color: #94A3B8; }
.md-ai__table-row .sigma { text-align: right; font-weight: 600; }
.md-ai__ctx { margin-top: 10px; color: #94A3B8; font-size: 11.5px; }
.md-ai__ctx-link { color: #60A5FA; text-decoration: underline; cursor: pointer; }
.md-ai__input {
    border-top: 1px solid #1a2236;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #070B17;
    flex-shrink: 0;
}
.md-ai__prompt { color: #3B82F6; font-size: 14px; }
.md-ai__placeholder { color: #CBD5E1; font-size: 12.5px; flex: 1; }
.md-ai__kbd {
    color: #64748B;
    font-size: 10px;
    border: 1px solid #1E293B;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE PRODUCT MOCKUPS
   ========================================================================== */

@media (max-width: 900px) {
    .md-mdview,
    .md-bsadmin,
    .md-ai { height: 460px; }
    .md-mdview__body { grid-template-columns: 1fr; }
    .md-mdview__chart { border-right: none; border-bottom: 1px solid #1a2d4e; }
    .md-bsadmin__body { grid-template-columns: 1fr; }
    .md-bsadmin__side { display: none; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.md-v3 [data-md-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.md-v3 [data-md-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CONTACT PAGE (page-contact.php)
   Built on the v3 design system. Scoped under .md-contact.
   ========================================================================== */

.md-contact__hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(59,130,246,0.10), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(59,130,246,0.06), transparent 60%),
        linear-gradient(180deg, #FBFCFE 0%, #F6F9FD 100%);
    border-bottom: 1px solid #EEF2F7;
    padding: 72px 28px 72px;
    position: relative;
    overflow: hidden;
}
.md-contact__hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(#E2E8F0 1px, transparent 1px),
        linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4), transparent 70%);
    pointer-events: none;
}
.md-contact__hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}
.md-contact__h1 {
    margin: 12px 0 16px !important;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-contact__lede {
    color: #475569;
    font-size: 18px;
    line-height: 1.55;
    margin: 0 auto !important;
    max-width: 620px;
}

/* Body grid */
.md-contact__body { padding: 72px 28px; }
.md-contact__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Form card (left) */
.md-contact__form-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 48px -24px rgba(11,30,61,0.12);
}
.md-contact__form-h2 {
    margin: 12px 0 12px !important;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-contact__form-lede {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 24px !important;
}

/* Info card (right) */
.md-contact__info-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 48px -24px rgba(11,30,61,0.12);
}
.md-contact__info-h2 {
    margin: 12px 0 24px !important;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #0B1E3D;
    font-weight: 600;
}
.md-contact__info-row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #EEF2F7;
}
.md-contact__info-row:first-of-type {
    border-top: none;
    padding-top: 4px;
}
.md-contact__info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF4FB, #E0ECFB);
    color: #0B1E3D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.md-contact__info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 4px;
}
.md-contact__info-value {
    color: #0F172A;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
    display: inline-block;
}
a.md-contact__info-value:hover { color: #3B82F6; }
.md-contact__info-value--dim { color: #94A3B8; font-style: italic; }

/* ==========================================================================
   CF7 form styling — scoped to .md-contact__form
   Actual CF7 6.1 render (observed on this site):
     <form class="wpcf7-form">
       <fieldset class="hidden-fields-container">... CF7 nonces ...</fieldset>
       <div><input type="hidden" name="your-page"></div>
       <div><p><span class="wpcf7-form-control-wrap"><input ...></span></p></div> × 4
       <p>...hCaptcha...<input type="submit"></p>
       <div class="wpcf7-response-output"></div>
     </form>
   ========================================================================== */

.md-contact__form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}
/* Reset all CF7 <p> margins (Divi + browser defaults add 1em bottom). */
.md-contact__form .wpcf7-form p {
    margin: 0;
    padding: 0;
}
.md-contact__form .wpcf7-form > div {
    margin: 0;
}
/* Hide CF7's fieldset of nonce/version hidden inputs. */
.md-contact__form fieldset.hidden-fields-container {
    display: none;
}
/* Strip any other fieldset chrome, belt-and-suspenders. */
.md-contact__form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
/* Hide the wrapper div whose only child is a hidden input (our [hidden your-page]). */
.md-contact__form .wpcf7-form > div:has(> input[type="hidden"]) {
    display: none;
}
.md-contact__form .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}
.md-contact__form input[type="text"],
.md-contact__form input[type="email"],
.md-contact__form input[type="tel"],
.md-contact__form input[type="url"],
.md-contact__form textarea {
    width: 100%;
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 13px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.md-contact__form textarea {
    min-height: 140px;
    resize: vertical;
}
.md-contact__form input::placeholder,
.md-contact__form textarea::placeholder {
    color: #94A3B8;
}
.md-contact__form input:focus,
.md-contact__form textarea:focus {
    background: #fff;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.md-contact__form input[aria-invalid="true"],
.md-contact__form textarea[aria-invalid="true"] {
    border-color: #EF4444;
}

/* Submit button (inside a <p> that may also contain hCaptcha + hidden inputs) */
.md-contact__form .wpcf7-form > p:has(input[type="submit"]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 4px;
}
.md-contact__form .h-captcha {
    display: block;
}
.md-contact__form .wpcf7-submit,
.md-contact__form input[type="submit"] {
    background: #0B1E3D;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 4px rgba(11,30,61,0.1);
    margin-top: 0;
    display: inline-block;
    width: auto;
}
.md-contact__form .wpcf7-submit:hover,
.md-contact__form input[type="submit"]:hover {
    background: #0F2A52;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11,30,61,0.15);
}

/* CF7 response / validation messages */
.md-contact__form .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 13.5px !important;
    background: #F8FAFC;
    color: #0F172A;
}
.md-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.md-contact__form .wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: rgba(239,68,68,0.35) !important;
    background: rgba(239,68,68,0.05);
    color: #B91C1C;
}
.md-contact__form .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(16,185,129,0.35) !important;
    background: rgba(16,185,129,0.05);
    color: #047857;
}
.md-contact__form .wpcf7-not-valid-tip {
    color: #B91C1C;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.md-contact__form .wpcf7-spinner {
    background-color: #3B82F6;
}

/* Responsive */
@media (max-width: 900px) {
    .md-contact__hero { padding: 56px 24px; }
    .md-contact__h1 { font-size: 38px; }
    .md-contact__body { padding: 48px 20px; }
    .md-contact__grid { grid-template-columns: 1fr; gap: 20px; }
    .md-contact__form-card,
    .md-contact__info-card { padding: 24px; }
    .md-contact__form-h2 { font-size: 24px; }
}
