/* SunoX web — aligns with app theme (lavender / deep violet) */

:root {
  --bg-base: #f5f3ff;
  --bg-elevated: #ffffff;
  --text: #1a1025;
  --text-muted: #5a5270;
  --primary: #9b7ee8;
  --primary-soft: #b8a2f5;
  --primary-deep: #7b5dd4;
  --deep: #0a0a0f;
  --white: #ffffff;
  --border: rgba(155, 126, 232, 0.22);
  --shadow: 0 24px 60px rgba(26, 16, 37, 0.08);
  --shadow-soft: 0 8px 32px rgba(155, 126, 232, 0.15);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-base);
}

.bg-mesh::before,
.bg-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.bg-mesh::before {
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
}

.bg-mesh::after {
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(155, 126, 232, 0.35) 0%, transparent 70%);
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(245, 243, 255, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(123, 93, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(123, 93, 212, 0.4);
  color: var(--white);
}

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

.btn-ghost:hover {
  background: var(--white);
  color: var(--text);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text);
  display: block;
  font-size: 0.95rem;
}

.hero-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(184, 162, 245, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.feature-mini {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.feature-mini:last-child {
  margin-bottom: 0;
}

.feature-mini svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary-deep);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-dark {
  background: linear-gradient(165deg, var(--deep) 0%, #14141f 100%);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .text-muted {
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.65);
}

.cards-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 162, 245, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.section:not(.section-dark) .card {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(26, 16, 37, 0.04);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 126, 232, 0.45);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: inherit;
  opacity: 0.85;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary) 50%, var(--primary-deep) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  margin: 2rem 0 0;
  box-shadow: var(--shadow-soft);
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.cta-strip p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-strip .btn-ghost {
  background: var(--white);
  color: var(--primary-deep);
  border: none;
}

.cta-strip .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Privacy page */
.page-main {
  padding: 2.5rem 0 4rem;
}

.policy-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.policy-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.policy-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.policy-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 0.65rem;
}

.policy-card h2:first-of-type {
  margin-top: 1.5rem;
}

.policy-card p,
.policy-card li {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.policy-card ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.policy-card li {
  margin-bottom: 0.5rem;
}

.policy-card strong {
  color: var(--text);
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text-muted);
  opacity: 0.6;
  margin: 0 0.4rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links .btn {
    width: 100%;
  }
}

/* Delete account page */
.delete-page {
  max-width: var(--max-w);
}

.delete-hero {
  max-width: 720px;
  margin-bottom: 2rem;
}

.delete-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.delete-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.delete-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .delete-grid {
    grid-template-columns: 1fr min(380px, 38%);
    gap: 1.75rem;
  }
}

.delete-card {
  max-width: none;
  margin: 0;
}

.delete-form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.delete-form-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-group .req {
  font-weight: 500;
  color: var(--primary-deep);
  font-size: 0.85rem;
}

.form-group .opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 126, 232, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500 !important;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary-deep);
}

.form-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: rgba(180, 35, 24, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(180, 35, 24, 0.2);
}

.btn-submit-delete {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.success-panel {
  text-align: center;
  border-color: rgba(34, 139, 84, 0.35);
  background: linear-gradient(180deg, rgba(34, 139, 84, 0.06) 0%, var(--bg-elevated) 40%);
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 139, 84, 0.15);
  color: #1d7a48;
  display: grid;
  place-items: center;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.success-message {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.success-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.delete-aside .aside-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.aside-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.data-delete-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-delete-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

.data-delete-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-check {
  flex-shrink: 0;
  color: var(--primary-deep);
  margin-top: 0.1rem;
}

.policy-deletion .policy-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-deletion .policy-bullets li {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--primary-soft);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.policy-deletion .policy-bullets li:last-child {
  margin-bottom: 0;
}

.policy-deletion .policy-bullets strong {
  color: var(--text);
}
