/* MemoDrama Web — core styles (supports [data-theme] attribute for dark/light) */

:root {
  --md-primary: #5B3BDE;
  --md-primary-2: #4A2CD4;
  --md-primary-hover: #6E50E8;
  --md-gradient: linear-gradient(135deg, #7E27FF 0%, #5B3BDE 50%, #4A2CD4 100%);
  --md-gradient-alt: linear-gradient(135deg, #9233FF 0%, #C43BFB 100%);
  --md-pink: #FF3D88;
  --md-hot: #FF4D5E;

  --md-font: 'Nunito Sans', -apple-system, system-ui, sans-serif;
  --md-mono: 'Space Grotesk', ui-monospace, monospace;
  --md-display: 'Epilogue', -apple-system, system-ui, sans-serif;
}

/* DARK (default) */
html[data-theme="dark"], :root {
  --bg: #000000;
  --bg-2: #0A0A0F;
  --surface: #14141C;
  --surface-2: #1C1C26;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --fg: #FFFFFF;
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.48);
  --hero-bg: radial-gradient(ellipse at 30% 20%, #2e1a7a 0%, #12082f 45%, #000000 100%);
  --card-bg: #14141C;
  --nav-bg: rgba(0,0,0,0.72);
}

/* LIGHT */
html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F5F3FF;
  --surface: #FFFFFF;
  --surface-2: #F5F3FF;
  --border: rgba(17,12,46,0.08);
  --border-strong: rgba(17,12,46,0.16);
  --fg: #0E0B1F;
  --fg-2: rgba(14,11,31,0.72);
  --fg-3: rgba(14,11,31,0.52);
  --hero-bg: linear-gradient(180deg, #5B3BDE 0%, #7B4FE8 55%, #A78BFA 100%);
  --card-bg: #FFFFFF;
  --nav-bg: rgba(255,255,255,0.82);
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--md-font); }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Scrollbar styling */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* Reveal animation utility */
.md-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.md-reveal.in { opacity: 1; transform: translateY(0); }
.md-reveal-delay-1 { transition-delay: .08s; }
.md-reveal-delay-2 { transition-delay: .16s; }
.md-reveal-delay-3 { transition-delay: .24s; }
.md-reveal-delay-4 { transition-delay: .32s; }

/* Marquee */
@keyframes md-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Float anim for phone */
@keyframes md-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes md-float-2 { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(10px) rotate(4deg); } }

/* Gradient blob */
@keyframes md-blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.1); } 66% { transform: translate(-30px,40px) scale(.95); } }

/* Hamburger hidden by default */
.md-nav-hamburger { display: none; }

/* === Responsive === */
@media (max-width: 900px) {
  .md-nav { padding: 14px 20px !important; }
  .md-nav[data-scrolled="true"] { padding: 10px 20px !important; }
  .md-nav-links { display: none !important; }
  .md-nav-lang { display: none !important; }
  .md-nav-cta { display: none !important; }
  .md-nav-hamburger { display: flex !important; }
  .md-nav #mdThemeToggle { margin-left: auto; }
  section { padding-left: 24px !important; padding-right: 24px !important; }
  footer { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (max-width: 480px) {
  section { padding-left: 16px !important; padding-right: 16px !important; padding-top: 48px !important; }
  footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ===== PREMIUM PRICING CARDS ===== */
.md-pricing-grid .md-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.md-pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(126, 39, 255, 0.1) 0%, rgba(255, 61, 136, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.md-pricing-card:hover::before {
  opacity: 1;
}

.md-pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(91, 59, 222, 0.4);
}

/* Best tier */
.md-pricing-card[data-best="true"] {
  background: linear-gradient(135deg, rgba(126, 39, 255, 0.25) 0%, rgba(196, 59, 251, 0.15) 100%);
  border: 2px solid rgba(255, 61, 136, 0.4);
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 61, 136, 0.2) inset,
              0 30px 80px -20px rgba(126, 39, 255, 0.6),
              0 -1px 0 0 rgba(255, 255, 255, 0.1) inset;
}

.md-pricing-card[data-best="true"]:hover {
  border-color: rgba(255, 61, 136, 0.6);
  transform: scale(1.04) translateY(-8px);
  box-shadow: 0 0 0 1px rgba(255, 61, 136, 0.3) inset,
              0 40px 100px -20px rgba(126, 39, 255, 0.7),
              0 -1px 0 0 rgba(255, 255, 255, 0.1) inset;
}

.md-pricing-card[data-best="true"]::before {
  display: none;
}

.md-pricing-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
  font-family: var(--md-mono);
}

.md-pricing-card[data-best="true"] .md-pricing-label {
  opacity: 0.9;
}

.md-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF3D88 0%, #FF6B6B 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(255, 61, 136, 0.6);
  font-family: var(--md-display);
}

.md-pricing-title {
  font-family: var(--md-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.md-pricing-price {
  font-family: var(--md-display);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 12px 0 4px 0;
  background: linear-gradient(135deg, #fff 0%, #fff 65%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-pricing-card[data-best="true"] .md-pricing-price {
  background: linear-gradient(135deg, #fff 0%, #fff 65%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-pricing-subtitle {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 8px;
  line-height: 1.5;
}

.md-pricing-card[data-best="true"] .md-pricing-subtitle {
  opacity: 0.8;
}

.md-pricing-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  margin: 24px 0 24px 0;
}

.md-pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex: 1;
}

.md-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.md-pricing-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(91, 59, 222, 0.2);
  color: #9233FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.md-pricing-card[data-best="true"] .md-pricing-feature-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.md-pricing-cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--md-display);
  letter-spacing: 0.02em;
}

.md-pricing-card:not([data-best="true"]) .md-pricing-cta {
  background: var(--md-primary);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(91, 59, 222, 0.4);
}

.md-pricing-card:not([data-best="true"]) .md-pricing-cta:hover {
  background: #6E50E8;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(91, 59, 222, 0.55);
}

.md-pricing-card[data-best="true"] .md-pricing-cta {
  background: #fff;
  color: #5B3BDE;
  box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.3);
}

.md-pricing-card[data-best="true"] .md-pricing-cta:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(255, 255, 255, 0.4);
}

.md-pricing-card[data-best="true"] .md-pricing-cta:active {
  transform: translateY(0);
}

.md-pricing-card:not([data-best="true"]) .md-pricing-cta:active {
  transform: translateY(0);
}
