/* ===================================================================
   TRENDS FOR SALE (TFS) - HOME PAGE STYLES
   =================================================================== */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content-flow {
  flex: 1 0 auto;
}

/* Gradient Text Helper */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* -------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
  background: var(--gradient-glow);
}

.hero-background-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.highlight-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* -------------------------------------------------------------------
   Interactive Terminal Showcase in Hero
   ------------------------------------------------------------------- */
.hero-terminal-showcase {
  position: relative;
}

.hero-terminal-showcase::after {
  content: '';
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, var(--accent-cyan-glow), rgba(99, 102, 241, 0.2));
  filter: blur(25px);
  z-index: -1;
  border-radius: var(--radius-xl);
  opacity: 0.7;
}

.terminal-card {
  background: #080d1a;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-topbar {
  background: #0d1527;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite;
}

.term-action-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.term-body {
  padding: 16px;
  background: #060a12;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-line {
  word-break: break-all;
  line-height: 1.4;
}

.term-line.info { color: #38bdf8; }
.term-line.sys { color: #a855f7; }
.term-line.rx { color: #34d399; }
.term-line.tx { color: #fbbf24; }
.term-line.err { color: #f87171; }

.term-interactive-bar {
  display: flex;
  padding: 10px 14px;
  background: #0d1527;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-interactive-bar input {
  flex: 1;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #f8fafc;
  outline: none;
  transition: border-color var(--transition-fast);
}

.term-interactive-bar input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.term-quick-macros {
  padding: 8px 14px;
  background: #0a1020;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.macro-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.macro-chip:hover {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* -------------------------------------------------------------------
   Tools Grid Section
   ------------------------------------------------------------------- */
.section-tools {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.section-container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.tool-feature-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tool-feature-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-cyan-glow);
}

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.card-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
}

.card-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.card-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.tool-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tool-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.tool-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.tool-feature-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-feature-list li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: bold;
}

.card-action-wrap {
  margin-top: auto;
}

/* -------------------------------------------------------------------
   Architecture & Privacy Section
   ------------------------------------------------------------------- */
.section-architecture {
  padding: 40px 24px 100px;
}

.arch-card {
  padding: 56px 48px;
  background: var(--gradient-surface);
}

.arch-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.arch-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-icon {
  font-size: 2rem;
}

.pillar-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.pillar-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* -------------------------------------------------------------------
   Site Footer
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .site-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  gap: 8px;
}

/* -------------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtext {
    margin: 0 auto 36px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-highlights {
    justify-content: center;
  }
  .hero-terminal-showcase {
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 40px 16px 60px;
  }
  .hero-highlights {
    flex-direction: column;
    gap: 16px;
  }
  .highlight-divider {
    display: none;
  }
  .arch-card {
    padding: 32px 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
