/* Shared AmaliticZ site styles. Plain CSS, no build step. */

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

:root {
  --bg:       #060608;
  --surface:  #111115;
  --surface2: #2c2c2e;
  --card:     #1c1c1e;
  --border:   rgba(255,255,255,0.07);
  --text:     #f0f0f2;
  --muted:    #7a7a8a;
  --muted2:   #8e8e93;
  --orange:   #f4883a;
  --blue:     #5ab4f5;
  --teal:     #4ecdc4;
  --mint:     #7ed8c0;
  --pink:     #f48fb1;
  --yellow:   #f4c542;
  --magenta:  #c966cc;
  --red:      #e8566a;
  --sky:      #7ec8e3;
  --coral:    #e87a5a;
  --radius:   18px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: 108px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 40;
}

h1, h2, h3, .nav-logo span, .footer-logo span, .section-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

button, input, select, textarea { font-family: inherit; color: inherit; }

a { color: var(--sky); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px 22px;
  padding: 14px 32px;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo img, .footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.footer-logo img { width: 30px; height: 30px; border-radius: 8px; }

.nav-logo span { font-size: 22px; line-height: 1; color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.85; }
.nav-cta:visited { color: var(--bg); }

/* ── STORE BADGES ── */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.store-btn {
  display: inline-block;
  background: transparent;
  color: #000;
  text-decoration: none;
  padding: 0;
  border-radius: 14px;
  line-height: 0;
  transition: transform 0.2s;
}

.store-btn:visited { color: #000; }
.store-btn:hover { transform: translateY(-2px); }

.store-btn svg {
  width: 210px;
  height: auto;
  display: block;
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 40px 32px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo { margin-bottom: 8px; }
.footer-logo span { font-size: 20px; line-height: 1; }
.footer-tagline { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

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

.site-footer .footer-logo,
.site-footer .footer-logo:hover,
.site-footer .footer-logo span {
  color: var(--text);
  font-size: 20px;
}

.footer-divider { height: 1px; background: var(--border); margin-bottom: 24px; }

.footer-legal { display: flex; flex-direction: column; gap: 10px; }

.footer-legal p,
.footer-copy {
  font-size: 11px;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 860px;
}

.footer-copy { margin-top: 6px; }

/* ── DONUT SEGMENTS ──
   Drawn in full by default so the chart is visible with no JavaScript.
   The draw animation runs only after JS adds .js and motion is allowed. */
.seg { stroke-dasharray: var(--len) 1000; }

/* ── LEGAL PAGES ── */
.legal {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 132px 24px 80px;
}

.legal-header { text-align: center; margin-bottom: 28px; }

.legal-header h1 {
  font-size: clamp(48px, 8vw, 76px);
  line-height: 0.95;
  color: var(--text);
}

.legal-lead {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.legal-notice,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 14px;
}

.legal-notice {
  background: rgba(244, 136, 58, 0.08);
  border-color: rgba(244, 136, 58, 0.28);
  border-left: 4px solid var(--orange);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.legal-notice strong {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-card h2 {
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-card p,
.legal-card li {
  color: #d2d2da;
  font-size: 15.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.legal-card p + p,
.legal-card ul,
.legal-card .small { margin-top: 12px; }

.legal-card ul { padding-left: 1.15em; }
.legal-card li + li { margin-top: 6px; }

.legal-card strong {
  color: var(--text);
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0;
}

.legal-card .small { color: var(--muted); font-size: 14px; }

.legal a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ── APP PAGES (support, reset, verified) ── */
.app-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  width: 100%;
  padding: 48px 18px 36px;
}

/* ── MOTION ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .seg {
    stroke-dasharray: 0 1000;
    animation: draw 1.25s cubic-bezier(.22, 1, .36, 1) forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .store-btn:hover { transform: none; }
}

@keyframes draw {
  to { stroke-dasharray: var(--len) 1000; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 12px 16px 10px;
    gap: 4px 12px;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    gap: 16px;
  }

  .nav-cta { margin-left: auto; }

  .legal { padding: 148px 16px 56px; }
  .legal-notice, .legal-card { padding: 18px 16px; }

  .site-footer { padding: 32px 20px 24px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-links { gap: 16px; }

  .store-row { flex-direction: column; }
}

@media (max-width: 380px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
}
