/* ===== Oats Music Bot - dark purple/blue gradient theme ===== */

:root {
  --bg: #0b0b16;
  --bg-elev: #14142b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0ff;
  --text-dim: #9aa0c4;
  --text-faint: #6b6f93;
  --brand-1: #7c5cff;    /* purple */
  --brand-2: #4f8cff;    /* blue  */
  --brand-3: #b388ff;    /* lilac */
  --success: #4ade80;
  --danger: #ff6b88;
  --shadow-lg: 0 20px 60px rgba(80, 40, 200, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(79, 140, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #0a0a14 0%, #07070f 100%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-3); text-decoration: none; }
a:hover { color: var(--text); }

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.45);
}

.site-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}

.site-nav .nav-cta:hover { transform: translateY(-1px); }
.site-nav .nav-ghost { border: 1px solid var(--border); }

/* ===== Main ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(500px 300px at 70% 60%, rgba(79, 140, 255, 0.3), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, #c8c5ff 50%, #8aa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-sub strong { color: var(--text); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-pricing {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.price-tag {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-unit { color: var(--text-dim); font-size: 15px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}

.btn-primary:hover { transform: translateY(-1px); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ===== Features ===== */
.features {
  padding: 60px 0;
}

.features h2 {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(79, 140, 255, 0.25));
  color: var(--brand-3);
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===== CTA ===== */
.cta {
  margin-top: 40px;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 200px at 50% 50%, rgba(124, 92, 255, 0.2), transparent 70%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(79, 140, 255, 0.12));
  border: 1px solid var(--border);
}

.cta-inner h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 10px;
}

.cta-inner p {
  color: var(--text-dim);
  margin: 0 0 24px;
}

/* ===== Dashboard ===== */
.dashboard {
  max-width: 720px;
  margin: 40px auto;
}

.dashboard-header { margin-bottom: 24px; }

.identity {
  display: flex;
  gap: 16px;
  align-items: center;
}

.identity h1 { margin: 0; font-size: 26px; }
.identity .subtle { margin: 2px 0; color: var(--text-faint); font-size: 13px; }

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.membership-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.status-label { color: var(--text-dim); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill-active { background: rgba(74, 222, 128, 0.15); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.3); }
.pill-inactive { background: rgba(255, 107, 136, 0.15); color: var(--danger); border: 1px solid rgba(255, 107, 136, 0.3); }

.expires { margin: 8px 0 4px; font-size: 16px; }
.subtle { color: var(--text-dim); font-size: 14px; }

.subscribe-form { margin-top: 20px; }

/* ===== Success / Error ===== */
.success, .error {
  display: flex;
  justify-content: center;
  margin: 60px auto;
}

.success-card, .error-card {
  max-width: 520px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5);
}

.success-card h1, .error-card h1 { margin: 0 0 10px; }
.success-card p, .error-card p { color: var(--text-dim); }

.success-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  padding: 30px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-inner a { color: var(--text-dim); }
.footer-inner .sep { color: var(--text-faint); }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .site-header, .site-main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 40px 0 60px; }
  .identity { flex-direction: column; text-align: center; }
}
