/* ===== INDEX PAGE STYLES — Kahramana Baghdad ===== */

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--col-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--col-deep) 0%, rgba(58, 26, 8, 0.85) 40%, rgba(101, 45, 19, 0.5) 100%);
  /* Matches --col-deep and --col-void */
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 6rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--col-gold);
  margin-bottom: 1.5rem;
  opacity: 1;
  font-weight: 400;
}

.hero-h1 {
  font-family: var(--font-drama);
  font-size: var(--text-hero-2);
  font-style: italic;
  color: var(--col-gold);
  line-height: 1.3;
  letter-spacing: 0;
  opacity: 1;
  margin-bottom: 0.2rem;
}

.hero-desc {
  font-family: var(--font-primary);
  font-size: var(--text-hero-1);
  font-weight: 700;
  line-height: 1.6;
  color: var(--col-cream);
  margin-bottom: 1.5rem;
  opacity: 1;
  max-width: 650px;
  line-height: 1.8;
  margin-top: 0;
  text-align: justify;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--col-gold-dim);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--col-gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    transform: scaleY(1);
    transform-origin: top
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* Shuffler */
.shuffler-stack {
  position: relative;
  min-height: 220px;
}

.shuffler-item {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--col-deep);
  border: 1px solid rgba(209, 159, 81, 0.15);
  /* Matches --col-gold */
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.6s var(--ease-bounce);
}

.shuffler-item .s-icon {
  width: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: rgba(209, 159, 81, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shuffler-item .s-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--col-gold);
  fill: none;
  stroke-width: 2;
}

.s-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--col-cream);
}

.s-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--col-gold-dim);
}

/* Typewriter */
.tw-area {
  flex: 1;
  background: var(--col-dark);
  border-radius: 1rem;
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  position: relative;
}

.tw-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.7rem;
  color: var(--col-gold);
}

.tw-dot {
  width: 6px;
  height: 6px;
  background: var(--col-success);
  /* Success green */
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

.tw-line {
  min-height: 1.3em;
  margin-bottom: 0.3rem;
}

.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--col-gold);
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* Feature card */
.feat-card {
  background: var(--col-deep);
  border: 1px solid rgba(209, 159, 81, 0.1);
  border-radius: var(--radius-sm);
  padding: 2rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s var(--ease-magnetic);
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feat-card h3 {
  font-family: var(--font-drama);
  font-style: italic;
  font-weight: 700;
  font-size: var(--text-sec-title);
  color: var(--col-cream);
  margin-bottom: 1.5rem;
}

.feat-card .card-desc {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Philosophy */
.philosophy {
  position: relative;
  padding: 10rem 0;
  background: var(--col-black);
  overflow: hidden;
}

.philosophy-tex {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/pattern/arabic-pattern.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.phil-small {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.6;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: justify;
}

.phil-big {
  font-family: var(--font-drama);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--col-cream);
}

.phil-accent {
  color: var(--col-gold);
}