/* ==========================================================================
   JANIX Marketing Site — Design System

   Dark, arts-forward aesthetic. Cormorant Garamond headlines + Inter body.
   Palette from investor deck: gold #c9b85c, blue #7b9ec8, #111111 background.
   ========================================================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #111111;
    color: #f0f0f0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

p {
    color: #999999;
    line-height: 1.7;
}

.text-accent {
    color: #c9b85c;
}

.text-accent-blue {
    color: #7b9ec8;
}

.text-muted {
    color: #666666;
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wordmark {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-cta {
    font-size: 0.85rem;
    color: #7b9ec8 !important;
    border: 1px solid #7b9ec8;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    transition: all 0.25s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #7b9ec8;
    color: #111111 !important;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
    border-radius: 1px;
    transition: all 0.3s;
}

/* --- Hero Sections --- */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #999999;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #c9b85c;
    color: #111111;
}

.btn-primary:hover {
    background: #d4c56a;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn .arrow {
    transition: transform 0.25s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Sections --- */
section {
    padding: 6rem 2rem;
}

.section-dark {
    background: #0d0d0d;
}

.section-alt {
    background: #1a1a1e;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9b85c;
    margin-bottom: 1rem;
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(123, 158, 200, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    color: #f0f0f0;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888888;
}

/* --- Two-Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* --- Card Links (Program Types) --- */
.card-link {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.card-link:hover {
    border-color: rgba(123, 158, 200, 0.4);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.card-link h3 {
    margin-bottom: 0.75rem;
    color: #f0f0f0;
}

.card-link p {
    margin-bottom: 1.5rem;
}

.card-link .link-arrow {
    font-size: 0.9rem;
    color: #7b9ec8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Social Proof / Stats --- */
.proof-bar {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-bar .label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 0.5rem;
}

.proof-bar .name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: #f0f0f0;
}

/* --- Privacy Promise --- */
.promise-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.promise-block h2 {
    margin-bottom: 1.25rem;
}

.promise-block p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Bottom CTA Section --- */
.bottom-cta {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #111111 0%, #1a1a1e 100%);
}

.bottom-cta h2 {
    margin-bottom: 1.25rem;
}

.bottom-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* --- Pain Points --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pain-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
}

.pain-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.pain-item h4 {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 0.35rem;
}

.pain-item p {
    font-size: 0.88rem;
    color: #777777;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7b9ec8;
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1e;
    color: #f0f0f0;
}

/* Honeypot - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-index: -1;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success .checkmark {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 0.75rem;
}

/* Email capture (conferences) */
.email-capture {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.email-capture input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
}

.email-capture input:focus {
    outline: none;
    border-color: #7b9ec8;
}

.email-capture .btn {
    flex-shrink: 0;
}

/* --- Contact Page Info --- */
.contact-info h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.contact-method-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.contact-method-text h4 {
    font-size: 0.95rem;
    color: #f0f0f0;
    margin-bottom: 0.25rem;
}

.contact-method-text p {
    font-size: 0.9rem;
    color: #888888;
}

.contact-method-text a {
    color: #7b9ec8;
    transition: color 0.2s;
}

.contact-method-text a:hover {
    color: #9bb8da;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: #555555;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.8rem;
    color: #444444;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 768px) {
    .site-nav {
        height: 56px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links.open {
        display: flex;
    }

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .email-capture {
        flex-direction: column;
    }

    .email-capture .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
