/* Reset and Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #FF6B00;
    --primary-dark:  #e55e00;
    --primary-light: #ff8c33;
    --primary-glow:  rgba(255, 107, 0, 0.22);
    --dark:          #0a0a0a;
    --dark-light:    #111111;
    --surface:       #1a1a1a;
    --border:        #2a2a2a;
    --text-primary:  #FFFFFF;
    --text-secondary:#A0A0A0;
    --text-muted:    #555555;
    --success:       #22C55E;
    --error:         #EF4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── FIXED HEADER ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.header-link:hover { color: var(--text-secondary); }

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #0a0a0a, #0d0b07, #120d04, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 22s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(255,107,0,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(255,107,0,0.05) 0%, transparent 55%);
    pointer-events: none;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-headline {
    font-size: clamp(2.8rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    margin-bottom: 28px;
    max-width: 1000px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-headline .accent { color: var(--primary); }

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.75;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-social-proof {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.35s both;
}
.hero-social-proof strong { color: var(--primary); font-weight: 600; }

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* so the email form's max-width: 100% caps at the page width */
    gap: 14px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ─── PRIMARY BUTTON ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 18px 36px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: glowPulse 1.6s ease infinite;
}
.btn-primary:active { transform: translateY(0); animation: none; }

@keyframes glowPulse {
    0%   { box-shadow: 0 0 0 0 var(--primary-glow); }
    70%  { box-shadow: 0 0 0 18px rgba(255,107,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}

.hero-trust {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ─── HERO EMAIL (funnel step 1) ─── */
/* Email field on top, button below — two compact pills with space between. */
.hero-email-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    /* Fixed width: the parent shrink-wraps, so 100% would follow the content
       and the field would jump when the error message appears. */
    width: 380px;
    max-width: 100%;
    margin: 8px auto 4px;
}
.hero-email-form .hero-email-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 13px 20px;
    font-size: 0.95rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-email-form .hero-email-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.hero-email-form .btn-primary {
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.hero-email-form .btn-primary svg { width: 15px; height: 15px; }
#email-msg { width: 380px; max-width: 100%; margin: 4px auto 0; font-size: 0.85rem; padding: 10px 16px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* "Signing up as …" on the profile page (step 2) */
.signup-email-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: -12px 0 28px;
}
.signup-email-note strong { color: var(--text-primary); }
.signup-email-note a { color: var(--primary); text-decoration: none; }

/* ─── FORM SECTION (revealed) ─── */
.form-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--dark-light);
    border-top: 1px solid var(--border);
}
.form-section.revealed { max-height: 2600px; }

.form-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 72px 24px 80px;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.6;
}

/* ─── FIELD GROUPS ─── */
.field-group { margin-bottom: 30px; }

.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.field-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.field-input::placeholder { color: var(--text-muted); }

/* Small helper text under a field — used for optional/privacy notes */
.field-hint {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── PHOTO UPLOAD ─── */
.photo-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.photo-drop {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--dark-light);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.photo-drop:hover,
.photo-input:focus-visible + .photo-drop { border-color: var(--primary); background: var(--surface); }
.photo-input:focus-visible + .photo-drop { outline: 2px solid var(--primary); outline-offset: 2px; }
.photo-drop.has-photo { border-style: solid; }

.photo-drop img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--surface);
}

.photo-drop-text { display: flex; flex-direction: column; gap: 3px; }
.photo-drop-text strong { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.photo-drop-text span { font-size: 0.8125rem; color: var(--text-secondary); }

select.field-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
}
select.field-input option { background: #1a1a1a; color: var(--text-primary); }

textarea.field-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* ─── CHIPS (checkbox multi-select) ─── */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip { cursor: pointer; }
.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}
.chip:hover span { border-color: var(--primary); color: var(--text-primary); }
.chip input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ─── GOAL PILLS (radio single-select) ─── */
.goal-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.goal-pill { cursor: pointer; }
.goal-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.goal-pill span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    transition: all 0.15s ease;
    cursor: pointer;
}
.goal-pill:hover span { border-color: var(--primary); color: var(--text-primary); }
.goal-pill input:checked + span {
    background: rgba(255,107,0,0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    font-weight: 600;
}

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.form-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.5;
}

/* ─── FORM MESSAGES ─── */
.form-message {
    margin-top: 16px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    display: none;
}
.form-message.success {
    background: rgba(34,197,94,0.1);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.25);
    display: block;
}
.form-message.error {
    background: rgba(239,68,68,0.1);
    color: var(--error);
    border: 1px solid rgba(239,68,68,0.25);
    display: block;
}

/* ─── LOADER ─── */
.loader {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FEATURES SECTION ─── */
.features-section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,107,0,0.4), transparent);
    margin-bottom: 64px;
}

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

.feature-card {
    padding: 28px 22px;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: rgba(255,107,0,0.35); transform: translateY(-4px); }

.feature-icon-wrap {
    width: 44px; height: 44px;
    background: rgba(255,107,0,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── FOOTER ─── */
footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}
footer p { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 12px; }

.footer-links { display: flex; justify-content: center; gap: 24px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* ─── GENERIC PAGE CARD (confirm / respond / feedback) ─── */
.page-main {
    min-height: 100vh;
    background: var(--dark);
    padding: 80px 16px 60px;
}

.page-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 20px;
}

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

.card-icon {
    width: 60px; height: 60px;
    margin: 0 auto 24px;
    background: rgba(255,107,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.card-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
}

/* ─── STEPS LIST ─── */
.steps-list {
    list-style: none;
    background: var(--surface);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}

/* ─── SHARE BOX ─── */
.share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.share-box span {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}
.btn-copy {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

/* ─── MATCH CARD (respond page) ─── */
.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
}

.match-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.match-detail svg { color: var(--primary); flex-shrink: 0; }
.match-detail:last-of-type { margin-bottom: 0; }

.match-trust {
    font-size: 0.8rem;
    color: #4ade80;
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 18px;
    text-align: center;
    line-height: 1.5;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-accept {
    padding: 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.btn-accept:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-decline {
    padding: 16px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-decline:hover { border-color: var(--text-muted); color: var(--text-primary); }

.response-state {
    display: none;
    padding: 28px 24px;
    background: var(--surface);
    border-radius: 14px;
    text-align: center;
}
.response-state.visible { display: block; }

/* ─── FEEDBACK PAGE ─── */
.question-block { margin-bottom: 28px; }
.question-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; line-height: 1.45; }

.answer-group { display: flex; gap: 10px; flex-wrap: wrap; }

.answer-btn {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.answer-btn:hover { border-color: var(--primary); color: var(--text-primary); }
.answer-btn.selected { background: rgba(255,107,0,0.12); border-color: var(--primary); color: var(--text-primary); font-weight: 600; }

/* Stars */
.star-group { display: flex; gap: 6px; }
.star-btn {
    font-size: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--border);
    transition: color 0.1s, transform 0.1s;
    padding: 2px 4px;
    line-height: 1;
}
.star-btn.active { color: var(--primary); }
.star-btn.hover-active { color: var(--primary-light); }
.star-btn:hover { transform: scale(1.15); }

/* Reason list */
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-item { cursor: pointer; }
.reason-item input { display: none; }
.reason-item span {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--surface);
    transition: all 0.15s;
    cursor: pointer;
}
.reason-item:hover span { border-color: var(--primary); color: var(--text-primary); }
.reason-item input:checked + span { background: rgba(255,107,0,0.08); border-color: var(--primary); color: var(--text-primary); }

.conditional-q { display: none; }
.conditional-q.visible { display: block; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .site-header { padding: 16px 20px; }
    .hero { padding: 100px 20px 64px; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .goal-group { grid-template-columns: 1fr; }
    .action-buttons { grid-template-columns: 1fr; }
    .page-card { padding: 32px 24px; }
    .form-inner { padding: 48px 16px 64px; }
    .features-section { padding: 56px 16px; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.5rem; }
    .card-title { font-size: 1.625rem; }
    .hero-sub { font-size: 1rem; }
}
