/* RepoTrim Showcase Custom Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-color: #080c14;
  --panel-bg: rgba(17, 25, 40, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --primary-accent: #6366f1;
  --secondary-accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glow Gradients in Background */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 40%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

/* Header & Glassmorphic Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo-group span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--panel-border);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.secondary-button {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Glassmorphism Panel Container */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Interactive Interactive Console Layout */
.showcase-console {
  max-width: 1000px;
  margin: 3.5rem auto 5rem;
  padding: 0 2rem;
}

.console-header {
  background: rgba(10, 16, 28, 0.9);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-dots {
  display: flex;
  gap: 0.5rem;
}

.console-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

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

.console-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.console-body {
  background: rgba(8, 12, 20, 0.95);
  min-height: 380px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  overflow-y: auto;
  position: relative;
}

.console-body pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-primary);
}

.console-cta-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.console-cta-trigger:hover {
  transform: translate(-50%, -52%) scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.console-tabs {
  background: rgba(10, 16, 28, 0.6);
  display: flex;
  border-bottom: 1px solid var(--panel-border);
}

.console-tab-btn {
  background: none;
  border: none;
  border-right: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.console-tab-btn.active {
  background: rgba(8, 12, 20, 0.95);
  color: var(--text-primary);
  font-weight: 600;
}

.console-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Features Grid Section */
.features-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, #fff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive Calculator Container */
.calculator-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.calc-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 350px;
}

.calc-sliders {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1px solid var(--panel-border);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-header span.value {
  color: var(--primary-accent);
  font-family: var(--font-mono);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--primary-accent);
}

.calc-result {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(99, 102, 241, 0.02);
}

.calc-result h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.savings-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #fff 40%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.savings-label {
  font-size: 0.95rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Installer / Integration Area */
.installer-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.installer-card {
  padding: 2.5rem;
}

.installer-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.copy-container {
  display: flex;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.copy-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
}

.copy-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.installer-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.installer-meta strong {
  color: var(--text-primary);
}

/* Footer Section */
footer {
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid var(--panel-border);
  padding: 4rem 2rem 2rem;
  margin-top: 8rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--panel-border);
}

.footer-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding-top: 2rem;
}

/* Typewriter animation classes */
.cursor {
  display: inline-block;
  background-color: var(--text-primary);
  width: 8px;
  height: 15px;
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
  .calc-box {
    grid-template-columns: 1fr;
  }
  .calc-sliders {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
}
