:root {
    --color-primary-dark: #513259;
    --color-primary-light: #6a4675;
    --color-accent: #D98A29;
    --color-bg: #F0F2F5;
    --color-bg-gradient: radial-gradient(circle at 10% 20%, #E8D8F0 0%, #FFFFFF 45%, #FFE8D1 100%);
    /* Slightly darker for card contrast */
    --color-white: #ffffff;
    --color-text-dark: #2D2D2D;
    --color-text-dim: #666666;

    --font-heading: 'Nunito Sans', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-soft: 0 20px 60px -20px rgba(81, 50, 89, 0.15);
    --shadow-card: 0 10px 30px -10px rgba(81, 50, 89, 0.05);
    /* Ultra soft */
    --shadow-hero: 0 20px 40px -10px rgba(81, 50, 89, 0.35);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-btn: 60px;
    /* Fully rounded buttons looks more premium */

    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 32px;

    --z-modal: 1000;
    --z-overlay: 999;
    --z-floating: 0;
    --z-content: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg-gradient);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll from floating elements */
}

.container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: var(--z-content);
}

/* Base Card Styles */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Added transition */
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    display: block;
    text-align: left;
}

button.card {
    cursor: pointer;
}

.card:active {
    transform: scale(0.98);
}

/* Typography Overrides */
h1,
h2,
h3,
.brand-tag {
    font-family: var(--font-heading);
}

/* HERO SECTION (Open) */
.hero-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding: 20px 0;
}

.logo-container {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    border-radius: 30px;
    /* Squircle */
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transform: rotate(-3deg);
    /* Playful tilt */
}

.logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hero-tag {
    display: inline-block;
    background: #F3E5F5;
    color: var(--color-primary-dark);
    padding: 10px 24px;
    /* Larger pill */
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(81, 50, 89, 0.1);
    /* Subtle shadow for depth */
    animation: floatTag 5s ease-in-out infinite;
}

@keyframes floatTag {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.text-highlight {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    /* Matching the reference visual */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Main Button */
.btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 32px;
    border-radius: var(--radius-btn);
    background: var(--color-primary-dark);
    /* Changed to purple */
    color: var(--color-white);
    font-size: 1.35rem;
    /* Increased from 1.1rem */
    font-weight: 800;
    /* Bolder */
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(81, 50, 89, 0.4);
    /* Purple shadow */
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-main i {
    font-size: 1.6rem;
    /* Slightly larger than text */
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
    /* Optical adjustment */
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(81, 50, 89, 0.5);
    /* Purple shadow on hover */
}

.btn-main:hover::after {
    opacity: 1;
}

/* Secondary Cards (Floating) */
.card-secondary {
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: #FFF8F0;
    /* Soft orange tint */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.icon-box.purple {
    background: #F8F5FA;
    color: var(--color-primary-dark);
}

.card-content-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.card-sub {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

.action-arrow {
    color: #DEC0D6;
    font-size: 1.2rem;
}

/* Interactive Elements */
/* Link Button (Outline) */
.btn-link {
    display: inline-block;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.btn-link:hover {
    border-bottom-color: var(--color-primary-dark);
}

/* Highlighted Catalog Card */
.card-catalog {
    background: #FDF9FF;
    /* Tint of purple approx 3-5% */
    border: 1px solid rgba(81, 50, 89, 0.08);
    box-shadow: 0 12px 35px rgba(81, 50, 89, 0.08);
    /* Slightly lifted */
}

.card-catalog .icon-box {
    background: rgba(81, 50, 89, 0.05);
    color: var(--color-primary-dark);
}

.card-catalog .icon-box.large-icon {
    width: 56px;
    /* Slightly larger */
    height: 56px;
    font-size: 1.6rem;
}

.icon-arrow-highlight {
    color: var(--color-accent);
    /* Soft orange */
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.card-catalog:hover .icon-arrow-highlight {
    transform: translateX(4px);
}

/* Social Card (Restored) */
.card-social {
    padding: 32px;
    background: var(--color-white);
    border: 1px solid rgba(81, 50, 89, 0.05);
    /* Very subtle border */
    text-align: center;
    box-shadow: var(--shadow-card);
}

.social-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.social-brand-icon {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
}

.social-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.social-text {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-social-action {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-btn);
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(217, 138, 41, 0.25);
    border: none;
}

.btn-social-action:hover {
    background: #e69635;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 138, 41, 0.35);
}

/* Modal Action Button */
.btn-modal-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    border-radius: var(--radius-btn);
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(217, 138, 41, 0.3);
    margin-top: 24px;
    transition: all 0.2s ease;
}

.btn-modal-action:hover {
    background: #e69635;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(217, 138, 41, 0.4);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(81, 50, 89, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--color-white);
    border-radius: 40px 40px 0 0;
    padding: 32px;
    z-index: var(--z-modal);
    box-shadow: var(--shadow-modal);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    transform: translateX(-50%) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-dark);
    font-size: 1.2rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
    padding-right: 40px;
    /* Space for close button */
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Modal Lists */
.modal-list {
    list-style: none;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-dark);
    font-size: 1rem;
}

.modal-list li i {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-top: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}