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

:root {
    --bg: #FFFFFF;
    --headline: #1f1235;
    --subheadline: #1b1425;
    --accent: #ff6e6c;
    --secondary: #67568c;
    --highlight: #fbdd74;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--headline);
    line-height: 1.6;
    cursor: pointer;
}

/* ================ NAVBAR ================ */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 10;
}

.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}

.logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--headline);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:not(.nav-link-pill)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:not(.nav-link-pill):hover::after {
    width: 100%;
}

.nav-link-pill {
    background: var(--headline);
    color: var(--bg) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link-pill:hover {
    transform: translateY(-2px) rotate(-2deg);
    background: var(--accent);
    color: var(--headline) !important;
}

/* ================ HERO ================ */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem;
    position: relative;
}

.hero-splats {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-splats path {
    transition: fill 1s ease;
}

.hero-splats g:nth-child(2) path {
    opacity: 0.15;
}

.hero-inner {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-link {
    color: var(--headline);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.hero-link:hover {
    opacity: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: var(--headline);
    color: var(--bg);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--headline);
    margin-bottom: 2rem;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--secondary);
}

.hero-content h1 .highlight {
    position: relative;
    display: inline-block;
}

.hero-content h1 .highlight::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 15%;
    bottom: 15%;
    background: var(--accent);
    z-index: -1;
    transform: rotate(-2deg);
    border-radius: 8px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--subheadline);
    line-height: 1.6;
    max-width: 520px;
}

.hero-content p strong {
    font-weight: 700;
    color: var(--headline);
}

/* ================ VISUAL ================ */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browser-illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(8px 12px 0 var(--headline));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

.visual-sticker {
    position: absolute;
    font-size: 3rem;
    color: var(--accent);
    font-family: 'Fraunces', serif;
    z-index: 2;
    animation: spin 12s linear infinite;
}

.sticker-1 {
    top: 5%;
    right: 5%;
    color: var(--secondary);
    animation-duration: 15s;
}

.sticker-2 {
    bottom: 5%;
    left: 0%;
    font-size: 4rem;
    color: var(--highlight);
    animation-duration: 20s;
    animation-direction: reverse;
}

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

/* ================ DIVIDERS ================ */
.divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -2px;
}

.divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.divider-hero-to-breakdown {
    background: var(--bg);
}

.divider-breakdown-to-action {
    background: var(--headline);
}

/* ================ BREAKDOWN SECTION ================ */
.breakdown {
    padding: 6rem 3rem;
    background: var(--headline);
    position: relative;
}

.breakdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--secondary) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.breakdown-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.breakdown-name-row {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1.5rem;
}

.type-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bg);
    opacity: 0.4;
}

.type-palette-name {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    font-style: italic;
    color: var(--bg);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* --- Palette cards (unified swatch + type sample) --- */
.palette-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.palette-card {
    border: 2px solid var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.palette-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--bg);
}


.palette-card-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.palette-card-role {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.5;
}

.palette-card-sample {
    flex: 1;
    line-height: 1.3;
    min-height: 2.5rem;
}

.palette-card-desc {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    line-height: 1.4;
}

.palette-card-hex {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    opacity: 0.65;
    margin-top: 0.25rem;
}

/* --- Palette analysis row --- */
.palette-analysis-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.analysis-blobs {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    overflow: visible;
}

.palette-analysis-text {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.palette-analysis-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bg);
    opacity: 0.35;
}

#palette-analysis {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--bg);
    opacity: 0.7;
}

/* ================ IN ACTION SECTION ================ */
.in-action {
    padding: 6rem 3rem;
    background: var(--bg);
    position: relative;
}

.action-splats {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.action-splats path {
    transition: fill 1s ease;
}

.action-splats g:nth-child(2) path {
    opacity: 0.15;
}

.in-action-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.in-action-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--headline);
    margin-bottom: 1rem;
}

.in-action-header h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.in-action-header p {
    font-size: 1.15rem;
    color: var(--subheadline);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ui-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--subheadline);
    opacity: 0.6;
    text-align: center;
}

.card-inner {
    background: var(--bg);
    border: 2px solid var(--headline);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--headline);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
}

.card-inner:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--headline);
}

/* --- Social Card --- */
.social-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.social-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

.social-meta {
    flex: 1;
}

.social-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--headline);
}

.social-handle {
    font-size: 0.8rem;
    color: var(--subheadline);
    opacity: 0.7;
}

.social-follow-btn {
    padding: 0.35rem 0.9rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.social-image {
    width: 100%;
    height: 230px;
    background: var(--accent);
    position: relative;
    overflow: hidden;
}

.social-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--highlight);
    opacity: 0.5;
}

.social-body {
    padding: 1rem 1.25rem;
}

.social-caption {
    font-size: 0.9rem;
    color: var(--headline);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.social-actions {
    display: flex;
    gap: 1.25rem;
}

.social-action {
    font-size: 0.8rem;
    color: var(--subheadline);
    font-weight: 500;
    cursor: pointer;
    opacity: 0.8;
}

/* --- Shop Card --- */
.shop-image {
    width: 100%;
    height: 250px;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.shop-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--highlight);
    opacity: 0.6;
}

.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.8rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.shop-body {
    padding: 1.25rem;
}

.shop-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.shop-title {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 0.75rem;
}

.shop-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shop-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--headline);
}

.shop-old-price {
    font-size: 0.9rem;
    color: var(--subheadline);
    text-decoration: line-through;
    opacity: 0.6;
}

.shop-cta {
    display: block;
    padding: 0.75rem;
    background: var(--headline);
    color: var(--bg);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
}

/* --- Review Card --- */
.card-review .card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: space-between;
}

.review-stars {
    font-size: 1.2rem;
    color: var(--highlight);
    letter-spacing: 2px;
}

.review-text {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--headline);
    line-height: 1.6;
    flex: 1;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.review-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--headline);
}

.review-role {
    font-size: 0.8rem;
    color: var(--subheadline);
    opacity: 0.7;
}

/* --- Music Player Card --- */
.music-cover {
    width: 100%;
    height: 260px;
    background: var(--headline);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.25rem;
}

.music-cover-blob {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.35;
}

.music-cover-blob::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--highlight);
    opacity: 0.4;
}

.music-cover-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.music-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.music-track {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--headline);
}

.music-artist {
    font-size: 0.85rem;
    color: var(--subheadline);
    opacity: 0.75;
    margin-top: -0.5rem;
}

.music-progress {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.music-bar {
    width: 100%;
    height: 4px;
    background: var(--subheadline);
    border-radius: 999px;
    opacity: 0.25;
    position: relative;
    overflow: hidden;
}

.music-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 38%;
    background: var(--accent);
    border-radius: 999px;
    opacity: 1;
}

.music-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--subheadline);
    opacity: 0.6;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.music-btn {
    font-size: 1rem;
    color: var(--subheadline);
    cursor: pointer;
    opacity: 0.7;
}

.music-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 0.9rem;
    opacity: 1;
}

/* --- Recipe Card --- */
.recipe-image {
    width: 100%;
    height: 200px;
    background: var(--highlight);
    position: relative;
    overflow: hidden;
}

.recipe-image::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.5;
}

.recipe-time-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    background: var(--headline);
    color: var(--bg);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.recipe-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
}

.recipe-tag {
    padding: 0.25rem 0.7rem;
    background: var(--secondary);
    color: var(--headline);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
}

.recipe-title {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--headline);
    line-height: 1.3;
}

.recipe-desc {
    font-size: 0.85rem;
    color: var(--subheadline);
    line-height: 1.5;
    opacity: 0.85;
}

.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.recipe-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--subheadline);
    opacity: 0.7;
}

.recipe-save {
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

/* --- Newsletter Card --- */
.card-newsletter .card-inner {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--headline);
}

.newsletter-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-icon {
    font-size: 2rem;
}

.newsletter-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg);
    line-height: 1.1;
}

.newsletter-desc {
    font-size: 0.875rem;
    color: var(--bg);
    opacity: 0.7;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    background: var(--bg);
    color: var(--subheadline);
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0.5;
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.newsletter-fine {
    font-size: 0.75rem;
    color: var(--bg);
    opacity: 0.4;
    text-align: center;
}

/* ================ HISTORY SECTION ================ */
.history-section {
    padding: 6rem 3rem;
    background: var(--headline);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--secondary) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.history-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.history-header {
    margin-bottom: 2.5rem;
}

.history-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--bg);
    margin-bottom: 0.5rem;
}

.history-header h2 em {
    font-style: italic;
    font-weight: 400;
}

.history-header p {
    font-size: 1rem;
    color: var(--bg);
    opacity: 0.55;
}

.history-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg) transparent;
}

.history-empty {
    font-size: 0.9rem;
    color: var(--bg);
    opacity: 0.4;
    padding: 2rem 0;
}

.history-card {
    flex-shrink: 0;
    width: 120px;
    border: 2px solid var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--bg);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.history-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--bg);
}

.history-card.active {
    box-shadow: 4px 4px 0 var(--accent);
    border-color: var(--accent);
}

.history-swatches {
    display: flex;
    flex-direction: column;
}

.history-swatch {
    height: 22px;
    width: 100%;
}

.history-card-name {
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--headline);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--bg);
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* ================ FOOTER ================ */
.footer {
    padding: 4rem 3rem 8rem;
    background: var(--bg);
    border-top: 1px solid rgba(128,128,128,0.1);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
}

.footer-brand p {
    color: var(--subheadline);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-credit {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-credit p {
    color: var(--subheadline);
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--headline);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    opacity: 0.7;
}

.footer-copyright {
    opacity: 0.5;
}

/* ================ EXPORT BAR ================ */
.export-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--headline);
    border-top: 2px solid var(--bg);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 3rem;
}

.export-bar.visible {
    transform: translateY(0);
}

.export-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.export-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-shrink: 0;
}

.export-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg);
    opacity: 0.4;
}

.export-name {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 900;
    font-style: italic;
    color: var(--bg);
    white-space: nowrap;
}

.export-swatches {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.export-swatch {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.export-swatch:hover {
    transform: scale(1.1);
}

.swatch-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
    flex-direction: row;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
}

.export-swatch:hover .swatch-popup,
.swatch-popup:hover {
    display: flex;
}

.swatch-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.swatch-popup-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
}

.swatch-popup-btn:hover {
    background: rgba(255,255,255,0.12);
}

.swatch-popup-btn svg {
    width: 13px;
    height: 13px;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 2;
}

/* ---- Color picker popover ---- */
.color-popover {
    position: fixed;
    background: #1c1c1e;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 9999;
}

.color-popover-preview {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.1);
}

.color-popover-native {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-popover-native::-webkit-color-swatch-wrapper { padding: 0; }
.color-popover-native::-webkit-color-swatch { border: none; border-radius: 6px; }

.color-popover-hex-row {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0 8px;
    gap: 4px;
}

.color-popover-hash {
    color: rgba(255,255,255,0.35);
    font-family: monospace;
    font-size: 0.85rem;
}

.color-popover-hex {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: monospace;
    font-size: 0.85rem;
    width: 100%;
    padding: 6px 0;
}

.color-popover-apply {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 7px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.color-popover-apply:hover {
    opacity: 0.85;
}

.export-swatch.locked {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.5), 0 0 0 4px rgba(255,255,255,0.6);
}

.export-swatch .lock-icon {
    display: none;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}

.export-swatch .lock-icon svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    stroke-width: 2.5;
}

.export-swatch.locked .lock-icon {
    display: block;
}

.export-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.export-btn {
    padding: 0.5rem 1.1rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: var(--bg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.export-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.export-btn.copied {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--headline);
}

.export-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--headline);
    font-weight: 700;
}

.export-btn-primary:hover {
    opacity: 0.85;
    background: var(--accent);
}

/* ================ RESPONSIVE ================ */
@media (max-width: 900px) {
    .navbar {
        padding: 1.25rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-link:not(.nav-link-pill) {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content p {
        margin: 0 auto;
    }

    .hero-tag {
        margin-bottom: 1.5rem;
    }

    .browser-illustration {
        max-width: 400px;
    }

    .visual-sticker {
        font-size: 2rem;
    }

    .sticker-2 {
        font-size: 2.5rem;
    }

    .in-action {
        padding: 4rem 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    
    .palette-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .social-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .palette-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .palette-card {
        border-width: 2px;
    }
    
    .analysis-blobs {
        display: none;
    }
    
    .export-swatches {
        display: none;
    }
    
    .palette-card-body {
        padding: 1rem;
    }
    
    .palette-card-sample {
        font-size: 0.9rem;
    }
    
    .history-section {
        padding: 4rem 1.5rem;
    }
    
    .history-inner {
        max-width: 100%;
    }
    
    .history-header {
        margin-bottom: 2rem;
    }
    
    .history-header h2 {
        font-size: 2rem;
    }
    
    .history-header p {
        font-size: 0.95rem;
    }
    
    .history-strip {
        gap: 0.75rem;
    }
}
