:root {
    --bg-dark: #0a0b10;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-gold: #FBE058;
    --accent-gold-glow: rgba(251, 224, 88, 0.5);
    --accent-blue: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Noto Sans TC', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #151823 0%, #0a0b10 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, rgba(10,11,16,0) 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(10,11,16,0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, rgba(10,11,16,0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -60px) scale(1.1); }
}

/* Typography & Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* Forms & Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.card {
    padding: 3.5rem;
    margin-bottom: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.3s forwards;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 2.5rem;
}

label {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #f3f4f6;
    letter-spacing: 0.5px;
}

input[type="url"], input[type="email"], input[type="text"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

input[type="url"]:focus, input[type="email"]:focus, input[type="text"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Tags Selection */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.tag.selected {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 600;
    box-shadow: 0 6px 20px var(--accent-gold-glow);
    transform: translateY(-2px);
}

.tag.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.tag.disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: none;
}

.helper-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-align: right;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, #dfbc45 0%, #aa7e00 100%);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.35);
}

.btn-primary:not(:disabled)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0.3), transparent, transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-primary:not(:disabled):hover::after {
    opacity: 1;
    left: 100%;
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .btn-text {
    display: none;
}

.loading .btn-loader {
    display: block;
}

/* Results Section */
.hidden {
    display: none !important;
}

.result-section {
    animation: fadeUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.result-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.result-header h3 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.result-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.profile-card {
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(212,175,55,0.03) 100%);
    border-left: 5px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.profile-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.profile-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.profile-desc {
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.8;
}

.directions-heading {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    font-weight: 500;
}

.direction-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.direction-item {
    display: flex;
    gap: 1.8rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: flex-start;
}

.direction-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: -5px 10px 20px rgba(0,0,0,0.2);
}

.direction-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

.direction-content h5 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #fff;
    font-weight: 600;
}

.direction-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.highlight-glass {
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(0,0,0,0.5) 100%);
    border: 1px solid rgba(212,175,55,0.25);
    text-align: center;
    padding: 3.5rem 2rem;
}

.highlight-glass h4 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.highlight-glass p {
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-capture {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.email-capture input {
    flex: 1;
    background: rgba(0,0,0,0.4);
}

.btn-secondary {
    padding: 0 2rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 8px 25px var(--accent-gold-glow);
    transform: translateY(-2px);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { padding: 3rem 1.5rem; }
    .title { font-size: 2.5rem; }
    .subtitle { font-size: 1.3rem; }
    .card { padding: 2rem; }
    .email-capture { flex-direction: column; }
    .btn-secondary { padding: 1.2rem; }
    .direction-item { flex-direction: column; gap: 1.2rem; padding: 1.5rem;}
    .direction-icon { width: 55px; height: 55px; font-size: 1.8rem; }
    .form-row { flex-direction: column; gap: 1rem; }
}

/* Optional Fields & Select */
.optional-fields {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.sub-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 400;
    display: block;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
}

select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolyline%20points%3D'6%209%2012%2015%2018%209'%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
}

select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
    background-color: rgba(0, 0, 0, 0.5);
}

select option {
    background-color: #151823;
    color: white;
}

/* Flow State Design */
.flow-state {
    margin-top: 2rem;
    padding: 1.8rem;
    background: linear-gradient(90deg, rgba(251,224,88,0.06) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--accent-gold);
}

.flow-state h5 {
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flow-state ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow-state li {
    margin-bottom: 1rem;
    color: #f3f4f6;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.8rem;
}

.flow-state li:last-child {
    margin-bottom: 0;
}

.flow-state li::before {
    content: "✦";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    top: 0;
}
