/* 
  styles.css — Premium Dev-First Stylesheet for tigcode.app
  Theme: Dark Obsidian with Electric Indigo/Violet & Neon Emerald Accent
*/

:root {
  --bg-obsidian: #08080c;
  --bg-card: rgba(22, 22, 28, 0.45);
  --bg-navbar: rgba(8, 8, 12, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(124, 58, 237, 0.35);
  
  --primary-violet: #7c3aed;
  --primary-indigo: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
  --text-gradient: linear-gradient(90deg, #a78bfa, #38bdf8);
  
  --accent-emerald: #10b981;
  --accent-blue: #38bdf8;
  
  --text-white: #ffffff;
  --text-gray-light: #e5e7eb;
  --text-gray-muted: #9ca3af;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-gray-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------------------
   Typography Utilities
   --------------------------------------------------------------------------- */

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-green { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }

/* ---------------------------------------------------------------------------
   Navigation Header
   --------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-lightning {
  color: var(--accent-blue);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.logo-io {
  color: var(--primary-violet);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.nav-git {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease !important;
}

.nav-git:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-gray-muted);
}

/* ---------------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------------- */

.hero {
  padding: 140px 24px 80px 24px;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 50%),
              radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.08), transparent 45%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 54px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-gray-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ---------------------------------------------------------------------------
   Button System
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-gray-muted);
  transform: translateY(-2px);
}

.w-full { width: 100%; }

/* ---------------------------------------------------------------------------
   Terminal Simulation Block
   --------------------------------------------------------------------------- */

.terminal {
  background: #0d0d12;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 2px rgba(255,255,255,0.05);
}

.terminal-header {
  background: #14141c;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

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

.terminal-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-gray-muted);
  margin-left: auto;
  opacity: 0.8;
}

.terminal-body {
  padding: 18px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #38bdf8;
}

.terminal-body .line {
  margin-bottom: 6px;
}

.terminal-body .prompt {
  color: #a78bfa;
}

.terminal-body .success {
  color: var(--accent-emerald);
}

.terminal-body .info {
  color: var(--text-gray-muted);
}

.blink-cursor {
  display: inline-block;
  color: var(--text-white);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--text-white); }
}

/* ---------------------------------------------------------------------------
   Features Grid
   --------------------------------------------------------------------------- */

.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-gray-muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-glow);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.15);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-gray-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Savings Calculator Widget
   --------------------------------------------------------------------------- */

.calculator-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.calculator-card {
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 30%),
              var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
}

.calc-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.calc-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray-muted);
  margin-bottom: 36px;
}

.slider-container {
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.slider-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
  text-align: center;
}

.slider-label span {
  font-family: 'Fira Code', monospace;
  color: var(--accent-blue);
  font-size: 16px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-violet);
  box-shadow: 0 0 10px var(--primary-violet);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

.metric-box.highlighted {
  border-color: var(--border-color-glow);
  background: rgba(124, 58, 237, 0.05);
}

.metric-label {
  font-size: 11px;
  color: var(--text-gray-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

/* ---------------------------------------------------------------------------
   Pricing Section
   --------------------------------------------------------------------------- */

.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.price-card.highlighted {
  border-color: var(--primary-violet);
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 45%),
              var(--bg-card);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.15);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-violet);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--primary-violet);
}

.price-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.price-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 40px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
}

.price-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray-muted);
}

.price-desc {
  font-size: 12px;
  color: var(--text-gray-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 36px;
  flex: 1;
}

.price-features li {
  font-size: 13px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  color: var(--text-gray-light);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.footer {
  background: #040406;
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--text-white);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-gray-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-copyright {
  font-size: 11px;
  color: var(--text-gray-muted);
  opacity: 0.5;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Responsive Layout (Mobile)
   --------------------------------------------------------------------------- */

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calc-metrics {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 40px;
  }
}

/* ---------------------------------------------------------------------------
   License Badges
   --------------------------------------------------------------------------- */

.license-badge-personal {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 10px;
  text-transform: uppercase;
}

.license-badge-personal.highlighted {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.15);
}

.license-badge-enterprise {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   Modals
   --------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: #0d0d12;
  border: 1px solid var(--border-color-glow);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.1);
  overflow: hidden;
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-gray-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-gray-muted);
  margin-bottom: 20px;
}

/* CLI Modals Code Blocks */
.terminal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.terminal-code {
  background: #08080c;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--primary-violet);
  border-color: var(--primary-violet);
}

.modal-info {
  font-size: 11px !important;
  color: #f472b6 !important;
  margin-bottom: 0 !important;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #08080c;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-violet);
}

.form-group select {
  cursor: pointer;
}

