/* Salefin v2 Styles */

:root {
    /* Amber / Gold - matching brand identity */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Dark palette with warm undertone */
    --bg-deep: #0a0a0f;
    --bg-base: #12111a;
    --bg-surface: #1c1b26;
    --bg-elevated: #2a2935;
    --bg-hover: #3a3948;

    /* Text */
    --text-primary: #f5f3f0;
    --text-secondary: #a8a4a0;
    --text-muted: #6b6660;

    /* Accents */
    --accent: var(--amber-400);
    --accent-dim: var(--amber-500);
    --border: rgba(251, 191, 36, 0.12);
    --border-strong: rgba(251, 191, 36, 0.28);

    /* Status */
    --success: #22c55e;
    --error: #ef4444;

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 6rem);
    --container-max: 1200px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Utility */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--amber-500);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--amber-700);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--amber-600);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--amber-500);
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    filter: sepia(0.25) saturate(1.5) hue-rotate(345deg) brightness(0.92);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: #a05e2d;
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.nav-cta:hover {
    background: #b56d3a;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0 4rem;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 720px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--amber-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: #a05e2d;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #b56d3a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--amber-400);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prompt Box */
.prompt-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.prompt-box:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.prompt-input-wrap {
    flex: 1;
    position: relative;
}

.prompt-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font: inherit;
    font-size: inherit;
}

.typing-placeholder {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: opacity 0.2s;
}

.typing-placeholder::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

.typing-placeholder.hidden {
    opacity: 0;
}

@keyframes blink {
    50% { opacity: 0; }
}

.send-icon {
    width: 36px;
    height: 36px;
    background: #a05e2d;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.prompt-box:hover .send-icon {
    background: #b56d3a;
    transform: scale(1.05);
}

.send-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Challenges Section */
.challenges {
    padding: var(--section-padding) 0;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.3s, border-color 0.3s;
}

.challenge-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.challenge-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: #ef4444;
}

.challenge-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.challenge-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Approach Section */
.approach {
    padding: var(--section-padding) 0;
    background: var(--bg-base);
}

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-text .section-subtitle {
    margin-bottom: 1.5rem;
}

.approach-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.approach-tagline strong {
    color: var(--amber-400);
}

.approach-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.approach-step {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.approach-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.approach-step-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.75rem;
    color: var(--amber-400);
}

.approach-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.approach-highlight {
    background: linear-gradient(135deg, var(--amber-700), var(--amber-600));
    border: none;
}

.approach-highlight h4 {
    color: white;
}

@media (max-width: 900px) {
    .approach-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Why Salefin Section */
.why {
    padding: var(--section-padding) 0;
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text .section-subtitle {
    margin-top: 1rem;
}

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.why-card:hover {
    transform: translateX(8px);
    border-color: var(--border-strong);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--amber-400);
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-text {
        order: -1;
    }
}

/* Services Section */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-base);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: var(--amber-400);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-base));
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.open {
    display: grid;
    place-items: center;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    appearance: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #a05e2d;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: #b56d3a;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    text-align: center;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .prompt-box {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        border-radius: 28px;
        gap: 1rem;
    }

    .send-icon {
        width: 32px;
        height: 32px;
    }

    .send-icon svg {
        width: 14px;
        height: 14px;
    }

    .approach-flow {
        flex-direction: column;
    }

    .service-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1.75rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 1rem 0;
    }

    .logo img {
        height: 32px;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
