@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
    --p-dark: #1a061a;
    --p-mid: #2d0b2b;
    --p-light: #451a42;
    --gold: #c1a47b;
    --gold-light: #d4bc9a;
    --gold-bg: #ba9b6d;
    --white: #ffffff;
    --off-white: #fdfaf7;
    --text-main: #1a061a;
    --text-muted: #5a4a5a;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(45, 11, 43, 0.08);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 12px 40px rgba(45, 11, 43, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Blobs */
.blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 164, 123, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}
.blob-1 { top: -200px; right: -200px; }
.blob-2 { bottom: -200px; left: -200px; background: radial-gradient(circle, rgba(45, 11, 43, 0.05) 0%, transparent 70%); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, .brand {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    height: 75px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-size: 24px;
    color: var(--p-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--p-mid), var(--p-dark));
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold);
    box-shadow: 0 4px 10px rgba(45, 11, 43, 0.2);
}

.brand-logo {
    height: 220px;
    width: auto;
    object-fit: contain;
    transform: translateY(8px);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--p-mid);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(193, 164, 123, 0.1);
    border-radius: 50px;
}

.hero h1 {
    font-size: 68px;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--p-dark);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--gold), var(--gold-bg));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* Hero Visual Part */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
}

.visual-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--p-mid);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.visual-accent {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
    z-index: 2;
    border-radius: 20px;
}

/* Buttons */
.btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--p-dark);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(26, 6, 26, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(26, 6, 26, 0.3);
    background: var(--p-mid);
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--p-dark);
    font-weight: 700;
}

.play-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.btn-play:hover .play-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

/* Section Common */
section {
    padding: 120px 0;
}

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

.section-title h2 {
    font-size: 48px;
    color: var(--p-dark);
    margin-bottom: 20px;
}

/* Prediction Card */
.form-card {
    background: var(--white);
    padding: 50px;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

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

.input-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 4px;
}

.input-field input, .input-field select {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fafafa;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.input-field input:focus, .input-field select:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(193, 164, 123, 0.1);
}

.form-full {
    grid-column: 1 / -1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-submit {
    flex: 1;
    max-width: 320px;
    background: var(--p-dark);
    color: var(--white);
}

.btn-clear {
    padding: 18px 30px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-clear:hover {
    border-color: var(--p-mid);
    color: var(--p-mid);
}

/* Result Section */
.result-box {
    margin-top: 50px;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    animation: slideUp 0.6s ease;
}

.approved {
    background: linear-gradient(135deg, rgba(193, 164, 123, 0.1), rgba(193, 164, 123, 0.05));
    border: 1px solid var(--gold);
}

.rejected {
    background: linear-gradient(135deg, rgba(45, 11, 43, 0.05), rgba(45, 11, 43, 0.02));
    border: 1px solid var(--p-mid);
}

.result-box h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 52px; }
    .hero p { margin-inline: auto; }
    .btn-group { justify-content: center; }
    .hero-visual { display: none; }
    .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
}
/* Pipeline Section */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--p-mid);
    color: var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 24px;
    font-family: 'Syne', sans-serif;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--p-dark);
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .pipeline-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}

.text-gold { color: var(--gold); }
.text-p-mid { color: var(--p-mid); }

.input-field select {
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'16\' height=\'16\' fill=\'%23c1a47b\' viewBox=\'0 0 16 16\'%3E%3Cpath d=\'M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z\'/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    cursor: pointer;
}

.input-field select:hover {
    border-color: var(--gold);
    background-color: var(--white);
}

/* Custom Select Component */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select-trigger:hover {
    border-color: var(--gold);
    background: var(--white);
}

.custom-select-trigger:after {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
    margin-top: -5px;
    transition: var(--transition);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(135deg);
    margin-top: 5px;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 100%;
    margin-top: 8px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background: rgba(193, 164, 123, 0.1);
    color: var(--gold);
}

.custom-option.selected {
    background: rgba(193, 164, 123, 0.05);
    color: var(--gold);
}
