/* ============================================
   MUTINY — styles.css
   Dark theme: #0D0D1A | Gradient: #C850C0 → #FF6B9D
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #0D0D1A;
  --bg-surface:  #13131F;
  --bg-card:     #1A1A2E;
  --bg-card-hi:  #1F1F35;

  --grad-start:  #C850C0;
  --grad-end:    #FF6B9D;
  --grad:        linear-gradient(135deg, #C850C0 0%, #FF6B9D 100%);
  --grad-text:   linear-gradient(135deg, #C850C0 0%, #FF6B9D 100%);
  --grad-subtle: linear-gradient(135deg, rgba(200,80,192,.15) 0%, rgba(255,107,157,.08) 100%);

  --border:      rgba(200,80,192,.15);
  --border-hi:   rgba(200,80,192,.4);

  --text:        #F0F0FA;
  --text-2:      #9090AA;
  --text-3:      #5A5A72;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-glow: 0 0 40px rgba(200,80,192,.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ──────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ──────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,26,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .85; }

.logo-text { font-weight: 800; }

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

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-link-small { font-size: .875rem !important; }

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: .875rem !important;
  transition: opacity .2s, transform .2s, box-shadow .2s !important;
  box-shadow: 0 4px 16px rgba(200,80,192,.3);
}
.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,80,192,.4) !important;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,   rgba(200,80,192,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 70%,  rgba(255,107,157,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%,  rgba(200,80,192,.10) 0%, transparent 60%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: .8; }
  to   { opacity: 1;  }
}

/* subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,80,192,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,80,192,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge svg { width: 14px; height: 14px; vertical-align: middle; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,80,192,.1);
  border: 1px solid var(--border-hi);
  color: #FF6B9D;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  animation: bounce 2.4s ease-in-out infinite;
  transition: opacity .4s;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0);   }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(200,80,192,.35);
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(200,80,192,.45);
}

.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: .75rem 1.5rem;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(200,80,192,.06);
}

.btn-download {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
  padding: .85rem 1.5rem;
}
.btn-download:hover {
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,80,192,.35);
}

.btn-disabled {
  background: var(--bg-card) !important;
  color: var(--text-3) !important;
  border: 1px solid var(--border) !important;
  cursor: not-allowed !important;
  opacity: .6;
  width: 100%;
  justify-content: center;
  pointer-events: none;
}

/* ── Section shared ──────────────────────── */
section { padding: 7rem 0; }

.section-label {
  display: inline-block;
  background: var(--grad-subtle);
  border: 1px solid var(--border-hi);
  color: #FF6B9D;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.15rem;
  color: var(--text-2);
}

/* ── Features ────────────────────────────── */
.features {
  background: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 40px rgba(200,80,192,.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--grad-subtle);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  color: #C850C0;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Compare / Why Mutiny ────────────────── */
.compare { background: var(--bg); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.compare-legacy {
  border-color: rgba(255,255,255,.08);
}

.compare-mutiny {
  border-color: var(--border-hi);
  background: var(--bg-card-hi);
  box-shadow: 0 0 0 1px var(--border-hi), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.compare-mutiny::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

.compare-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.compare-icon svg {
  color: #C850C0;
  width: 32px;
  height: 32px;
}
.compare-legacy .compare-icon svg { opacity: .45; }

.compare-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

.compare-legacy h3 { color: var(--text-2); }
.compare-mutiny h3 { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.compare-card ul { list-style: none; }

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  color: var(--text-2);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.compare-card li:last-child { border-bottom: none; }

.compare-card li::before {
  content: '✕';
  color: var(--text-3);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.compare-mutiny li { color: var(--text); }
.compare-mutiny li::before {
  content: '✓';
  color: #FF6B9D;
  font-weight: 800;
  font-size: .9rem;
}

/* ── Download ────────────────────────────── */
.download { background: var(--bg-surface); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .download-grid { grid-template-columns: 1fr; }
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.download-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 40px rgba(200,80,192,.2);
}

.download-disabled {
  opacity: .5;
  cursor: default;
}
.download-disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.download-icon {
  width: 64px;
  height: 64px;
  background: var(--grad-subtle);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #FF6B9D;
}

.download-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.download-sub {
  color: var(--text-3);
  font-size: .83rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.footer-tagline {
  color: var(--text-2);
  font-size: .9rem;
  max-width: 260px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 500px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: .55rem;
  transition: color .2s;
}
.footer-col a:hover { color: #FF6B9D; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-3);
  font-size: .85rem;
}

/* ── Inner page styles (privacy, support) ── */
.page-body { /* inherits body */ }

.page-header {
  padding: 10rem 0 5rem;
  background: var(--bg-surface);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .75rem;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-2);
}

/* prose content */
.prose-section {
  padding: 5rem 0 7rem;
}

.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.prose-wrap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 3rem 0 .75rem;
  color: var(--text);
}

.prose-wrap h2:first-child { margin-top: 0; }

.prose-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 .5rem;
  color: var(--text);
}

.prose-wrap p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-wrap a {
  color: #FF6B9D;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.prose-wrap a:hover { opacity: .8; }

.prose-wrap ul,
.prose-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-wrap li {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: .5rem;
}

.prose-wrap strong { color: var(--text); font-weight: 600; }

.prose-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* highlight box */
.prose-highlight {
  background: var(--grad-subtle);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.prose-highlight p { color: var(--text); margin: 0; }

/* FAQ accordion */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-hi); }

.faq-q {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
  transition: background .2s;
  font-family: inherit;
}
.faq-q:hover { background: var(--bg-card-hi); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform .3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  background: var(--bg-card);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 1.4rem 1.2rem;
}
.faq-a p, .faq-a li {
  color: var(--text-2);
  line-height: 1.7;
  font-size: .95rem;
}
.faq-a a { color: #FF6B9D; text-decoration: underline; }
.faq-a ol, .faq-a ul { padding-left: 1.5rem; margin-top: .5rem; }
.faq-a li { margin-bottom: .4rem; }

/* contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 4rem;
}
.contact-card h2 { margin-top: 0 !important; }
.contact-card .contact-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin: 1rem 0;
  transition: opacity .2s, transform .2s;
}
.contact-card .contact-email:hover { opacity: .9; transform: translateY(-1px); }

/* ── Animations ──────────────────────────── */
.fade-in {
  opacity: 0;
  animation: fadeIn .9s ease forwards;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn { to { opacity: 1; } }

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: .0s; }
.stagger > *:nth-child(2) { transition-delay: .1s; }
.stagger > *:nth-child(3) { transition-delay: .2s; }
.stagger > *:nth-child(4) { transition-delay: .3s; }
.stagger > *:nth-child(5) { transition-delay: .4s; }
.stagger > *:nth-child(6) { transition-delay: .5s; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta):not(.nav-link-small) { display: none; }
  .nav-link-small { display: none; }
  section { padding: 5rem 0; }
  .hero { padding: 8rem 1.5rem 5rem; }
}

@media (max-width: 500px) {
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
