:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #14b8a6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --critical: #dc2626;
  
  --black: #0f172a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(to bottom, #f8fafc 0%, #e0e7ff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.hero {
  padding: 6rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.6s ease-out;
}

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

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease-out 0.2s both;
}

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

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  color: var(--gray-900);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.subtitle {
  margin: 0 0 1.5rem;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--gray-700);
  line-height: 1.4;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.description {
  max-width: 65ch;
  color: var(--gray-600);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.25rem;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.guide-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.guide-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.guide-link:hover::before {
  opacity: 1;
}

.guide-link:active {
  transform: translateY(-1px) scale(1);
}

.layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  padding: 2rem 2rem 5rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  margin-top: 0.625rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

input:hover, textarea:hover, select:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow);
  transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
  color: var(--gray-400);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

button {
  width: 100%;
  cursor: pointer;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.125rem 1.75rem;
  border-radius: 12px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.inline-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.inline-actions button {
  flex: 1;
  min-width: 150px;
}

.list {
  padding-left: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.list li {
  margin-bottom: 0.875rem;
  color: var(--gray-900);
  font-size: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 250ms ease;
  position: relative;
  overflow: hidden;
}

.list li::before {
  content: '→';
  position: absolute;
  left: 1.25rem;
  opacity: 0;
  transition: all 250ms ease;
  color: var(--primary);
  font-weight: bold;
}

.list li:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(8px);
  padding-left: 2.5rem;
}

.list li:hover::before {
  opacity: 1;
  left: 1rem;
}

.list li:last-child {
  margin-bottom: 0;
}

.output {
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 140px;
  overflow-x: auto;
  font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  border: 2px solid var(--gray-700);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), var(--shadow);
  position: relative;
}

.output::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.status {
  min-height: 1.5rem;
  font-weight: 600;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: all 300ms ease;
}

.status:not(:empty) {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #6ee7b7;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.status.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #fca5a5;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.75rem;
  font-size: 0.925rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th, .table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.table th {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.table thead tr th:first-child {
  border-top-left-radius: 16px;
}

.table thead tr th:last-child {
  border-top-right-radius: 16px;
}

.table td {
  background: var(--white);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

.table tbody tr {
  transition: all 250ms ease;
}

.table tbody tr:hover {
  background: var(--gray-50);
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
  
  .hero::before,
  .hero::after {
    width: 400px;
    height: 400px;
  }

  h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  h2 {
    font-size: 1.5rem;
  }

  h2::before {
    height: 24px;
  }

  .subtitle {
    font-size: 1.375rem;
  }

  .description {
    font-size: 1rem;
  }

  .layout {
    padding: 1.5rem 1.5rem 4rem;
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem;
  }
  
  .inline-actions {
    flex-direction: column;
  }
  
  .inline-actions button {
    width: 100%;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th, .table td {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
  
  h1 {
    margin-bottom: 1rem;
  }
  
  .subtitle {
    font-size: 1.25rem;
  }
  
  .guide-link {
    padding: 1rem 1.75rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  input, textarea, select {
    padding: 0.875rem 1rem;
  }
  
  button {
    padding: 1rem 1.5rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Styling */
::selection {
  background: var(--primary-light);
  color: var(--white);
}

  .inline-actions {
    flex-direction: column;
  }
  
  .table {
    font-size: 0.8rem;
  }
  
  .table th, .table td {
    padding: 0.75rem;
  }
}
