@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: #ffffff;
  --foreground: #0f172a; /* slate-900 */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  font-family: 'Inter', sans-serif;
}

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--slate-200);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button, input {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  background: transparent;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
}

/* Animations using keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.5s ease-out forwards;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.6s ease-out forwards;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Base layouts */
.min-h-screen { min-height: 100vh; }
.bg-gradient-home { background: linear-gradient(to bottom, #ffffff, #f8fafc, #f1f5f9); }
.bg-slate-50 { background-color: var(--slate-50); }

.container {
  max-width: 80rem; /* 7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.solution-container {
  max-width: 64rem; /* 5xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) {
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

.pb-10 { padding-bottom: 2.5rem; }
.pt-10 { padding-top: 2.5rem; }
@media (min-width: 768px) {
  .md\:pb-16 { padding-bottom: 4rem; }
  .md\:pt-14 { padding-top: 3.5rem; }
}

/* Typography elements */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }

.text-slate-900 { color: var(--slate-900); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-300 { color: var(--slate-300); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-500 { color: var(--blue-500); }

/* Layout utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-10 { gap: 2.5rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-\[1\.1fr_0\.9fr\] { grid-template-columns: 1.1fr 0.9fr; }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:pl-10 { padding-left: 2.5rem; }
  .lg\:justify-end { justify-content: flex-end; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Custom Components - Hero */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(24px);
  margin-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .hero-card { padding: 3rem; }
}

.hero-glow-bg {
  position: absolute;
  top: 0;
  right: 25%;
  height: 24rem;
  width: 24rem;
  transform: translateY(-50%) translateX(50%);
  border-radius: var(--radius-full);
  background-color: rgba(241, 245, 249, 0.5);
  filter: blur(100px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background-color: rgba(248, 250, 252, 0.8);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--slate-800);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
}
.hero-badge:hover {
  background-color: var(--slate-100);
}
.hero-badge-dot {
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--blue-600);
  box-shadow: 0 0 8px rgba(37,99,235,0.8);
}

.hero-title {
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 2.75rem; line-height: 1.15; } }

.hero-desc {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--slate-600);
}
@media (min-width: 1024px) { .hero-desc { font-size: 1.125rem; } }

.hero-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
}
.hero-tag-text {
  font-weight: 500;
  color: var(--slate-700);
}

/* Floating Mockup */
.mockup-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .mockup-wrapper { justify-content: flex-end; padding-left: 2.5rem; }
}

.mockup-glow-1 {
  height: 16rem;
  width: 16rem;
  border-radius: var(--radius-full);
  background-color: rgba(219, 234, 254, 0.4);
  filter: blur(80px);
}
.mockup-glow-2 {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  height: 10rem;
  width: 10rem;
  border-radius: var(--radius-full);
  background-color: rgba(226, 232, 240, 0.5);
  filter: blur(60px);
}

.mockup-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(15,23,42,0.05);
  backdrop-filter: blur(24px);
}

.mockup-header {
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background-color: rgba(248, 250, 252, 0.5);
  padding: 1.25rem 1.5rem;
}
.mockup-header-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--blue-50);
  color: var(--blue-600);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(219,234,254,0.5);
}
.mockup-header-title { font-size: 0.875rem; font-weight: 600; color: var(--slate-900); }
.mockup-header-subtitle { font-size: 0.75rem; color: var(--slate-500); }
.mockup-dots { width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full); background-color: var(--slate-200); }

.mockup-body { padding: 1.5rem; }
.mockup-item {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid var(--slate-100);
  background-color: var(--background);
  padding: 1rem;
  transition: all 0.2s;
  margin-bottom: 1rem;
}
.mockup-item:last-child { margin-bottom: 0; }
.mockup-item:hover {
  border-color: var(--blue-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px var(--blue-50);
}
.mockup-item-number {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--slate-50);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  transition: all 0.2s;
}
.mockup-item:hover .mockup-item-number {
  background-color: var(--blue-50);
  color: var(--blue-600);
}
.mockup-item-line-1 { height: 0.5rem; width: 6rem; border-radius: var(--radius-full); background-color: var(--slate-200); transition: all 0.2s; margin-bottom: 0.5rem; }
.mockup-item-line-2 { height: 0.375rem; width: 4rem; border-radius: var(--radius-full); background-color: var(--slate-100); transition: all 0.2s; }
.mockup-item:hover .mockup-item-line-1 { background-color: rgba(191, 219, 254, 0.6); }
.mockup-item:hover .mockup-item-line-2 { background-color: rgba(219, 234, 254, 0.5); }
.mockup-item-arrow {
  height: 1rem; width: 1rem; transform: rotate(180deg); color: var(--slate-300); transition: all 0.2s;
}
.mockup-item:hover .mockup-item-arrow {
  transform: rotate(180deg) translateX(-0.25rem); color: var(--blue-400);
}

/* Header & Search */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .section-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.search-container {
  position: relative;
  width: 100%;
}
@media (min-width: 768px) {
  .search-container { max-width: 24rem; }
}
.search-icon {
  position: absolute; left: 0.75rem; top: 50%; height: 1rem; width: 1rem; transform: translateY(-50%); color: var(--slate-400); pointer-events: none;
}
.search-input {
  height: 2.75rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background-color: var(--background);
  padding-left: 2.5rem;
  padding-right: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.search-input:focus { outline: 2px solid var(--slate-900); outline-offset: -1px; }

/* Cards Array */
.card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--slate-200);
  background-color: var(--background);
  transition: all 0.3s;
  text-align: left;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.card-content { display: flex; height: 100%; flex-direction: column; }
.card-header {
  border-bottom: 1px solid var(--slate-100);
  padding: 1.5rem;
}
.card-badge-row { display: flex; margin-bottom: 1rem; align-items: center; justify-content: space-between; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-color: var(--slate-100);
  color: var(--slate-900);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.check-icon { height: 1.25rem; width: 1.25rem; color: var(--slate-300); transition: color 0.3s; }
.card:hover .check-icon { color: var(--slate-900); }
.card-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--slate-900); }
.card-author { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate-500); }
.card-body {
  display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding: 1.5rem;
}
.card-desc { max-width: 24rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--slate-600); }
.card-footer { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.card-action { font-size: 0.875rem; font-weight: 500; color: var(--slate-900); }
.card-time { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-500); }

/* Solution Page */
.mb-8 { margin-bottom: 2rem; }
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background-color: var(--background);
  color: var(--slate-900);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: background-color 0.2s;
}
.button-outline:hover { background-color: var(--slate-100); }
.button-outline .icon { margin-right: 0.5rem; height: 1rem; width: 1rem; }

.solution-header {
  margin-bottom: 2rem;
  border-radius: 30px;
  border: 1px solid var(--slate-200);
  background-color: var(--background);
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.solution-header-badge {
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--slate-500); margin-bottom: 1rem;
}
.solution-title { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 768px) { .solution-title { font-size: 2.25rem; } }
.solution-desc { margin-top: 0.75rem; font-size: 1rem; color: var(--slate-600); }

.solution-item {
  border-radius: 26px;
  border: 1px solid var(--slate-200);
  background-color: var(--background);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}
.solution-item:last-child { margin-bottom: 0; }
.solution-item-content { padding: 1.5rem; }
@media (min-width: 768px) { .solution-item-content { padding: 1.75rem; } }

.q-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: var(--radius-full);
  background-color: var(--slate-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
}
.q-title {
  font-size: 1.125rem; font-weight: 600; line-height: 1.75rem; color: var(--slate-900);
}
.q-answer {
  margin-top: 1rem;
  border-radius: 1rem;
  background-color: var(--slate-950);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.75rem;
  color: var(--slate-100);
}
.q-answer pre {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.875rem;
}

/* Base resets */
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; vertical-align: middle; }
