/*
Theme Name: Systems Success Pro
Theme URI: https://systemssuccesspro.com
Author: Jonathan Probert
Description: AI Operating Systems for Small Business Founders — personal brand site
Version: 1.0.0
Text Domain: ssp-website
*/

/* ============================================
   FONT — Proxon loaded from local install
   For WordPress deploy: copy PROXON Regular.ttf into fonts/ subfolder
   Source: C:/Users/jtpro/AppData/Local/Microsoft/Windows/Fonts/PROXON Regular.ttf
============================================ */
@font-face {
    font-family: 'Proxon';
    src: local('PROXON Regular'),
         local('Proxon Regular'),
         url('fonts/PROXON Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS
============================================ */
:root {
    --navy:       #112970;
    --navy-deep:  #0a1d52;
    --navy-dark:  #080e24;
    --blue:       #2A49A6;
    --orange:     #FF6103;
    --orange-dk:  #e05500;
    --white:      #FFFFFF;
    --off-white:  #F8F9FA;
    --card-bg:    #FFFFFF;
    --card-bdr:   #E5E8EF;
    --mid-gray:   #8892A4;
    --dark-text:  #1A1A2E;

    --font-head: 'Proxon', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --radius:    12px;
    --radius-lg: 20px;

    --shadow:       0 4px 24px rgba(17,41,112,0.07);
    --shadow-card:  0 2px 16px rgba(17,41,112,0.09);
    --shadow-hover: 0 8px 32px rgba(17,41,112,0.15);
    --shadow-orange:0 8px 24px rgba(255,97,3,0.35);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t:    0.3s;

    --max: 1200px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }

/* ============================================
   UTILITY
============================================ */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

.text--orange { color: var(--orange); }

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}

.eyebrow--pill {
    padding: 5px 14px;
    border: 1px solid rgba(255,97,3,0.4);
    border-radius: 40px;
    background: rgba(255,97,3,0.08);
}

.eyebrow--light { color: rgba(255,255,255,0.5); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-head h2 { color: var(--navy); }

.section-head--light h2,
.section-head--light p { color: var(--white); }

.section-sub {
    font-size: 1.05rem;
    color: var(--mid-gray);
    margin-top: 14px;
    line-height: 1.8;
}

.section-head--light .section-sub { color: rgba(255,255,255,0.6); }

/* Scroll-triggered fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t) var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--orange) !important;
    color: var(--white) !important;
    border-color: var(--orange) !important;
}
.btn--primary:hover {
    background: var(--orange-dk) !important;
    border-color: var(--orange-dk) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--sm  { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg  { padding: 18px 36px; font-size: 1.05rem; }

.btn__arr { transition: transform var(--t) var(--ease); }
.btn:hover .btn__arr { transform: translateX(5px); }

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background var(--t), box-shadow var(--t);
}
.nav.scrolled {
    background: var(--navy-deep);
    box-shadow: 0 2px 28px rgba(0,0,0,0.35);
}

.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__logo { flex-shrink: 0; margin-right: auto; }
.nav__logo img { height: 34px; width: auto; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--t);
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    display: block;
    transition: all var(--t);
}

.nav__mobile {
    display: none;
    flex-direction: column;
    gap: 24px;
    padding: 24px 32px 32px;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile.open { display: flex; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav__mobile a {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
}

/* Subtle bottom gradient to blend into next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(10,29,82,0.6));
    pointer-events: none;
}

.hero__grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__headline {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
    margin-top: 18px;
}

.hero__sub {
    font-size: clamp(0.97rem, 1.6vw, 1.12rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero__trust {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.04em;
}

.hero__photo-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero__photo-wrap img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    mask-image: linear-gradient(to left, black 55%, transparent 95%);
    -webkit-mask-image: linear-gradient(to left, black 55%, transparent 95%);
}

/* Orange accent line behind headline */
.hero__content { position: relative; }
.hero__accent {
    position: absolute;
    top: 0; left: -20px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--orange), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}
.hero__scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: 0.3; }
    50%      { opacity: 0.9; }
}

/* ============================================
   THE PROBLEM
============================================ */
.problem {
    background: var(--navy-deep);
    padding: 100px 0;
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid var(--orange);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: background var(--t), transform var(--t);
}
.problem__card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-5px);
}

.problem__icon { font-size: 2.2rem; margin-bottom: 18px; }

.problem__card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 12px;
}
.problem__card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}

/* ============================================
   SOLUTION — AIOS
============================================ */
.solution {
    background: var(--off-white);
    padding: 100px 0;
}

.solution__stack {
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.solution__row {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding: 32px 44px;
    border-bottom: 1px solid var(--card-bdr);
    transition: background var(--t);
}
.solution__row:last-child { border-bottom: none; }
.solution__row:hover { background: rgba(17,41,112,0.02); }

.solution__num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--orange);
    line-height: 1;
    min-width: 70px;
    padding-top: 6px;
    flex-shrink: 0;
}

.solution__body h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 8px;
}
.solution__body p {
    font-size: 0.92rem;
    color: var(--mid-gray);
    line-height: 1.75;
    max-width: 640px;
}

.solution__cta { text-align: center; margin-top: 48px; }

/* ============================================
   ABOUT
============================================ */
.about {
    background: var(--white);
    padding: 100px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.about__photo-wrap { position: relative; }
.about__photo-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-hover);
}

.about__badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--orange);
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: var(--shadow-orange);
}
.about__badge strong { font-size: 1rem; display: block; }

.about__content h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: 8px;
}

.about__lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.65;
}

.about__content p {
    font-size: 0.92rem;
    color: var(--mid-gray);
    line-height: 1.85;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 36px;
    padding: 28px 0;
    border-top: 1px solid var(--card-bdr);
    border-bottom: 1px solid var(--card-bdr);
    margin: 32px 0;
}
.about__stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--orange);
    letter-spacing: 0.04em;
    display: block;
}
.about__stat-label {
    font-size: 0.73rem;
    color: var(--mid-gray);
    font-weight: 500;
    line-height: 1.45;
    display: block;
    margin-top: 4px;
}

/* ============================================
   CONTENT PILLARS
============================================ */
.pillars {
    background: var(--off-white);
    padding: 100px 0;
}

.pillars__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.pillar__card {
    background: var(--white);
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius);
    padding: 32px 28px;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 240px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.pillar__card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--blue);
}

.pillar__icon { font-size: 2rem; margin-bottom: 16px; }

.pillar__card h3 {
    font-family: var(--font-head);
    font-size: 1.0rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--navy);
    margin-bottom: 10px;
}
.pillar__card p {
    font-size: 0.85rem;
    color: var(--mid-gray);
    line-height: 1.75;
}

.pillars__cta { text-align: center; margin-top: 48px; }

/* ============================================
   HOW IT WORKS
============================================ */
.hiw {
    background: var(--navy);
    padding: 100px 0;
}

.hiw__steps {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hiw__steps::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 36px;
    bottom: 36px;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.hiw__step {
    display: flex;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.hiw__step:last-child { border-bottom: none; }

.hiw__num {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--orange);
    background: var(--navy);
    border: 1px solid rgba(255,97,3,0.35);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hiw__body h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 10px;
    padding-top: 18px;
}
.hiw__body p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 12px;
}

.hiw__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255,97,3,0.1);
    border: 1px solid rgba(255,97,3,0.2);
    padding: 4px 12px;
    border-radius: 40px;
    letter-spacing: 0.05em;
}

.hiw__cta { text-align: center; margin-top: 56px; }

/* ============================================
   FAQ
============================================ */
.faq {
    background: var(--white);
    padding: 100px 0;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq__item { border-bottom: 1px solid var(--card-bdr); }
.faq__item:last-child { border-bottom: none; }

.faq__q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 32px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    transition: background var(--t);
}
.faq__q:hover { background: rgba(17,41,112,0.02) !important; color: var(--navy) !important; }

.faq__icon {
    font-size: 1.3rem;
    color: var(--orange);
    font-weight: 300;
    transition: transform var(--t);
    flex-shrink: 0;
    line-height: 1;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s var(--ease);
}
.faq__a.open { max-height: 600px; }
.faq__a p {
    padding: 0 32px 22px;
    font-size: 0.88rem;
    color: var(--mid-gray);
    line-height: 1.85;
}

/* ============================================
   FINAL CTA
============================================ */
.final-cta {
    background: var(--navy-deep);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Blue glow behind the section */
.final-cta::before {
    content: '';
    position: absolute;
    top: -150px; left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(42,73,166,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.final-cta__inner h2 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 12px 0 20px;
    line-height: 1.15;
}

.final-cta__inner p {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    line-height: 1.85;
}

.final-cta__trust {
    display: block;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.3);
    margin-top: 16px;
    letter-spacing: 0.04em;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--navy-dark);
    padding: 72px 0 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 32px;
}

.footer__brand img { margin-bottom: 16px; }
.footer__brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.75;
    max-width: 280px;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer__col h4 {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--t);
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

/* ============================================
   HEADINGS (shared)
============================================ */
h2 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.18;
}

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (max-width: 1024px) {
    .problem__grid { grid-template-columns: 1fr 1fr; }
    .problem__grid .problem__card:nth-child(3) { grid-column: span 2; max-width: 480px; margin: 0 auto; }

    .pillar__card { flex: 0 0 calc(50% - 12px); }

    .about__grid { gap: 48px; }

    .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Nav */
    .nav__links,
    .nav__inner > .btn { display: none; }
    .nav__burger { display: flex; }

    /* Hero */
    .hero__grid {
        grid-template-columns: 1fr;
        padding: 60px 20px 80px;
        text-align: center;
    }
    .hero__photo-wrap { display: none; }
    .hero__cta-row { align-items: center; }
    .hero__sub { max-width: 100%; margin: 0 auto 32px; }
    .hero__accent { display: none; }

    /* Problem */
    .problem__grid { grid-template-columns: 1fr; }
    .problem__grid .problem__card:nth-child(3) { grid-column: auto; max-width: 100%; }

    /* Solution */
    .solution__row { flex-direction: column; gap: 8px; padding: 24px 20px; }
    .solution__num { font-size: 2rem; min-width: auto; }

    /* About */
    .about__grid { grid-template-columns: 1fr; }
    .about__badge { right: 12px; bottom: 12px; }
    .about__stats { gap: 20px; }

    /* Pillars */
    .pillar__card { flex: 0 0 100%; }

    /* Steps */
    .hiw__steps::before { display: none; }
    .hiw__step { flex-direction: column; gap: 16px; }
    .hiw__num { width: 56px; height: 56px; }
    .hiw__body h3 { padding-top: 0; }

    /* Sections padding */
    .problem, .solution, .about, .pillars, .hiw, .faq, .final-cta { padding: 72px 0; }

    .section-head { margin-bottom: 40px; }

    /* Footer */
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .hero__headline { font-size: 2.4rem; }
    .btn--lg { padding: 16px 24px; font-size: 0.95rem; }
    .faq__q { padding: 18px 20px; }
    .faq__a p { padding: 0 20px 20px; }
    .solution__row { padding: 20px 16px; }
    .footer__cols { grid-template-columns: 1fr; }
}
