/* ============================================
   Sorciére Stones — Mystical Minimalism
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-deep: #1B263B;
  --gold: #D4C4A8;
  --gold-dim: rgba(212, 196, 168, 0.15);
  --gold-glow: rgba(212, 196, 168, 0.35);
  --text-light: #F0F4F8;
  --hover-blue: #415A77;
  --glass-bg: rgba(65, 90, 119, 0.18);
  --glass-border: rgba(212, 196, 168, 0.25);
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Language Toggle --- */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(27, 38, 59, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Prompt', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.4;
  cursor: pointer;
  padding: 2px 4px;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn--active {
  color: var(--gold);
  opacity: 1;
}

.lang-divider {
  color: var(--gold);
  opacity: 0.25;
  font-size: 0.7rem;
  user-select: none;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* --- Ambient Background Glow --- */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 196, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Entrance Animation --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeSlideUp 0.8s var(--transition) both;
}

.fade-in-d1 {
  animation-delay: 0.1s;
}

.fade-in-d2 {
  animation-delay: 0.25s;
}

.fade-in-d3 {
  animation-delay: 0.4s;
}

.fade-in-d4 {
  animation-delay: 0.55s;
}

.fade-in-d5 {
  animation-delay: 0.7s;
}

.fade-in-d6 {
  animation-delay: 0.85s;
}

.fade-in-d7 {
  animation-delay: 1.0s;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero__logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(212, 196, 168, 0.18));
}

.hero__title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.hero__subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  opacity: 0.75;
  margin-bottom: 20px;
}

.hero__description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
  opacity: 0.8;
  max-width: 420px;
  margin: 0 auto;
}

/* --- Decorative Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 8px auto 36px;
  opacity: 0.5;
}

/* --- Link Cards --- */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 48px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  text-decoration: none;
  color: var(--text-light);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 196, 168, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212, 196, 168, 0.12),
    0 0 0 1px rgba(212, 196, 168, 0.1);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

/* Primary card (Website) */
.link-card--primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 196, 168, 0.12), var(--glass-bg));
}

.link-card--primary .link-card__icon {
  color: var(--gold);
}

.link-card--primary .link-card__title {
  color: var(--gold);
}

/* Card icon */
.link-card__icon {
  font-size: 1.4rem;
  width: 40px;
  flex-shrink: 0;
  text-align: center;
  color: var(--gold);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.link-card:hover .link-card__icon {
  opacity: 1;
}

/* Card text */
.link-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.link-card__title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.link-card__subtitle {
  font-size: 0.78rem;
  opacity: 0.55;
  letter-spacing: 0.01em;
}

/* Arrow indicator */
.link-card__arrow {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.3;
  transition: all var(--transition);
  color: var(--gold);
}

.link-card:hover .link-card__arrow {
  opacity: 0.8;
  transform: translateX(3px);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(212, 196, 168, 0.1);
  width: 100%;
}

.footer__company {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.7;
}

.footer__company-th {
  font-size: 0.78rem;
  color: var(--text-light);
  opacity: 0.4;
  margin-bottom: 12px;
}

.footer__address,
.footer__contact {
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.4;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer__contact a {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer__contact a:hover {
  opacity: 1;
}

.footer__copyright {
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.25;
  margin-top: 20px;
  letter-spacing: 0.06em;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .container {
    padding: 72px 32px 48px;
  }

  .hero__logo {
    width: 200px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .link-card {
    padding: 20px 28px;
  }
}

@media (min-width: 1024px) {
  body::before {
    width: 900px;
    height: 900px;
  }

  .container {
    max-width: 580px;
    padding: 96px 32px 64px;
  }

  .hero__logo {
    width: 220px;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}