/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #0F172A;
    background-color: #FFFFFF;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* ========================================
   COLOR PALETTE
   ======================================== */

:root {
    --color-primary: #0F172A;
    --color-secondary: #475569;
    --color-tertiary: #9CA3AF;
    --color-accent: #111827;
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-lighter: #F3F4F6;
    --color-border: #E5E7EB;
    --color-border-dark: #D1D5DB;
    --color-error: #DC2626;
    --color-success: #10B981;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-secondary);
    margin-bottom: 24px;
}

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

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-bottom: 16px;
    display: block;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 24px;
    }
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--color-bg-white);
    z-index: 50;
    border-bottom: none;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-monogram {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease-in-out;
}

.nav-button:hover {
    background-color: #1F2937;
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .logo-text {
        font-size: 12px;
    }

    .nav-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: #1F2937;
}

.btn-primary:active {
    background-color: #1F2937;
}

.btn-primary:disabled {
    background-color: var(--color-tertiary);
    cursor: not-allowed;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    text-decoration: underline;
}

.btn-ghost:hover {
    background-color: var(--color-bg-lighter);
}

.btn-ghost:active {
    background-color: var(--color-border);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 60px 60px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-pretag {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-headline {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--color-primary);
}

.line-regular {
    display: block;
    font-weight: 300;
    opacity: 1;
}

.line-bold {
    display: block;
    font-weight: 700;
}

.hero-divider {
    width: 48px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 32px auto;
}

.hero-subheadline {
    max-width: 480px;
    margin: 0 auto 32px;
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.scroll-cue {
    position: fixed;
    bottom: 40px;
    left: 40px;
    font-size: 12px;
    color: var(--color-secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    cursor: pointer;
    transition: color 200ms ease-in-out;
}

.scroll-cue:hover {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .hero {
        height: 80vh;
    }

    .hero-content {
        padding: 50px 50px;
        max-width: 700px;
    }

    .hero-headline {
        font-size: 42px;
    }

    .hero-subheadline {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        margin-top: 64px;
    }

    .hero-content {
        padding: 40px 24px;
        margin: 0 16px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
    }

    .scroll-cue {
        bottom: 24px;
        left: 24px;
        font-size: 10px;
    }
}

/* ========================================
   PROOF STRIP (SECTION 2)
   ======================================== */

.proof-strip {
    background-color: var(--color-bg-light);
    padding: 80px;
    border-top: none;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.proof-card {
    text-align: center;
}

.proof-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.proof-label {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .proof-strip {
        padding: 60px;
    }

    .proof-grid {
        gap: 24px;
    }

    .proof-number {
        font-size: 48px;
    }
}

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

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .proof-number {
        font-size: 36px;
    }

    .proof-label {
        font-size: 12px;
    }
}

/* ========================================
   TWO COLUMN LAYOUT
   ======================================== */

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

.column-left h2 {
    margin-bottom: 32px;
}

.column-right p {
    margin-bottom: 24px;
}

.column-right p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .two-column {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .column-left {
        order: 1;
    }

    .column-right {
        order: 2;
    }
}

/* ========================================
   GUARANTEE & WHY IT WORKS (SECTION 3 & 5)
   ======================================== */

.the-guarantee,
.why-this-works {
    background-color: var(--color-bg-white);
    padding: 80px;
}

.the-guarantee + section {
    padding-top: 80px;
}

@media (max-width: 1024px) {
    .the-guarantee,
    .why-this-works {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .the-guarantee,
    .why-this-works {
        padding: 48px 24px;
    }
}

/* ========================================
   HOW IT WORKS (SECTION 4)
   ======================================== */

.how-it-works {
    background-color: var(--color-bg-light);
    padding: 80px;
}

.how-it-works h2 {
    margin-bottom: 64px;
}

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

.step-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 8px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-timeline {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.step-card p {
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .how-it-works {
        padding: 60px;
    }

    .steps-grid {
        gap: 20px;
    }

    .step-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 48px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .how-it-works h2 {
        margin-bottom: 40px;
    }
}

/* ========================================
   WHO WE WORK WITH (SECTION 6)
   ======================================== */

.who-we-work-with {
    background-color: var(--color-bg-white);
    padding: 80px;
}

.who-we-work-with h2 {
    margin-bottom: 48px;
}

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

.who-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 8px;
    min-height: 260px;
}

.card-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.who-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.who-card p {
    font-size: 16px;
    margin-bottom: 16px;
}

.card-marker {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .who-we-work-with {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .who-we-work-with {
        padding: 48px 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .who-we-work-with h2 {
        margin-bottom: 32px;
    }
}

/* ========================================
   WHO WE ARE NOT FOR (SECTION 7)
   ======================================== */

.who-we-are-not-for {
    background-color: var(--color-bg-light);
    padding: 80px;
}

.not-for-list {
    list-style: none;
    max-width: 700px;
}

.not-for-list li {
    font-size: 18px;
    color: var(--color-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.not-for-list li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

@media (max-width: 1024px) {
    .who-we-are-not-for {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .who-we-are-not-for {
        padding: 48px 24px;
    }

    .not-for-list li {
        font-size: 16px;
    }
}

/* ========================================
   CREDIBILITY (SECTION 8)
   ======================================== */

.credibility {
    background-color: var(--color-bg-white);
    padding: 80px;
}

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

.cred-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.cred-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.cred-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cred-item p {
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .credibility {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .credibility {
        padding: 48px 24px;
    }
}

/* ========================================
   FAQ (SECTION 9)
   ======================================== */

.faq {
    background-color: var(--color-bg-light);
    padding: 80px;
}

.faq h2 {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 700px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    transition: color 150ms ease-in-out;
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-toggle {
    font-size: 24px;
    transition: transform 200ms ease-in-out;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-top: 16px;
    animation: slideDown 200ms ease-in-out;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.faq-answer p {
    font-size: 16px;
    color: var(--color-secondary);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .faq {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 48px 24px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq h2 {
        margin-bottom: 32px;
    }
}

/* ========================================
   FORM SECTION (SECTION 10)
   ======================================== */

.apply-section {
    background-color: var(--color-bg-white);
    padding: 80px;
}

.apply-section h2 {
    margin-bottom: 16px;
}

.form-subheading {
    font-size: 16px;
    color: var(--color-secondary);
    margin-bottom: 48px;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 48px;
    border-radius: 8px;
    position: relative;
}

.form-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-border);
    border-radius: 8px 0 0 0;
    width: 33.33%;
    transition: width 200ms ease-in-out;
}

.form-progress-text {
    font-size: 14px;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 32px;
    margin-top: 8px;
}

.form-step {
    display: none;
    animation: fadeIn 200ms ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.step-subtitle {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 24px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: var(--color-tertiary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.error-message {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 4px;
    display: none;
}

input.error,
select.error,
textarea.error {
    border-color: var(--color-error);
    background-color: #FEF2F2;
}

input.error ~ .error-message,
select.error ~ .error-message,
textarea.error ~ .error-message {
    display: block;
}

input.success,
select.success,
textarea.success {
    border-color: var(--color-success);
}

.form-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-buttons button {
    flex: 1;
}

.form-buttons .btn-ghost {
    flex: 0.6;
}

/* SUCCESS STATE */

.success-state {
    text-align: center;
    padding: 48px;
    animation: fadeIn 200ms ease-in-out;
}

.success-state.hidden {
    display: none;
}

.success-icon {
    margin-bottom: 32px;
}

.success-state h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.success-state p {
    font-size: 16px;
    color: var(--color-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.success-state .btn {
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.redirect-countdown {
    font-size: 14px;
    color: var(--color-tertiary);
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .apply-section {
        padding: 60px;
    }

    .form-wrapper {
        padding: 40px;
    }
}

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

    .form-wrapper {
        padding: 24px;
        border: none;
    }

    .form-buttons {
        flex-direction: column-reverse;
    }

    .form-buttons button {
        flex: 1;
    }

    .form-buttons .btn-ghost {
        flex: 1;
    }

    .step-title {
        font-size: 20px;
    }
}

/* ========================================
   FINAL CTA (SECTION 12)
   ======================================== */

.final-cta {
    background-color: var(--color-bg-light);
    padding: 80px;
    text-align: center;
}

.final-headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.final-headline span {
    display: block;
}

.final-headline .bold {
    font-weight: 700;
}

.final-subtext {
    font-size: 16px;
    color: var(--color-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.final-cta .btn {
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.final-note {
    font-size: 14px;
    color: var(--color-tertiary);
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .final-cta {
        padding: 60px;
    }

    .final-headline {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .final-cta {
        padding: 48px 24px;
    }

    .final-headline {
        font-size: 28px;
    }

    .final-subtext {
        font-size: 14px;
    }
}

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

.footer {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 48px 80px;
}

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

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-logo-monogram {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-logo {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 0;
}

.footer-right {
    text-align: right;
    font-size: 12px;
    color: var(--color-tertiary);
}

.footer-right p {
    margin-bottom: 0;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .footer {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 24px;
    }

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

    .footer-right {
        text-align: center;
    }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   FOCUS STATES
   ======================================== */

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .hero-video,
    .scroll-cue {
        display: none;
    }
}
