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

:root {
    --bg: #111111;
    --surface: #ffffff;
    --text: #0f0f0f;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #0f0f0f;
    --primary: #2563eb;
}

body {
    background: white;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    margin: auto 5vw;
}

/* --- ANIMATED BACKGROUND --- */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Pushes it behind all your content */
    pointer-events: none; /* Prevents it from blocking button clicks */
}

p {
    background-color: white;
}

/* Page wrapper */
.page {
    width: 100%;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.nav-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.8; }

/* Hero */
.hero {
    position: relative;
    padding: 10vh 5vw;
    margin: auto 5vw;
    border-radius: 20px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(200, 180, 230, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(230, 210, 190, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 80%, rgba(180, 200, 240, 0.5) 0%, transparent 50%),
        #f0ece8;
    filter: blur(0px);
}

/* grain overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #0f0f0f;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 13px;
    color: #444;
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 20px;
    background-color: #00000000;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.2s;
}
.hero-btn:hover { opacity: 0.8; }

/* What is this section */
.info-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 36px 24px;
    border-bottom: 1px solid var(--border);
    margin: auto 5vw;
}

.info-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.info-section p {
    font-size: 17px;
    line-height: 1.7;
}

/* Decorative blobs */
.blobs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.blob {
    width: 56px;
    height: 56px;
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
}

.blob-purple { background: linear-gradient(135deg, #c084fc, #a855f7); }
.blob-green  { background: linear-gradient(135deg, #86efac, #4ade80); border-radius: 12px; }

/* Form section */
#creditForm {
    padding: 28px 24px 32px;
    margin: auto 5vw;
}

#creditForm h3 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

#creditForm label {
    font-size: 17px;
    font-weight: 700;
}

#creditForm input {
    border-color: black;
}

#creditForm input::placeholder {
    color: #676767;
}

.btn {
    display: inline-block;
    background: var(--primary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: white;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #9ca3af;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #d1d5db;
}

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

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 12px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.checkbox-row span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.checkbox-row a {
    color: var(--text);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.8; }
