/* ============================================================
   TALAN.PRO — Index Page Styles
   ============================================================ */

/* ── Background ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb { opacity: 0.16; }

.orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, #4fc3f7, transparent 70%);
  top: -220px; left: -120px;
}

.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #b388ff, transparent 70%);
  top: 28%; right: -160px;
}

.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #4fc3f7, transparent 70%);
  bottom: -80px; left: 32%;
}

/* ── Welcome overlay ── */
.hero-welcome {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 650ms var(--ease-out);
}

.hero-welcome-text {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, #4fc3f7 44%, #b388ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-right: -0.35em; /* compensate letter-spacing on last char */
}

.hero-welcome-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,195,247,0.7), rgba(179,136,255,0.7), transparent);
}

/* ── Hero badge (index-specific overrides) ── */
.hero-badge {
  margin-bottom: var(--space-8);
  animation: fadeInDown 0.7s var(--ease-out) both;
}

.hero-badge-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-24);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s 0.15s var(--ease-out) both;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.8s 0.25s var(--ease-out) both;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-20);
  animation: fadeInUp 0.8s 0.35s var(--ease-out) both;
}

.btn-hero-primary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  font-weight: var(--weight-semibold);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out);
  box-shadow: 0 0 30px rgba(79,195,247,0.3), 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 50px rgba(79,195,247,0.5), 0 0 80px rgba(179,136,255,0.2), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-hero-secondary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  backdrop-filter: var(--blur-md);
  transition:
    transform var(--duration-fast) var(--ease-spring),
    background var(--duration-base),
    border-color var(--duration-base);
  text-decoration: none;
}

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

/* Floating tool previews */
.hero-previews {
  position: relative;
  height: 280px;
  max-width: 700px;
  margin-inline: auto;
  animation: fadeIn 1s 0.6s var(--ease-out) both;
}

.preview-card {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--glow-soft);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow);
}

.preview-card:hover {
  border-color: var(--glass-border-hover);
}

.preview-icon {
  font-size: 28px;
  line-height: 1;
}

.preview-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.preview-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.preview-calc  { top: 10px;  left: 0;    animation: float 5s 0s ease-in-out infinite; }
.preview-notes { top: 0px;   right: 0;   animation: float 5s 0.8s ease-in-out infinite; }
.preview-timer { bottom: 10px; left: 10%; animation: float 5s 1.4s ease-in-out infinite; }
.preview-color { bottom: 0;  right: 5%;  animation: float 5s 2.0s ease-in-out infinite; }

/* ── Tools Grid ── */
.tools-section { padding-block: var(--space-24); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent-blue);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.tool-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base),
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-blue-dim), var(--accent-violet-dim));
  opacity: 0;
  transition: opacity var(--duration-base);
  border-radius: inherit;
}

.tool-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(79,195,247,0.25);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(79,195,247,0.1),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(79,195,247,0.08);
}

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

.tool-card-icon {
  font-size: 40px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.tool-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  position: relative;
  z-index: 1;
}

.tool-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.tool-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
  transition: gap var(--duration-base) var(--ease-out);
}

.tool-card:hover .tool-card-arrow { gap: var(--space-3); }

/* ── Features ── */
.features-section { padding-block: var(--space-24); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    background var(--duration-base),
    border-color var(--duration-base),
    transform var(--duration-base) var(--ease-spring);
}

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

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-5);
}

.icon-blue   { background: var(--accent-blue-dim);   box-shadow: 0 0 20px rgba(79,195,247,0.2); }
.icon-violet { background: var(--accent-violet-dim); box-shadow: 0 0 20px rgba(179,136,255,0.2); }
.icon-teal   { background: rgba(128,203,196,0.12);   box-shadow: 0 0 20px rgba(128,203,196,0.15); }

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Changelog ── */
.changelog-section { padding-block: var(--space-24); }

.timeline {
  position: relative;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-8);
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
  border: 2px solid var(--bg-base);
}

.timeline-date {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-previews { height: 220px; }
  .preview-card { padding: var(--space-3) var(--space-4); }
}

@media (max-width: 600px) {
  .hero-previews { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
}
