/* VISAGE & Face Swap Go — Official Website Stylesheet
 * High-end Dark Editorial & Luxury Tech Aesthetic
 */

:root {
  --bg: #0d0c10;
  --bg-subtle: #141318;
  --bg-card: #191820;
  --bg-card-hover: #22202c;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(201, 160, 80, 0.35);

  --text-main: #f6f4ee;
  --text-muted: #9f9a90;
  --text-dim: #6d6860;

  --accent: #8e2b22;
  --accent-light: #b6372c;
  --accent-glow: rgba(142, 43, 34, 0.35);

  --gold: #c9a050;
  --gold-light: #e4be72;
  --gold-glow: rgba(201, 160, 80, 0.25);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-serif: "Fraunces", "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--accent-glow);

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow backgrounds */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(142, 43, 34, 0.15) 0%, rgba(201, 160, 80, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Typography Helpers */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.text-gold {
  color: var(--gold-light);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(13, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand-badge {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(201, 160, 80, 0.12);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a050 0%, #9a7b42 100%);
  color: #12100e;
  box-shadow: 0 4px 18px rgba(201, 160, 80, 0.25);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 160, 80, 0.4);
  background: linear-gradient(135deg, #dfbe76 0%, #ab8b4e 100%);
  color: #0d0c10;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #6f201a 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(142, 43, 34, 0.35);
  font-weight: 600;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(142, 43, 34, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Section Header */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  background: rgba(201, 160, 80, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fff 30%, var(--gold-light) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-visual {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(142, 43, 34, 0.2);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay-chips {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: none;
}

.hero-chip {
  background: rgba(13, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-chip-icon {
  color: var(--gold-light);
}

/* Interactive Before & After Section */
.comparison-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 50%, var(--bg) 100%);
}

.compare-card-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.compare-container {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-l);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.compare-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--gold-light);
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.6);
}

.compare-overlay .compare-image {
  width: 900px; /* fixed base matching container */
  max-width: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 10;
  color: #12100e;
  font-size: 1rem;
}

.compare-tag {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  background: rgba(13, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  z-index: 5;
}

.compare-tag.before {
  left: 20px;
}

.compare-tag.after {
  right: 20px;
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.compare-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Feature Cards Grid */
.features-section {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(201, 160, 80, 0.08);
}

.feature-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-img-wrap img {
  transform: scale(1.05);
}

.feature-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 12, 16, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.feature-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Style Lookbook Gallery */
.gallery-section {
  padding: 90px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(0deg, rgba(13, 12, 16, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 2px;
}

.gallery-item-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Real App Showcase / Phone Mockups */
.screens-section {
  padding: 90px 0;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
}

.screen-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px 28px;
  transition: all 0.3s ease;
}

.screen-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.screen-frame {
  margin: 0 auto 20px;
  max-width: 280px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  border: 4px solid #23222a;
}

.screen-frame img {
  width: 100%;
  display: block;
}

.screen-card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.screen-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* How It Works */
.steps-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 20px;
  display: inline-block;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Trust & Ethics Section */
.trust-section {
  padding: 80px 0;
}

.trust-box {
  background: linear-gradient(135deg, rgba(142, 43, 34, 0.12) 0%, rgba(20, 19, 25, 0.8) 100%);
  border: 1px solid rgba(142, 43, 34, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-icon {
  font-size: 1.8rem;
  color: var(--gold-light);
}

.trust-title {
  font-size: 1.2rem;
  color: #fff;
}

.trust-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Download Banner */
.cta-section {
  padding: 90px 0 110px;
}

.cta-banner {
  background: radial-gradient(circle at 80% 20%, rgba(201, 160, 80, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(142, 43, 34, 0.25) 0%, transparent 60%),
              var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner .brand-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  margin: 0 auto 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #09080c;
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Secondary Pages Layout (Legal / Support / Delete Account) */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.page-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

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

.legal-content {
  padding: 60px 0 100px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.legal-card h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--gold-light);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 16px;
  color: #d8d4cb;
  line-height: 1.7;
}

.legal-card ul, .legal-card ol {
  margin: 16px 0 20px 24px;
  color: #d8d4cb;
}

.legal-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

.legal-card a:hover {
  color: #fff;
}

.contact-box {
  background: rgba(201, 160, 80, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-m);
  padding: 24px;
  margin: 28px 0;
}

.warning-box {
  background: rgba(142, 43, 34, 0.12);
  border: 1px solid rgba(142, 43, 34, 0.35);
  border-radius: var(--radius-m);
  padding: 20px;
  margin: 24px 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .trust-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .site-header.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #111016;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .compare-container {
    height: 380px;
  }
  .compare-overlay .compare-image {
    width: 600px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 28px 20px;
  }
}
