/* ============================================
   Silent Blossom SpA — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Tokens --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-surface: #111111;
  --amber: #c8962e;
  --amber-light: #dbb05a;
  --amber-glow: rgba(200, 150, 46, 0.15);
  --amber-glow-strong: rgba(200, 150, 46, 0.30);
  --text-primary: #ece5da;
  --text-secondary: #8a8078;
  --text-muted: #5c564f;
  --border: #1f1d1a;
  --border-light: #2a2723;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), #a07520);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--amber); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
  }
  .nav-overlay.open { display: block; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-glow);
  border: 1px solid rgba(200, 150, 46, 0.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  color: var(--amber-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 24px;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #a07520);
  color: #0a0a0a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--amber-glow-strong);
  color: #0a0a0a;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-google-play {
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 24px;
}
.btn-google-play:hover { border-color: var(--amber); color: #fff; }
.btn-google-play img { height: 24px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Section common --- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 300;
}
.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}
.section-header {
  margin-bottom: 60px;
}
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
  font-family: var(--font-body);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Screenshots --- */
.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 2px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }
.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}
.screenshot-item img,
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9/19.5;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
  font-weight: 300;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, var(--amber-glow-strong), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(200, 150, 46, 0.08), transparent 50%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  position: relative;
}
.about-visual-inner::after {
  content: '☸';
  font-size: 4rem;
  opacity: 0.4;
  color: var(--amber);
}

/* --- CTA --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  font-weight: 300;
  position: relative;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}
.cta-section .btn { position: relative; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer ul a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================
   Legal pages (Privacy, Terms, Support)
   ============================================ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 8px;
}
.legal-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--amber-light);
  font-family: var(--font-display);
}
.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
  position: relative;
  padding-left: 16px;
}
.legal-content ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Language tabs */
.lang-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
  width: fit-content;
}
.lang-tab {
  padding: 8px 20px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}
.lang-tab:hover { color: var(--text-primary); }
.lang-tab.active {
  background: var(--amber);
  color: #0a0a0a;
}
.lang-content { display: none; }
.lang-content.active { display: block; }

/* --- Support page --- */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
}
.support-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 500;
}
.support-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--amber-glow);
  border: 1px solid rgba(200, 150, 46, 0.25);
  border-radius: var(--radius-sm);
  color: var(--amber-light);
  font-size: 1rem;
  font-weight: 500;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }
.fade-up.d4 { animation-delay: 0.4s; }
.fade-up.d5 { animation-delay: 0.5s; }
.fade-up.d6 { animation-delay: 0.6s; }

/* --- Utility --- */
.text-amber { color: var(--amber); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* --- Scroll reveal (JS-powered) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
