:root {
    /* UI/UX Pro Max Palette: Slate + Neutral + Soft Accents */
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --neutral-50: #fafaf9;

    --accent-peach: #fdf2f2;
    --accent-gold: #c5a059;
    --accent-glow: rgba(244, 63, 94, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --radius-full: 9999px;
    --radius-lg: 24px;
    --radius-md: 16px;

    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-lux: 0 20px 40px -10px rgba(15, 23, 42, 0.1);

    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--neutral-50);
    color: var(--slate-900);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-primary {
    background: radial-gradient(circle, #ffe4e6 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.orb-secondary {
    background: radial-gradient(circle, #fef3c7 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(5%, 5%) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--slate-200);
}

.app-header .container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    color: var(--accent-gold);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.search-wrap {
    position: relative;
    width: 300px;
}

.search-wrap input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: var(--neutral-50);
    outline: none;
    transition: var(--transition);
}

.search-wrap input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
}

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--accent-gold);
}

.hero-lead {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--slate-700);
    font-weight: 300;
}

/* Sections General */
h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading p {
    color: var(--slate-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 24px;
}

.flower-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.6s var(--transition), box-shadow 0.6s var(--transition);
    border: 1px solid var(--slate-200);
}

.flower-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lux);
}

.card-img-box {
    width: 100%;
    height: 100%;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.flower-card:hover .card-img-box img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.card-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.card-meaning {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Bento Sizing */
.bento-grid .card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-grid .card-tall {
    grid-row: span 2;
}

.bento-grid .card-wide {
    grid-column: span 2;
}

/* Intro & Summary Cards */
.intro-card,
.summary-card {
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--slate-200);
    margin-bottom: 100px;
}

.intro-card h2,
.summary-card h2 {
    color: var(--slate-900);
}

.intro-card p,
.summary-body p {
    font-size: 1.125rem;
    color: var(--slate-700);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    z-index: 10;
}

.modal-body {
    display: flex;
    height: 600px;
}

.modal-img {
    flex: 1;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.modal-info .en {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: block;
}

.modal-info .meaning-pill {
    background: var(--accent-peach);
    color: #e11d48;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 32px;
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-description {
    color: var(--slate-700);
}

/* Footer */
.app-footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
}

/* Mobile */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .bento-grid .card-lg,
    .bento-grid .card-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .modal-body {
        flex-direction: column;
        height: auto;
    }

    .modal-img {
        height: 300px;
    }
}