/* AI Photo Fixer — Website Styles */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --surface: #161a23;
  --surface-2: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7ecf3;
  --text-dim: #a4adbd;
  --text-mute: #7a8497;
  --primary: #7c5cff;
  --primary-2: #36d1dc;
  --accent: #ff6ec7;
  --success: #34d399;
  --danger: #ff5d6c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --max-w: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: var(--primary-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------- Navigation ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-2) 100%);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.45);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 55%);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover {
    background: var(--surface-2);
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ----------- Hero ----------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(50% 50% at 80% 20%, rgba(54, 209, 220, 0.28), transparent 60%),
    radial-gradient(40% 40% at 60% 80%, rgba(255, 110, 199, 0.22), transparent 60%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  margin: 18px 0 16px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(90deg, #b9a8ff, #36d1dc 50%, #ff6ec7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  color: white;
  filter: brightness(1.05);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Hero visual */
.hero-card {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.6), rgba(54, 209, 220, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare .panel {
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}
.compare .panel span {
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.compare .before {
  background:
    linear-gradient(135deg, #4a4f5a 0%, #2a2d35 100%);
  filter: saturate(0.6) blur(0.5px);
}
.compare .after {
  background:
    radial-gradient(120% 80% at 30% 30%, #ffd6a5 0%, transparent 50%),
    radial-gradient(120% 80% at 70% 70%, #b5f1ff 0%, transparent 55%),
    linear-gradient(135deg, #ffb3c1 0%, #7c5cff 100%);
}

/* ----------- Sections ----------- */
section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}

.kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--primary-2);
  font-weight: 600;
}

/* Features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(124, 92, 255, 0.35);
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(54, 209, 220, 0.18));
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 18px;
}
.feature h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--text-dim);
  margin: 0;
  font-size: 14px;
}

/* CTA banner */
.cta-banner {
  margin: 24px auto;
  padding: 36px;
  border-radius: 20px;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(124, 92, 255, 0.25), transparent 50%),
    radial-gradient(100% 100% at 100% 100%, rgba(54, 209, 220, 0.22), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-banner h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.cta-banner p {
  margin: 6px 0 0;
  color: var(--text-dim);
}

/* ----------- Footer ----------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-mute);
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--text);
}

/* ----------- Legal pages ----------- */
.legal-hero {
  padding: 56px 0 16px;
}
.legal-hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 8px;
}
.legal-hero .updated {
  color: var(--text-mute);
  font-size: 14px;
}

.legal {
  padding: 24px 0 80px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14px;
}
.toc li {
  margin: 6px 0;
}
.toc a {
  color: var(--text-dim);
}
.toc a:hover {
  color: var(--text);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.legal-content h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.legal-content p,
.legal-content li {
  color: var(--text-dim);
  font-size: 15px;
}
.legal-content ul {
  padding-left: 22px;
}
.legal-content code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 880px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}

/* ----------- Contact page ----------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-card p {
  color: var(--text-dim);
  margin: 0 0 18px;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.email-pill .label {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy-btn:hover {
  background: var(--surface);
  color: var(--text);
}
.copy-btn.copied {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.5);
}

.faq {
  margin-top: 24px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--text-mute);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  color: var(--text-dim);
  margin: 10px 0 0;
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 0 36px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 48px 0;
  }
}
