/* ============================================
   ePerfectStore.com — Design System v2
   Fraunces / DM Mono / Instrument Sans
   ============================================ */

:root {
    /* Primary palette */
    --ink:        #080C18;
    --ink-soft:   #0E1424;
    --blue:       #1A4ED8;
    --blue-light: #3B6EF5;
    --cyan:       #00C2FF;
    --warm:       #FF5C2B;
    --gold:       #F0B429;
    --white:      #FFFFFF;
    --off:        #F4F6FF;
    --green:      #22C55E;
    --red:        #DC2626;

    /* Transparency scale */
    --mid:    rgba(255,255,255,0.45);
    --dim:    rgba(255,255,255,0.18);
    --border: rgba(255,255,255,0.07);

    /* Legacy aliases */
    --black:        var(--ink);
    --black-soft:   var(--ink-soft);
    --black-card:   var(--ink-soft);
    --orange:       var(--warm);
    --orange-light: #FF7E4F;
    --orange-dark:  #D94A1A;
    --purple:       var(--blue);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--cyan); pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9998;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(0,194,255,0.4); pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, width 0.3s, height 0.3s;
}

/* ---- NAV ---- */
.ps-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8,12,24,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.ps-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 52px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps-logo {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.ps-logo em {
    color: var(--cyan);
    font-style: normal;
}

.ps-nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ps-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.ps-nav-links a:hover { color: var(--white); }

.ps-nav-links a.active {
    color: var(--cyan);
    font-weight: 600;
}

.ps-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-nav-cta .btn-ghost {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 9px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    transition: all 0.2s;
}

.ps-nav-cta .btn-ghost:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

/* Mobile nav */
.ps-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.ps-mobile-toggle svg { width: 24px; height: 24px; }

.ps-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ink);
    padding: 24px;
    flex-direction: column;
}

.ps-mobile-menu.open { display: flex; }

.ps-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.ps-mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--white);
}

.ps-mobile-menu-close svg { width: 24px; height: 24px; }

.ps-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-mobile-menu-links a {
    font-size: 18px;
    font-weight: 600;
    color: var(--mid);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.ps-mobile-menu-links a:hover { color: var(--white); }

.ps-mobile-menu-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 32px;
}

@media (max-width: 768px) {
    .ps-nav-links, .ps-nav-cta { display: none; }
    .ps-mobile-toggle { display: block; }
    .ps-nav-inner { padding: 0 24px; }
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--mid);
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-white:hover {
    background: var(--off);
    transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 52px; }
.section-dark { background: var(--ink-soft); }
.s-inner { max-width: 1180px; margin: 0 auto; }

.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

/* ---- SECTION HEADER SYSTEM ---- */
.s-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}

.s-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
}

.s-body {
    font-size: 17px;
    color: var(--mid);
    line-height: 1.7;
    font-weight: 400;
    max-width: 540px;
    margin-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 36px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--cyan);
}

/* ---- TYPOGRAPHY ---- */
.heading-xl {
    font-family: 'Fraunces', serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
}

.heading-lg {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.heading-md {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.heading-sm {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.text-lg { font-size: 18px; line-height: 1.7; }
.text-md { font-size: 16px; line-height: 1.6; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-xs { font-size: 12px; line-height: 1.5; }

.text-cyan { color: var(--cyan); }
.text-warm { color: var(--warm); }
.text-gold { color: var(--gold); }
.text-orange { color: var(--warm); }
.text-white { color: var(--white); }
.text-muted { color: var(--mid); }
.text-muted-light { color: var(--dim); }
.text-center { text-align: center; }

/* ---- TAGS ---- */
.tag {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
}

.tag-cyan {
    background: rgba(0,194,255,0.1);
    color: var(--cyan);
}

.tag-blue {
    background: rgba(26,78,216,0.1);
    color: var(--blue-light);
}

.tag-warm {
    background: rgba(255,92,43,0.1);
    color: var(--warm);
}

.tag-gold {
    background: rgba(240,180,41,0.1);
    color: var(--gold);
}

.tag-white {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Legacy aliases */
.tag-orange { background: rgba(255,92,43,0.1); color: var(--warm); }
.tag-orange-solid { background: var(--warm); color: var(--white); }

/* ---- CARDS ---- */
.card {
    background: rgba(255,255,255,0.025);
    border-radius: 14px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    background: rgba(26,78,216,0.08);
    border-color: rgba(255,255,255,0.12);
}

.card-dark {
    background: var(--ink-soft);
    border-radius: 14px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card-dark:hover {
    border-color: rgba(0,194,255,0.25);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.card-icon-cyan { background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.2); color: var(--cyan); }
.card-icon-warm { background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.2); color: var(--warm); }
.card-icon-gold { background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.2); color: var(--gold); }
.card-icon-blue { background: rgba(26,78,216,0.1); border: 1px solid rgba(26,78,216,0.2); color: var(--blue-light); }
.card-icon-green { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: var(--green); }

/* Legacy aliases */
.card-icon-orange { background: rgba(255,92,43,0.1); color: var(--warm); }
.card-icon-red { background: rgba(220,38,38,0.1); color: var(--red); }
.card-icon-purple { background: rgba(26,78,216,0.1); color: var(--blue); }
.card-icon-orange-dark { background: rgba(255,92,43,0.15); color: var(--warm); }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.grid-bordered {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.grid-bordered > * {
    background: var(--ink-soft);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-bordered { grid-template-columns: 1fr !important; }
}

@media (max-width: 960px) {
    .section { padding: 64px 24px; }
}

/* ---- PILLAR CARDS (new bordered style) ---- */
.pillar {
    background: var(--ink-soft);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.pillar:hover { background: rgba(26,78,216,0.08); }

.pillar-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.pa-gold { background: linear-gradient(90deg, var(--gold), var(--warm)); }
.pa-warm { background: linear-gradient(90deg, var(--warm), #F059FF); }
.pa-cyan { background: linear-gradient(90deg, var(--cyan), var(--blue-light)); }
.pa-green { background: linear-gradient(90deg, var(--green), var(--cyan)); }

.pillar-ico {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 28px;
}

.pi-gold { background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.2); }
.pi-warm { background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.2); }
.pi-cyan { background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.2); }
.pi-green { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }

.pillar-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 10px;
}

.pillar h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.pillar p { font-size: 14px; color: var(--mid); line-height: 1.7; }

.pillar-quote {
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,92,43,0.45);
    border-radius: 0 6px 6px 0;
}

.pillar-quote p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    line-height: 1.6;
}

/* Legacy pillar-card (link cards on homepage) */
.pillar-card {
    background: var(--ink-soft);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
}

.pillar-card .pillar-glow {
    position: absolute;
    top: -60%; right: -30%;
    width: 300px; height: 300px;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.35s;
    opacity: 0.5;
}

.pillar-card:hover .pillar-glow { opacity: 1; }

.pillar-card .pillar-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.pillar-card .pillar-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.pillar-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.pillar-card p {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pillar-card .pillar-cta {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.pillar-card:hover .pillar-cta { gap: 10px; }

/* ---- PAIN STRIP ---- */
.pain-strip {
    border-top: 1px solid rgba(255,92,43,0.15);
    border-bottom: 1px solid rgba(255,92,43,0.1);
    background: linear-gradient(135deg, rgba(255,92,43,0.05) 0%, rgba(26,78,216,0.06) 100%);
    padding: 52px;
    text-align: center;
}

.pain-strip p {
    font-family: 'Fraunces', serif;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.65);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

.pain-strip p strong { color: var(--white); font-style: normal; font-weight: 700; }
.pain-strip p em { color: rgba(255,92,43,0.9); font-style: normal; }

@media (max-width: 960px) {
    .pain-strip { padding: 48px 24px; }
}

/* ---- BIG QUOTE ---- */
.bq-section {
    padding: 80px 52px;
    text-align: center;
    background: linear-gradient(135deg, rgba(26,78,216,0.12) 0%, rgba(0,194,255,0.04) 100%);
    border-top: 1px solid rgba(26,78,216,0.2);
    border-bottom: 1px solid rgba(0,194,255,0.1);
}

.bq-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    max-width: 860px;
    margin: 0 auto;
    letter-spacing: -0.5px;
}

.bq-text .muted { color: rgba(255,255,255,0.5); }
.bq-text .bright { color: var(--white); font-weight: 700; font-style: normal; }

.bq-source {
    margin-top: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}

@media (max-width: 960px) {
    .bq-section { padding: 48px 24px; }
}

/* ---- STEPS GRID ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 56px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.step {
    background: var(--ink-soft);
    padding: 36px 28px;
    position: relative;
}

.step-n {
    font-family: 'Fraunces', serif;
    font-size: 72px;
    font-weight: 900;
    color: rgba(26,78,216,0.12);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.step p { font-size: 13px; color: var(--mid); line-height: 1.65; }

@media (max-width: 960px) {
    .steps { grid-template-columns: 1fr; }
}

/* ---- TICKER CARD ---- */
.ticker-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.ticker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ticker-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
}

.ticker-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--green);
}

.ticker-live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.5s infinite;
}

.ticker-body { padding: 8px 0; max-height: 340px; overflow: hidden; }

.ticker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background 0.2s;
    animation: tickerSlide 0.4s ease;
}

.ticker-row:hover { background: rgba(255,255,255,0.03); }

.t-type { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.t-price { background: var(--gold); }
.t-stock { background: var(--warm); }
.t-media { background: var(--cyan); }

.t-info { flex: 1; min-width: 0; }
.t-brand {
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-retailer {
    font-size: 11px; color: var(--dim);
    margin-top: 1px;
    font-family: 'DM Mono', monospace;
}

.t-value {
    font-family: 'DM Mono', monospace;
    font-size: 12px; font-weight: 500;
    text-align: right;
}
.t-value.up { color: var(--warm); }
.t-value.down { color: var(--green); }
.t-value.oos { color: var(--warm); }
.t-value.back { color: var(--green); }
.t-value.opp { color: var(--cyan); }

.t-time {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--dim);
    white-space: nowrap;
}

.ticker-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-count {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--dim);
}
.ticker-count strong { color: var(--cyan); }

/* ---- DEBRIEF CARD ---- */
.debrief-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.debrief-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.debrief-dot { width: 8px; height: 8px; border-radius: 50%; }
.dd-red { background: #FF5F56; }
.dd-yellow { background: #FFBD2E; }
.dd-green { background: #27C93F; }

.debrief-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim); margin-left: 6px;
}

.debrief-q {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(220,38,38,0.05);
}

.debrief-q span {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(220,38,38,0.6);
    display: block; margin-bottom: 6px;
}

.debrief-q p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.5; }

.debrief-answers { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.ans-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ans-label.without { color: rgba(255,255,255,0.2); }
.ans-label.with { color: var(--cyan); }

.ans-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: 8px;
}
.ans-row.without {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}
.ans-row.with {
    background: rgba(0,194,255,0.05);
    border: 1px solid rgba(0,194,255,0.15);
}
.ans-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.ans-row p { font-size: 13px; line-height: 1.5; }
.ans-row.without p { color: rgba(255,255,255,0.25); font-style: italic; }
.ans-row.with p { color: rgba(255,255,255,0.7); }
.ans-row.with p strong { color: var(--cyan); }

/* ---- AUDIENCE TABS ---- */
.aud-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2px;
    margin-top: 56px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.aud-nav { background: rgba(255,255,255,0.02); }

.aud-btn {
    display: block; width: 100%; text-align: left;
    padding: 20px 24px; border: none; background: transparent;
    cursor: pointer; border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    font-family: 'Instrument Sans', sans-serif;
}
.aud-btn:last-child { border-bottom: none; }
.aud-btn:hover { background: rgba(255,255,255,0.03); }
.aud-btn.active { background: rgba(26,78,216,0.15); border-left: 2px solid var(--cyan); }

.aud-btn-role {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim); display: block; margin-bottom: 4px;
}
.aud-btn.active .aud-btn-role { color: var(--cyan); }

.aud-btn-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5); }
.aud-btn.active .aud-btn-name { color: var(--white); }

.aud-panel { display: none; background: var(--ink-soft); padding: 48px; }
.aud-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.aud-pain h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.5px; margin-bottom: 14px;
}

.aud-kpi {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,92,43,0.8); margin-bottom: 10px;
}

.aud-pain p { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }

.sting-box {
    padding: 16px 18px;
    background: rgba(255,92,43,0.05);
    border-left: 3px solid rgba(255,92,43,0.4);
    border-radius: 0 8px 8px 0;
}
.sting-box p { font-size: 13px; color: rgba(255,255,255,0.45); font-style: italic; line-height: 1.6; }

.aud-fix h4 {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan); margin-bottom: 22px;
}

.fix-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }

.fix-n {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(26,78,216,0.3); border: 1px solid rgba(26,78,216,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0; color: var(--cyan); margin-top: 1px;
    font-family: 'DM Mono', monospace;
}

.fix-item p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }

@media (max-width: 960px) {
    .aud-grid { grid-template-columns: 1fr; }
    .aud-nav { display: flex; overflow-x: auto; }
    .aud-btn { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; min-width: 160px; }
    .aud-panel.active { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- HERO COMPONENTS ---- */
.hero-lines {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.hero-lines span {
    position: absolute; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,194,255,0.08) 40%, rgba(0,194,255,0.08) 60%, transparent 100%);
    animation: lineMove 8s ease-in-out infinite;
}
.hero-lines span:nth-child(1) { left: 15%; animation-delay: 0s; }
.hero-lines span:nth-child(2) { left: 35%; animation-delay: 1.5s; }
.hero-lines span:nth-child(3) { left: 55%; animation-delay: 3s; }
.hero-lines span:nth-child(4) { left: 75%; animation-delay: 4.5s; }
.hero-lines span:nth-child(5) { left: 90%; animation-delay: 6s; }

.hero-blob {
    position: absolute; right: -200px; top: 50%;
    transform: translateY(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,78,216,0.22) 0%, transparent 65%);
    pointer-events: none;
}

.hero-proof {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 24px; margin-bottom: 8px;
}

.hero-proof-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 400;
}

.proof-icon {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

.proof-check {
    background: rgba(0,194,255,0.15);
    border: 1px solid rgba(0,194,255,0.35);
    position: relative;
}

.proof-check::after {
    content: '';
    position: absolute;
    width: 5px; height: 8px;
    border-right: 1.5px solid var(--cyan);
    border-bottom: 1.5px solid var(--cyan);
    transform: rotate(45deg) translate(-1px, -1px);
}

.hero-oos-line {
    display: flex; align-items: flex-start; gap: 14px;
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(255,92,43,0.07);
    border: 1px solid rgba(255,92,43,0.2);
    border-radius: 10px;
}

.oos-bar {
    display: block; width: 3px; min-height: 100%;
    background: rgba(255,92,43,0.7);
    border-radius: 2px; flex-shrink: 0;
    align-self: stretch;
}

.hero-oos-line p {
    font-family: 'Fraunces', serif;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.hero-oos-line p em {
    font-style: italic; font-weight: 700;
    color: rgba(255,110,60,0.95);
}

/* ---- TENSION QUOTE ---- */
.tension-quote {
    margin-top: 32px; padding: 24px 28px;
    background: rgba(240,180,41,0.05);
    border: 1px solid rgba(240,180,41,0.15);
    border-radius: 10px;
}

.tension-quote p {
    font-family: 'Fraunces', serif;
    font-size: 18px; font-style: italic; font-weight: 300;
    color: rgba(255,255,255,0.7); line-height: 1.6;
}

.tension-quote footer {
    margin-top: 12px; font-size: 12px; color: var(--dim);
    font-family: 'DM Mono', monospace; letter-spacing: 0.06em;
    background: none; border: none; padding: 0; text-align: left;
}

/* ---- CTA SECTION ---- */
.cta-wrap {
    padding: 120px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.cta-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 500px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(26,78,216,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.cta-wrap h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    position: relative; z-index: 1;
}

.cta-wrap h2 em { font-style: italic; color: var(--cyan); }

.cta-wrap p {
    font-size: 17px; color: var(--mid);
    margin-top: 16px; margin-bottom: 44px;
    font-weight: 400;
    position: relative; z-index: 1;
}

.cta-wrap .btn-primary { position: relative; z-index: 1; }

@media (max-width: 960px) {
    .cta-wrap { padding: 80px 24px; }
}

/* ---- FOOTER ---- */
.ps-footer {
    padding: 40px 52px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--ink);
}

.ps-footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 700;
}

.ps-footer-brand em {
    color: var(--cyan);
    font-style: normal;
}

.ps-footer-links {
    display: flex;
    gap: 28px;
}

.ps-footer-links a {
    font-size: 13px;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
}

.ps-footer-links a:hover { color: var(--white); }

.ps-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
    .ps-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(16px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 700;
}

.modal-header p { font-size: 14px; color: var(--dim); margin-top: 4px; }

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dim);
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mid);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
    outline: none;
    color: var(--white);
    font-family: 'Instrument Sans', sans-serif;
}

.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: var(--dim); }

.form-textarea { resize: vertical; min-height: 100px; }

/* ---- STATS ---- */
.stat-block { text-align: center; }

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--mid);
}

/* ---- BLOG COMPONENTS ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.blog-card {
    background: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    text-decoration: none;
}

.blog-card:hover {
    border-color: rgba(0,194,255,0.3);
    transform: translateY(-4px);
}

.blog-card-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.blog-card-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-date {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--dim);
}

.blog-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.blog-card:hover .blog-card-cta { gap: 10px; }

/* Blog article body (light background for readability) */
.blog-article-body {
    background: var(--off);
    color: #1a1a2e;
    padding: 64px 24px;
}

.blog-article-body .container-sm {
    max-width: 720px;
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.blog-article-body p,
.blog-article-body li {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.blog-article-body a { color: var(--blue); }

/* Blog table of contents (collapsible) */
.blog-toc {
    margin: 32px 0 40px;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(8, 12, 24, 0.08);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(8, 12, 24, 0.04);
}

.blog-toc > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-toc > summary::-webkit-details-marker { display: none; }

.blog-toc > summary::after {
    content: "+";
    font-family: 'Fraunces', serif;
    font-size: 20px;
    line-height: 1;
    color: var(--blue);
    transition: transform 0.2s;
}

.blog-toc[open] > summary::after { content: "−"; }

.blog-toc > ol {
    margin: 0;
    padding: 4px 20px 20px 44px;
    counter-reset: toc-item;
    list-style: decimal;
}

.blog-toc > ol > li {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    padding: 4px 0;
}

.blog-toc > ol > li > a {
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.blog-toc > ol > li > a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.blog-article-body h2[id] {
    scroll-margin-top: 24px;
}

.breadcrumb {
    background: var(--ink-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 52px;
    margin-top: 64px;
}

.breadcrumb a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb span {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--dim);
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .breadcrumb { padding: 12px 24px; }
}

/* ---- ANIMATIONS ---- */
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineMove {
    0%, 100% { opacity: 0; transform: scaleY(0.3); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes tickerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- MISC ---- */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    max-width: 1200px;
}

.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 80px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    body { cursor: auto; }
    .cursor, .cursor-ring { display: none; }
}

/* ============ LANGUAGE SELECTOR ============ */
.ps-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 12px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}
.ps-lang button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.ps-lang button:hover {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.06);
}
.ps-lang button[aria-current="true"] {
    color: var(--cyan);
    background: rgba(0,194,255,0.10);
}
.ps-mobile-menu .ps-lang {
    margin: 0 0 16px 0;
    align-self: flex-start;
}
@media (max-width: 768px) {
    .ps-nav .ps-lang { display: none; }
}
