/* ============================================
   KEYping BIZZee — Website Styles
   Professional, Modern, Clean
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-navy: #0a1628;
    --color-blue-deep: #0f2847;
    --color-blue: #1a3a6b;
    --color-blue-mid: #2a5298;
    --color-blue-light: #3b7dd8;
    --color-gold: #c9a84c;
    --color-gold-dark: #8a7230;
    --color-gold-light: #e4c96a;
    --color-white: #ffffff;
    --color-off-white: #f8f9fc;
    --color-gray-50: #f4f5f7;
    --color-gray-100: #e8eaef;
    --color-gray-200: #d1d5de;
    --color-gray-400: #8a90a0;
    --color-gray-600: #4a5068;
    --color-gray-800: #1e2333;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max: 1200px;
    --section-padding: 100px 0;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-800);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Skip to Content --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* --- Visually Hidden (accessible) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gray-600);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-dark);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.btn-primary:hover {
    background-color: var(--color-blue-deep);
    border-color: var(--color-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

@supports (backdrop-filter: blur(10px)) {
    .site-header.scrolled {
        background: rgba(10, 22, 40, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.logo-key { color: var(--color-gold); }
.logo-ping { color: var(--color-white); font-weight: 400; }
.logo-biz { color: var(--color-gold); }
.logo-zee { color: var(--color-white); font-weight: 400; }

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

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    border: 1.5px solid var(--color-gold) !important;
    border-radius: 5px;
    color: var(--color-gold) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background-color: var(--color-gold) !important;
    color: var(--color-navy) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav overlay */
body.nav-open {
    overflow: hidden;
}

body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-deep) 40%, var(--color-blue) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(42, 82, 152, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-gold-light);
    display: inline-block;
    font-size: 1.12em;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
    line-height: 1.6;
}

.hero-author {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
}

.hero-author strong {
    color: var(--color-white);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 340px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   ABOUT THE BOOK
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-main p {
    color: var(--color-gray-600);
    margin-bottom: 1.2rem;
}

.about-main strong {
    color: var(--color-navy);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.highlight-card {
    padding: 28px 24px;
    background: var(--color-off-white);
    border-radius: 10px;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--color-blue-light);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 10px;
    margin-bottom: 16px;
}

.highlight-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ============================================
   CALLOUT
   ============================================ */
.callout {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue-deep));
}

.callout-figure {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.callout-figure blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-style: italic;
}

.callout-figure blockquote strong {
    color: var(--color-gold-light);
    font-style: normal;
}

.callout-figure figcaption {
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
}

.callout-figure figcaption cite {
    font-style: italic;
    color: var(--color-gold);
}

/* ============================================
   INSIDE THE BOOK
   ============================================ */
.inside {
    padding: var(--section-padding);
    background: var(--color-off-white);
}

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

.inside-card {
    background: var(--color-white);
    padding: 36px 28px;
    border-radius: 10px;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
    position: relative;
}

.inside-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.inside-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-100);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.inside-card:hover .inside-number {
    color: var(--color-blue-light);
}

.inside-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.inside-card p {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.65;
}

/* ============================================
   WHO IT'S FOR
   ============================================ */
.who {
    padding: var(--section-padding);
    background: var(--color-white);
}

.who-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.who-content h2 {
    margin-bottom: 20px;
}

.who-content p {
    color: var(--color-gray-600);
    font-size: 1.05rem;
}

.who-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.who-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 10px;
    transition: var(--transition);
}

.who-item:hover {
    background: var(--color-off-white);
}

.who-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-mid));
    color: var(--color-white);
    border-radius: 10px;
}

.who-item h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.who-item p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

/* ============================================
   WHAT YOU'LL GAIN
   ============================================ */
.gain {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue-deep));
}

.gain .section-eyebrow {
    color: var(--color-gold);
}

.gain .section-header h2 {
    color: var(--color-white);
}

.gain-grid {
    max-width: 650px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gain-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: var(--transition);
}

.gain-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201, 168, 76, 0.3);
}

.gain-check {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-gold-light);
    border-radius: 50%;
}

.gain-item p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    font-weight: 500;
}

.gain-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.gain-note p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.7;
}

/* ============================================
   ABOUT THE AUTHOR
   ============================================ */
.author {
    padding: var(--section-padding);
    background: var(--color-off-white);
}

.author-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 80px;
    align-items: center;
}

.author-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.author-content h2 {
    margin-bottom: 24px;
}

.author-content p {
    color: var(--color-gray-600);
    margin-bottom: 1.1rem;
    font-size: 1.02rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: var(--section-padding);
    background: var(--color-white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    padding: 32px;
    background: var(--color-off-white);
    border-radius: 10px;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--color-navy);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--color-off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-content h2 {
    margin-bottom: 20px;
}

.contact-content p {
    color: var(--color-gray-600);
    margin-bottom: 24px;
}

.contact-email {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-blue);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 4px;
}

.contact-email:hover {
    color: var(--color-blue-mid);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-800);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-gray-800);
    background: var(--color-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-blue-mid);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--color-blue-mid);
    outline-offset: 1px;
    border-color: var(--color-blue-mid);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

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

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-legal {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}

.footer-legal p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.60);
}

.footer-legal .disclaimer {
    margin-top: 4px;
    font-size: 0.78rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn:hover,
    .highlight-card:hover,
    .inside-card:hover,
    .gain-item:hover,
    .faq-item:hover {
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

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

    .inside-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-layout {
        grid-template-columns: minmax(240px, 300px) 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-cta {
        width: 100%;
        display: block;
        text-align: center;
        padding: 14px 24px !important;
        margin-top: 8px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Mobile — content first, then image */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        width: 240px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Grid adjustments */
    .inside-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .author-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .author-image img {
        max-width: 320px;
        margin: 0 auto;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 56px 0;
    }

    .hero-image img {
        width: min(260px, 65vw);
    }

    .inside-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .callout {
        padding: 56px 0;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .site-header,
    .nav-toggle,
    .hero-image-glow,
    .hero::before,
    .contact-form-wrap,
    .site-footer .footer-links,
    .skip-link {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .hero {
        background: none;
        padding: 20pt 0;
        min-height: auto;
    }

    .hero-title,
    .hero-subtitle,
    .hero-author,
    .hero-eyebrow {
        color: #000;
    }

    .hero-title .highlight {
        color: #333;
    }

    .callout {
        background: none;
        border: 1pt solid #ccc;
    }

    .callout-figure blockquote p,
    .callout-figure figcaption {
        color: #000;
    }

    .gain {
        background: none;
    }

    .gain-item p,
    .gain .section-header h2,
    .gain-note p {
        color: #000;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    @page {
        margin: 2cm;
    }
}
