:root {
    --bg-color: #fcfbf7;
    --text-primary: #1c1c1c;
    --text-secondary: #6e6d68;
    --accent-yellow: #f8b820;
    --btn-black: #111111;
    --border-color: #ebeae4;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Global Effects --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03; /* Subtle noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--btn-black) 0%,
        var(--btn-black) 40%,
        var(--accent-yellow) 50%,
        var(--btn-black) 60%,
        var(--btn-black) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-icon {
    background-color: var(--btn-black);
    color: var(--accent-yellow);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    font-weight: 600;
    font-size: 15px;
}

.nav-links a {
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 40px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.96);
}

.btn-outline {
    border: 1px solid #dcdacb;
    background: transparent;
}

.btn-outline:hover {
    background: #f4f2e6;
}

.btn-primary {
    background-color: var(--btn-black);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-text {
    font-weight: 600;
    font-size: 15px;
}

.btn-text:hover {
    opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 48px;
    gap: 80px;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #34c759;
    border-radius: 50%;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}
/* --- Activation Section --- */
.activation-section {
    background-color: #fdfdfc;
}

.activation-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.activation-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    min-height: 100px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 0 0 0 rgba(248,184,32,0.4); }
    70% { box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 0 0 15px rgba(248,184,32,0); }
    100% { box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 0 0 0 rgba(248,184,32,0); }
}

.activation-widget:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
}

.widget-step {
    display: none;
    padding: 16px;
}

.widget-step.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Step 1: Input Form */
#activation-form {
    display: flex;
    gap: 12px;
}

#activation-form input {
    flex: 1;
    border: 2px solid transparent;
    background: #f4f4f2;
    border-radius: 20px;
    padding: 0 24px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

#activation-form input:focus {
    background: white;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(248, 184, 32, 0.15);
}

#btn-submit {
    border-radius: 20px;
    padding: 16px 32px;
    white-space: nowrap; /* Prevent button text wrapping */
}

.error-text {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    margin-left: 12px;
    display: none;
}

/* Step 2: Loading */
#step-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 16px;
}

#step-loading p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(248, 184, 32, 0.3);
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Step 3: Confirm */
#step-confirm {
    padding: 20px;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-icon {
    width: 32px;
    height: 32px;
    background: #fdfaf3;
    color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
}

.confirm-body {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.status-badge.has-gold {
    background-color: #d1f5e8;
    color: #2ecc71;
}

.status-badge.no-gold {
    background-color: #f7d2cf;
    color: #e74c3c;
}

.confirm-question {
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Step 4: Success */
#step-success {
    padding: 20px;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.success-icon {
    width: 32px;
    height: 32px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.success-header h3 {
    font-size: 18px;
    color: #2ecc71;
}

.success-body p {
    font-size: 15px;
    margin-bottom: 16px;
}

.instruction-box {
    background: #fdfaf3;
    border: 1px solid #f2e6ce;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 24px;
}

.instruction-box ol {
    margin-top: 8px;
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 12px;
}

.success-actions .btn {
    flex: 1;
    justify-content: center;
}

.trust-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid var(--bg-color);
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

.trust-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.trust-text strong {
    color: var(--text-primary);
}

.trust-text span {
    color: var(--text-secondary);
}

/* --- Hero Visual (Mockup) --- */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
}

.yellow-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, #ffd043 0%, var(--accent-yellow) 100%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    z-index: 1;
    animation: blob-morph 15s ease-in-out infinite alternate;
    filter: blur(20px);
}

@keyframes blob-morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
    25% { border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%; transform: rotate(90deg) scale(1.02); }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(180deg) scale(1.05); }
    75% { border-radius: 50% 50% 40% 60% / 60% 40% 50% 40%; transform: rotate(270deg) scale(1.02); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(360deg) scale(1); }
}

.handwriting {
    position: absolute;
    right: 20px;
    bottom: 80px;
    font-family: 'Kalam', cursive;
    font-size: 24px;
    color: #4a4a4a;
    z-index: 2;
    transform: rotate(-10deg);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    z-index: 5;
    width: 340px;
    height: 680px;
    background: #fdfdfd;
    border-radius: 50px;
    border: 12px solid #2d2d2d;
    box-shadow: inset 0 0 0 2px #555, 0 30px 60px rgba(0,0,0,0.2);
    transform: rotate(5deg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 45px 20px 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.more-icon {
    background: rgba(0,0,0,0.05);
    padding: 0 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0.5;
    padding-bottom: 10px;
}

.photo-card {
    flex: 1;
    background: #d4e1db; /* subtle fallback */
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-info .title {
    display: block;
    font-size: 24px;
    font-family: serif;
    font-style: italic;
    margin-bottom: 4px;
}

.photo-info .time {
    font-size: 13px;
    font-weight: 600;
}

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reaction-tray {
    display: flex;
    gap: 12px;
}

.emoji {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.emoji.plus {
    color: #999;
}

.camera-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    width: 48px;
    height: 48px;
    background: var(--accent-yellow);
    border-radius: 50%;
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 10;
    transition: transform 0.1s ease-out; /* For parallax smooth */
}

.float-card.locket-card {
    top: 50%;
    left: -80px;
}

.float-card.streak-card {
    top: 25%;
    right: -60px;
}

.f-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.s-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #d4c4f9;
    color: #5c3cbe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.f-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.f-title {
    color: var(--text-secondary);
    font-size: 11px;
}

.f-bold {
    font-weight: 700;
}

/* --- Marquee --- */
.marquee-container {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: auto;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent-yellow);
}

.marquee-content span {
    margin: 0 40px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Global Sections --- */
.section {
    padding: 100px 48px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* --- Scroll Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- Features (Bento Box) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    z-index: 3;
    transition: left 0.7s ease;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.bento-card:hover::after {
    left: 200%;
}

.card-large {
    grid-column: span 1;
    grid-row: span 2;
    background: #111;
    color: white;
}

.card-large p { color: #aaa; }

.card-wide {
    grid-column: span 2;
    background: linear-gradient(135deg, #fdfaf3 0%, #f4eee0 100%);
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 1;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: white; /* Ensure text is visible over dark backgrounds */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: auto;
}

.badge {
    align-self: flex-start;
    background: var(--accent-yellow);
    color: black;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.badge-soon {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.icon-box {
    font-size: 32px;
    margin-bottom: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.card-wide .card-content {
    color: var(--text-primary);
    text-shadow: none;
}

.horizontal {
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.horizontal h3 { margin-top: 0; }

.gold-icon-preview {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(248,184,32,0.3);
    object-fit: cover;
}

/* --- Steps (Timeline) --- */
.steps-section {
    background-color: white;
    max-width: 100%;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.step-num {
    font-size: 64px;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 0.8;
    opacity: 0.3;
}

.step-text h4 {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question .icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-yellow);
    transition: transform 0.3s;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Float Animation for idle state --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(5deg); }
}

.phone-mockup {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Extensions */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .card-large, .card-wide {
        grid-column: span 1;
        grid-row: auto;
    }
    .horizontal {
        flex-direction: column;
        text-align: center;
    }
    .section {
        padding: 60px 24px;
    }
    .step-item {
        flex-direction: column;
        gap: 16px;
    }
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }
    .nav-links {
        display: none;
    }
    .btn-outline, .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px 60px;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-title {
        font-size: 44px;
        letter-spacing: -1.5px;
    }
    .hero-actions {
        justify-content: center;
    }
    .trust-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-visual {
        height: 500px;
        transform: scale(0.85);
        margin-top: -40px;
    }
    .yellow-circle {
        width: 350px;
        height: 350px;
    }
    .float-card.locket-card {
        left: -40px;
    }
    .float-card.streak-card {
        right: -30px;
    }
    
    .activation-widget {
        border-radius: 24px;
        padding: 12px;
    }
    #activation-form {
        flex-direction: column;
    }
    #activation-form input {
        padding: 16px;
        text-align: center;
    }
    #btn-submit {
        width: 100%;
        justify-content: center;
    }
    .success-actions {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    .section-header p {
        font-size: 16px;
    }
    .step-num {
        font-size: 48px;
    }
    .bento-card {
        padding: 24px;
    }
    .marquee-content {
        font-size: 12px;
    }
}
