/* ================================
   CASTLEWOOD KFT. – Intro Page
   Dark premium wood theme
   ================================ */

:root {
  --bg:         #0e0a07;
  --bg-2:       #1a1109;
  --gold:       #C8830A;
  --gold-light: #E09A20;
  --cream:      #F0DFB8;
  --cream-dim:  #9E8B6A;
  --white:      #FAF6EE;
  --border:     rgba(200, 131, 10, 0.2);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── Canvas particle layer ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Subtle noise/grain overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.6;
}

/* ── Radial light glow from center ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%,
    rgba(200, 131, 10, 0.08) 0%,
    rgba(14, 10, 7, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── Main hero ── */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 0;
  text-align: center;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 40px;
  background: rgba(200, 131, 10, 0.05);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── Logo SVG mark ── */
.logo-mark {
  width: 90px;
  height: 90px;
  color: var(--gold);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 18px rgba(200, 131, 10, 0.35));
}

/* ── Company name ── */
.company-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(42px, 9vw, 96px);
  color: var(--white);
  letter-spacing: clamp(4px, 1.5vw, 16px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: letter-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes letter-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word-kft {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(20px, 3.5vw, 40px);
  color: var(--gold);
  letter-spacing: clamp(3px, 1vw, 8px);
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: var(--delay);
}

/* ── Gold divider line ── */
.divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold),
    var(--gold-light),
    var(--gold),
    transparent);
  margin: 28px auto 28px;
  animation: line-expand 0.8s ease forwards;
  animation-delay: 1.0s;
}

@keyframes line-expand {
  to { width: clamp(180px, 40vw, 420px); }
}

/* ── Tagline ── */
.tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 1px;
  margin-bottom: 14px;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: var(--delay);
}

/* ── Sub-tagline (dots) ── */
.sub-tagline {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 300;
  color: var(--cream-dim);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 50px;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: var(--delay);
}

/* ── Bottom feature bar ── */
.bottom-bar {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 16px 30px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(200, 131, 10, 0.04);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: var(--delay);
}

.bottom-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bottom-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.bottom-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(200, 131, 10, 0.08);
}

.site-footer p {
  font-size: 11px;
  color: rgba(158, 139, 106, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Generic animation helpers ── */
.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fade-down 0.7s ease forwards;
  animation-delay: 0.2s;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.7);
  animation: scale-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.4s;
}

.animate-fade {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: var(--delay, 0.5s);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.7s ease forwards;
  animation-delay: var(--delay, 0.5s);
}

.animate-line {
  width: 0;
  animation: line-expand 0.8s ease forwards;
  animation-delay: 1.0s;
}

@keyframes fade-down {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bottom-bar {
    flex-direction: column;
    border-radius: 20px;
    gap: 16px;
    padding: 18px 24px;
  }
  .bottom-divider {
    width: 50px;
    height: 1px;
  }
  .company-name {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
