/* HairBeautify — hair-beautify.web.app */

:root {
  --base: #000c1b;
  --surface: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.1);
  --text: #f5f7fa;
  --text-2: #93a0b2;
  --flame-1: #fb6b3c;
  --flame-2: #f03e2a;
  --teal: #009f9a;
  --gold: #f5c518;
  --grad: linear-gradient(120deg, var(--flame-1), var(--flame-2));
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 420px at 18% 8%, rgba(251, 107, 60, 0.1), transparent 70%),
    radial-gradient(700px 520px at 86% 78%, rgba(0, 159, 154, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.02) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.02) 39px 40px);
}

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(0, 12, 27, 0.78);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-right: auto;
}

/* Strand mark — waving locks of hair */
.logo-strands {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.logo-strands span {
  width: 4px;
  height: 100%;
  border-radius: 3px;
  background: var(--grad);
  transform-origin: top center;
  animation: sway 2.6s ease-in-out infinite;
}

.logo-strands span:nth-child(1) { height: 62%; animation-delay: 0s; }
.logo-strands span:nth-child(2) { height: 88%; animation-delay: 0.18s; }
.logo-strands span:nth-child(3) { height: 100%; animation-delay: 0.36s; }
.logo-strands span:nth-child(4) { height: 76%; animation-delay: 0.54s; }

@keyframes sway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-strands span, .look-chip { animation: none !important; }
}

nav a.link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

nav a.link:hover, nav a.link.active { color: var(--text); }

/* ---------- Layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 84px 0 72px;
}

.app-mark {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 46px rgba(251, 107, 60, 0.25);
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  margin: 22px auto 0;
  max-width: 580px;
  color: var(--text-2);
  font-size: 1.12rem;
}

/* Tool chips — the same gradients the app uses on its tool cards */
.look-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 46px auto 0;
  max-width: 640px;
}

.look-chip {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}

.look-chip:nth-child(1) { background: linear-gradient(135deg, #f45f8a, #a2294c); animation-delay: 0s; }
.look-chip:nth-child(2) { background: linear-gradient(135deg, #8d5ff5, #922aa2); animation-delay: 0.3s; }
.look-chip:nth-child(3) { background: linear-gradient(135deg, #5fa6f4, #2935a2); animation-delay: 0.6s; }
.look-chip:nth-child(4) { background: linear-gradient(135deg, #5fe0a0, #1a7f55); animation-delay: 0.9s; }
.look-chip:nth-child(5) { background: linear-gradient(135deg, #fab450, #c85a14); animation-delay: 1.2s; }
.look-chip:nth-child(6) { background: linear-gradient(135deg, #4fc3f7, #1565c0); animation-delay: 1.5s; }
.look-chip:nth-child(7) { background: linear-gradient(135deg, #b388ff, #512da8); animation-delay: 1.8s; }
.look-chip:nth-child(8) { background: linear-gradient(135deg, #ff8fab, #c2185b); animation-delay: 2.1s; }
.look-chip:nth-child(9) { background: linear-gradient(135deg, #ff7597, #ad1457); animation-delay: 2.4s; }
.look-chip:nth-child(10) { background: linear-gradient(135deg, #4dd0c4, #00796b); animation-delay: 2.7s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.badge-row { margin-top: 54px; }

.store-badge {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(251, 107, 60, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(251, 107, 60, 0.5);
}

.store-badge.pending {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  box-shadow: none;
  cursor: default;
}

.store-badge.pending:hover { transform: none; box-shadow: none; }

.badge-note { display: block; margin-top: 12px; color: var(--text-2); font-size: 0.85rem; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding: 24px 0 88px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(251, 107, 60, 0.8);
  flex: none;
}

.card p { color: var(--text-2); font-size: 0.93rem; }

.honesty {
  border-color: rgba(251, 107, 60, 0.35);
  grid-column: 1 / -1;
}

/* ---------- Legal / content pages ---------- */

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.page header { margin-bottom: 40px; }

.page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page .updated {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.page h2 {
  font-size: 1.22rem;
  margin: 42px 0 12px;
  padding-top: 8px;
}

.page h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 12px;
}

.page p, .page li { color: var(--text-2); font-size: 0.97rem; }

.page p strong, .page li strong { color: var(--text); }

.page ul { padding-left: 22px; margin: 10px 0; }

.page li { margin: 7px 0; }

.callout {
  background: var(--surface);
  border: 1px solid rgba(251, 107, 60, 0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}

.callout p { color: var(--text); }

.page a { color: var(--flame-1); text-decoration: none; }
.page a:hover { text-decoration: underline; }

/* ---------- Support ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.contact-card .mail-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(251, 107, 60, 0.3);
}

details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  color: var(--flame-1);
  font-weight: 800;
  font-size: 1.2rem;
}

details[open] summary::after { content: "–"; }

details p { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--text-2);
  font-size: 0.85rem;
}

.footer-inner .spacer { margin-right: auto; }

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-inner { gap: 16px; }
  nav a.link { font-size: 0.82rem; }
  .hero { padding: 60px 0 48px; }
}
