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

:root {
    --navy:       #0f172a;
    --navy-800:   #1e293b;
    --navy-700:   #334155;
    --navy-600:   #475569;
    --blue:       #2563eb;
    --blue-dark:  #1d4ed8;
    --blue-light: #60a5fa;
    --blue-50:    #eff6ff;
    --cyan:       #14b8a6;
    --cyan-light: #5eead4;
    --white:      #ffffff;
    --gray-50:    #f7fbff;
    --gray-100:   #eff5fa;
    --gray-200:   #dde7f0;
    --gray-300:   #c6d6e5;
    --gray-400:   #7b8ca3;
    --success:    #10b981;
    --warning:    #f59e0b;
    --error:      #ef4444;

    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', 'Manrope', sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-blue: 0 10px 32px rgba(37,99,235,.22);
    --shadow-glow: 0 0 0 4px rgba(37,99,235,.14);

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--navy-700); }

/* ─── Layout ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1280px; }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,23,42,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 0 20px;
}
.nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav__logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: white;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.nav__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -0.5px;
}
.nav__tagline {
    font-size: 0.7rem;
    color: var(--gray-400);
    display: none;
}
@media (min-width: 480px) { .nav__tagline { display: block; } }
.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav__form {
    margin: 0;
}
.nav__link {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav__link--active { color: var(--blue-light); }
.nav__button {
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(0.98); }

.btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    box-shadow: var(--shadow-blue);
}
.btn--primary:hover { box-shadow: 0 10px 36px rgba(59,130,246,.4); transform: translateY(-1px); }

.btn--secondary {
    background: rgba(255,255,255,.06);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.12);
}
.btn--secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }

.btn--outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}
.btn--outline:hover { background: var(--blue); color: white; box-shadow: var(--shadow-blue); }

.btn--ghost {
    background: transparent;
    color: var(--navy-700);
    border: 1.5px solid var(--gray-200);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--large { padding: 16px 32px; font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn--small { padding: 8px 16px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn--full   { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card--glass {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
}
.card--elevated { box-shadow: var(--shadow-md); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ─── Forms ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy-800);
}
.form-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: -2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--navy-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--blue);
    box-shadow: var(--shadow-glow);
}
.form-control::placeholder { color: var(--gray-400); }

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-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='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* Checkbox tags ─ multi-select with visual toggle */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option { position: relative; }
.tag-option input[type="checkbox"],
.tag-option input[type="radio"]  { position: absolute; opacity: 0; width: 0; height: 0; }
.tag-option label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-700);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.tag-option label:hover { border-color: var(--blue); color: var(--blue); background: rgba(59,130,246,.04); }
.tag-option input:checked + label {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-blue);
}

/* ─── Alerts ────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid;
}
.alert--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ─── Step Progress ─────────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0 40px;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--white);
    flex-shrink: 0;
    transition: all var(--transition);
}
.step--active   .step__dot { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-glow); }
.step--complete .step__dot { background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; color: white; }
.step__label { font-size: 0.75rem; font-weight: 600; color: var(--gray-400); display: none; }
.step--active   .step__label { color: var(--blue); }
.step--complete .step__label { color: var(--navy-700); }
@media (min-width: 600px) { .step__label { display: block; } }
.step__line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 4px;
    transition: background var(--transition);
}
.step--complete ~ .step .step__line,
.step--complete .step__line { background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ─── Upload Zone ───────────────────────────────────────── */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
    position: relative;
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--blue);
    background: rgba(59,130,246,.04);
}
.upload-zone.has-file {
    border-color: var(--success);
    background: rgba(16,185,129,.04);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
}
.upload-icon svg { color: white; }

/* ─── Score Badge ───────────────────────────────────────── */
.score-ring {
    --r: 44px;
    width: calc(var(--r) * 2 + 16px);
    height: calc(var(--r) * 2 + 16px);
    position: relative;
    flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring__track { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.score-ring__fill  {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}
.score-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-ring__number { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.score-ring__text   { font-size: 0.65rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Spinner / Loader ──────────────────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-steps { display: flex; flex-direction: column; gap: 16px; }
.processing-step  { display: flex; align-items: center; gap: 16px; }
.processing-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-400);
    transition: all var(--transition);
}
.processing-step--active .processing-step__icon {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    box-shadow: var(--shadow-blue);
    animation: pulse 2s infinite;
}
.processing-step--done .processing-step__icon { background: var(--success); color: white; }
@keyframes pulse {
    0%, 100% { box-shadow: var(--shadow-blue); }
    50%       { box-shadow: 0 0 0 8px rgba(59,130,246,.15); }
}
.processing-step__label { font-weight: 600; font-size: 0.9rem; color: var(--navy-700); }
.processing-step__sub   { font-size: 0.8rem; color: var(--gray-400); }

/* ─── Suggestion Cards ──────────────────────────────────── */
.suggestion-list { display: flex; flex-direction: column; gap: 8px; }
.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--navy-700);
    line-height: 1.5;
}
.suggestion-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 6px;
}
.suggestion-item--warning .suggestion-item__dot { background: var(--warning); }
.suggestion-item--success .suggestion-item__dot { background: var(--success); }

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
    background: var(--navy);
    color: white;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(59,130,246,.22) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 10% 100%, rgba(6,182,212,.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black, transparent);
}
.hero__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59,130,246,.15);
    border: 1px solid rgba(59,130,246,.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.hero__title {
    color: white;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero__title span {
    background: linear-gradient(135deg, var(--blue-light), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,.65);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Features Grid ─────────────────────────────────────── */
.features { padding: 80px 20px; background: var(--gray-50); }
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}
.feature-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-blue);
}
.feature-card__icon svg { color: white; width: 24px; height: 24px; }
.feature-card__title  { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card__text   { font-size: 0.9rem; color: var(--navy-700); line-height: 1.6; }

/* ─── Page Header ───────────────────────────────────────── */
.page-header {
    background: var(--navy);
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(59,130,246,.18) 0%, transparent 70%);
}
.page-header__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.page-header__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.page-header__title { color: white; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.page-header__sub { font-size: 0.95rem; color: rgba(255,255,255,.55); }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.45);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.85rem;
    margin-top: auto;
}
.footer a { color: var(--blue-light); transition: color var(--transition); }
.footer a:hover { color: var(--cyan-light); }

/* ─── Utilities ─────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-muted  { color: var(--gray-400); }
.text-small  { font-size: 0.875rem; }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ─── Chip / Tag ────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy-700);
}
.chip--blue { background: rgba(59,130,246,.1); color: var(--blue-dark); }
.chip--green { background: rgba(16,185,129,.1); color: #065f46; }

/* ─── Divider ───────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 24px 0;
}

/* ─── Responsive Padding ────────────────────────────────── */
.section { padding: 60px 20px; }
@media (min-width: 768px) { .section { padding: 80px 20px; } }

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
