/* redesign.css — DoszCoffee dark-first redesign
 * Loaded AFTER Tailwind compiled output. Overrides @layer theme tokens.
 * [CHANGE 2026-08-20] what: dark-first theme + animations + pricing
 * why: redesign per Founder sign-off (pulsetech-style)
 * verify: open doszcoffee.com.my, scroll all sections, check dark + animations */

/* ── DARK-FIRST TOKEN OVERRIDE ── */
:root {
    --color-shell: #0A1211;
    --color-surface: #141D1C;
    --color-surface-2: #1B2726;
    --color-line: #26352F;
    --color-ink: #E6EFED;
    --color-roast: #D8863F;
    --color-roast-soft: #2A1D12;
}
:root[data-theme="light"] {
    --color-shell: #F7F9F8;
    --color-surface: #FFFFFF;
    --color-surface-2: #EEF4F3;
    --color-line: #DDE6E4;
    --color-ink: #0B1B1A;
    --color-roast: #B4632A;
    --color-roast-soft: #FBF1E8;
}

/* ── EYEBROW DARK-FIRST ── */
.eyebrow { color: var(--color-brand-300); }
:root[data-theme="light"] .eyebrow { color: var(--color-brand-700); }

/* ── PROSE LINKS DARK-FIRST ── */
.prose-site :where(a) { color: var(--color-brand-300); }
:root[data-theme="light"] .prose-site :where(a) { color: var(--color-brand-700); }

/* ── HERO SECTION ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}
.blob-1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(0,191,178,0.25), transparent 70%);
    top: -15%; left: -8%;
    animation: drift-1 22s ease-in-out infinite;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,135,77,0.15), transparent 70%);
    top: 20%; right: -10%;
    animation: drift-2 28s ease-in-out infinite;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,191,178,0.12), transparent 70%);
    bottom: -10%; left: 30%;
    animation: drift-3 25s ease-in-out infinite;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(0,191,178,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.hero-badges {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.375rem 0.875rem; border-radius: 999px;
    border: 1px solid rgba(0,191,178,0.12);
    background: rgba(0,191,178,0.04);
    font-size: 0.75rem; font-weight: 600; color: #00BFB2;
    letter-spacing: 0.02em;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00BFB2;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ── CTA GLOW ── */
.cta-glow:hover {
    box-shadow: 0 8px 30px rgba(0,191,178,0.25);
    transform: translateY(-1px);
}

/* ── STATS SECTION ── */
.stats-section {
    padding: 4.5rem 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}
.stats-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-counter {
    display: block;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #00BFB2;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-ink);
    opacity: 0.35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── VALUE CARDS (glass treatment) ── */
.value-card {
    padding: 2rem;
    border-radius: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,191,178,0.22);
    box-shadow: 0 0 48px rgba(0,191,178,0.14);
}
.value-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(0,191,178,0.12);
    display: grid; place-items: center;
    color: #00BFB2;
    margin-bottom: 1.25rem;
}
.value-card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; }
.value-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.65; opacity: 0.6; }

/* ── MENU CARD DARK FIXES ── */
.bg-brand-50 {
    background-color: var(--color-surface-2) !important;
}
:root[data-theme="light"] .bg-brand-50 {
    background-color: #E8FAF8 !important;
}

/* ── CARD HOVER GLOW (global) ── */
[class*="rounded-2xl"][class*="border"][class*="bg-surface"] {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
[class*="rounded-2xl"][class*="border"][class*="bg-surface"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(0,191,178,0.12);
}

/* ── PRICING / EVENTS SECTION ── */
.pricing-section {
    padding: 5.5rem 0;
    background: #0F1E1D;
}
.pricing-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
    position: relative;
    border-radius: 20px;
    background: #1A2E2C;
    padding: 2.25rem 1.75rem 2rem;
    transition: transform 0.35s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(0,191,178,0.15), rgba(212,135,77,0.08), rgba(0,191,178,0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.pricing-card.featured { z-index: 2; background: #1E3533; }
@media (min-width: 768px) {
    .pricing-card.featured { transform: scale(1.04); margin: -1rem 0; }
    .pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
}
.pricing-card.featured::before {
    padding: 1.5px;
    background: linear-gradient(135deg, #00BFB2, #D4874D, #33CFC4, #00BFB2);
    background-size: 300% 300%;
    animation: radiant-shift 5s ease infinite;
}
.pricing-card.featured::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 50px rgba(0,191,178,0.12), 0 0 100px rgba(0,191,178,0.06);
    pointer-events: none;
}
.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #00BFB2;
    color: #0B1B1A;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.pricing-tier {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(232,240,238,0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pricing-amount {
    margin-top: 0.5rem;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #E8F0EE;
}
.pricing-amount span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(232,240,238,0.55);
}
.pricing-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(232,240,238,0.7);
    line-height: 1.55;
}
.pricing-divider {
    height: 1px;
    background: var(--color-line);
    margin: 1.5rem 0;
}
.pricing-features {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.625rem;
    padding: 0; margin: 0;
}
.pricing-features li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.875rem; color: rgba(232,240,238,0.75); line-height: 1.5;
}
.pricing-features li svg {
    flex-shrink: 0; width: 16px; height: 16px;
    color: #00BFB2; margin-top: 2px;
}
.pricing-cta {
    display: block; text-align: center;
    margin-top: 1.75rem; padding: 0.875rem;
    border-radius: 12px; font-size: 0.875rem; font-weight: 700;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.pricing-cta.filled {
    background: #00BFB2; color: #0B1B1A;
}
.pricing-cta.filled:hover {
    background: #33CFC4;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,191,178,0.2);
}
.pricing-cta.outline {
    border: 1px solid rgba(0,191,178,0.22); color: #00BFB2;
}
.pricing-cta.outline:hover {
    background: rgba(0,191,178,0.08);
    border-color: #00BFB2;
}

/* ── ORDER CTA SECTION ── */
.order-cta-section {
    position: relative; padding: 5rem 0; overflow: hidden;
}
.order-cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,191,178,0.06), rgba(212,135,77,0.04));
    pointer-events: none;
}
.order-cta-section .wrap {
    position: relative; z-index: 2; text-align: center;
}

/* ── NAV SCROLL EFFECT ── */
header.nav-scrolled {
    background: rgba(10,18,17,0.92) !important;
    backdrop-filter: blur(18px) !important;
    border-bottom-color: var(--color-line) !important;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

/* ── KEYFRAMES ── */
@keyframes drift-1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
@keyframes drift-2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,30px); } }
@keyframes drift-3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-50px); } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.7); } }
@keyframes radiant-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
    .mesh-blob, .badge-dot, .pricing-card.featured::before { animation: none !important; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── HEADING — prevent strikethrough ── */
.section-head h2, .pricing-section h2, .hero-section h1 {
    text-decoration: none !important;
}

/* ── DARK-MODE BRAND COLOR FIX ── */
:root:not([data-theme="light"]) {
    --color-brand-50: #1B2726;
    --color-brand-700: #55D8CD;
    --color-brand-800: #94E8E0;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .hero-section { min-height: auto; }
    .stats-grid-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .pricing-card.featured { transform: none; margin: 0; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
}
