/**
 * Refined Landing Page Styles for led.run
 * Design: Modern Dark UI with Neon Accents
 */

:root {
  --bg-body: #030303;
  --bg-surface: #0e0e10;
  --bg-surface-hover: #161618;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --primary: #00e676; /* Bright Green */
  --primary-glow: rgba(0, 230, 118, 0.4);
  
  --text-main: #ffffff;
  --text-muted: #888899;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Landing Layout */
.landing {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, transparent, var(--bg-body));
  color: var(--text-main);
  font-family: var(--font-sans);
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Hero */
.landing-hero {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin-top: 8vh;
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease-out;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-brand-icon {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #fff 30%, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* Input Section */
.input-group {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.15), 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.input-prefix {
  padding-left: 1rem;
  padding-right: 0.25rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  user-select: none;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
  min-width: 0;
}

.btn-launch {
  background: var(--text-main);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s;
}

.btn-launch:hover {
  background-color: var(--primary);
  transform: scale(1.02);
}

.btn-launch:active {
  transform: scale(0.98);
}

/* Grid Sections */
.section-title {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.preset-card {
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.preset-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preset-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.preset-icon {
  font-size: 1.75rem;
}

.preset-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.preset-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.preset-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.landing-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Language switcher */
.footer-lang {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  font-size: 0.8rem;
}

.footer-lang-label {
  color: var(--text-muted);
}

.footer-lang-sep {
  color: rgba(255, 255, 255, 0.15);
}

.footer-lang-current {
  color: var(--primary);
  font-weight: 600;
}

.footer-lang-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-lang-link:hover {
  color: var(--primary);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .input-prefix {
    padding-left: 0.5rem;
    font-size: 0.875rem;
  }
  
  .url-input {
    padding: 0.5rem;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
  }
  
  .btn-launch {
    width: 100%;
  }
  
  .landing-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}