/* Root Variables - Dark AI Theme */
:root {
  /* Colors */
  --bg-color: #0F172A;
  --bg-image: url('assets/images/ai-grid-dark.svg');
  
  --card-bg: rgba(30, 41, 59, 0.4); /* Glassmorphism base */
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(56, 189, 248, 0.5); /* Cyan glow */
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  /* Brand Gradients */
  --brand-gradient: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  --brand-glow: 0 0 20px rgba(56, 189, 248, 0.3);
  
  /* Tag Colors - Neon/Dark styled */
  --tag-bg: rgba(255, 255, 255, 0.05);
  --tag-text: #E2E8F0;

  /* Spacing & Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* Navbar (Simple Logo Area) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* Hero Section - The Main Visual */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding: 40px 0;
}

.hero-chip {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    color: #38BDF8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.main-title {
  font-size: 4rem; /* Massive visual */
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(to bottom right, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Controls (Search & Filter) - Floating Glass Bar */
.controls-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.3s;
}

#searchInput {
  width: 100%;
  padding: 20px 20px 20px 56px;
  font-size: 1.1rem;
  color: white;
  background-color: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: var(--text-tertiary);
}

#searchInput:focus {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: #38BDF8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

#searchInput:focus + .search-icon {
    color: #38BDF8;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(255,255,255,0.08);
  color: white;
}

.filter-btn.active {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--brand-glow);
}

/* Grid Layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tool Card - Glass Effect */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient hover effect for cards */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 20px;
  z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E2E8F0;
    transition: all 0.3s;
}

.card:hover .card-icon {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
  z-index: 2;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 2;
}

/* Featured Hero Card - The Big Highlight */
.hero-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row; /* Side by side on desktop */
  align-items: stretch;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px;
}

.hero-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.6);
}

/* Featured Content Left */
.hero-feature-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

/* Featured Visual Right */
.hero-feature-visual {
    flex: 1;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2) 0%, transparent 70%),
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* Mobile responsive for hero card */
@media (max-width: 768px) {
    .hero-feature {
        flex-direction: column;
    }
    .hero-feature-visual {
        min-height: 200px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .main-title {
        font-size: 2.5rem;
    }
}

.hero-badge {
  background: var(--brand-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  align-self: flex-start;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.hero-feature-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}

.hero-feature-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38BDF8;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.2s;
}

.hero-feature:hover .hero-cta {
    gap: 12px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Common Icon Style */
.icon {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Keep existing mask URLs for icons */
.icon-sitemap { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E"); }
.icon-convert { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E"); }
.icon-tag { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'%3E%3C/path%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'%3E%3C/line%3E%3C/svg%3E"); }
.icon-palette { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='currentColor'%3E%3C/circle%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='currentColor'%3E%3C/circle%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='currentColor'%3E%3C/circle%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='currentColor'%3E%3C/circle%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'%3E%3C/path%3E%3C/svg%3E"); }
.icon-text { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='21' y1='10' x2='3' y2='10'%3E%3C/line%3E%3Cline x1='21' y1='6' x2='3' y2='6'%3E%3C/line%3E%3Cline x1='21' y1='14' x2='3' y2='14'%3E%3C/line%3E%3Cline x1='21' y1='18' x2='3' y2='18'%3E%3C/line%3E%3C/svg%3E"); }
.icon-compress { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 7 4 4 20 4 20 7'%3E%3C/polyline%3E%3Cline x1='9' y1='20' x2='15' y2='20'%3E%3C/line%3E%3Cline x1='12' y1='4' x2='12' y2='20'%3E%3C/line%3E%3C/svg%3E"); }
.icon-star { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E"); }
.icon-qr { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Cpath d='M3 14h7v7H3z'%3E%3C/path%3E%3C/svg%3E"); }
.icon-image-opt { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'%3E%3C/polyline%3E%3Cpolyline points='17 6 23 6 23 12'%3E%3C/polyline%3E%3C/svg%3E"); }
.icon-link { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E"); }
.icon-check { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 11.08 22 2 2 2 2 22 17.5 22'%3E%3C/polyline%3E%3Cpath d='M9 2v20'%3E%3C/path%3E%3Cpath d='M22 22l-6-5.5'%3E%3C/path%3E%3Cpath d='M22 17l-5.5 5.5'%3E%3C/path%3E%3C/svg%3E"); }
.icon-code { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'%3E%3C/line%3E%3Cline x1='4' y1='15' x2='20' y2='15'%3E%3C/line%3E%3Cline x1='10' y1='3' x2='8' y2='21'%3E%3C/line%3E%3Cline x1='16' y1='3' x2='14' y2='21'%3E%3C/line%3E%3C/svg%3E"); }
.icon-cpu { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Crect x='9' y='9' width='6' height='6'%3E%3C/rect%3E%3Cline x1='9' y1='1' x2='9' y2='4'%3E%3C/line%3E%3Cline x1='15' y1='1' x2='15' y2='4'%3E%3C/line%3E%3Cline x1='9' y1='20' x2='9' y2='23'%3E%3C/line%3E%3Cline x1='15' y1='20' x2='15' y2='23'%3E%3C/line%3E%3Cline x1='20' y1='9' x2='23' y2='9'%3E%3C/line%3E%3Cline x1='20' y1='14' x2='23' y2='14'%3E%3C/line%3E%3Cline x1='1' y1='9' x2='4' y2='9'%3E%3C/line%3E%3Cline x1='1' y1='14' x2='4' y2='14'%3E%3C/line%3E%3C/svg%3E"); }

/* --- Chat Interface Animation Styles --- */

.chat-interface-mockup {
    width: 95%;
    max-width: 480px; /* Widened from 400px */
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-feature:hover .chat-interface-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.chat-window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.control.red { background-color: #EF4444; }
.control.yellow { background-color: #F59E0B; }
.control.green { background-color: #10B981; }

.window-title {
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-status-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.md-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-content-area {
    /* Padding removed to accommodate full-width iframe */
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

/* --- Hero Feature Alt (Orange Theme for ComponentDoc) --- */

.hero-feature-alt {
    border-color: rgba(246, 130, 31, 0.3);
}

.hero-feature-alt:hover {
    box-shadow: 0 0 30px rgba(246, 130, 31, 0.15);
    border-color: rgba(246, 130, 31, 0.6);
}

.hero-badge-alt {
    background: linear-gradient(135deg, #F6821F 0%, #e07218 100%);
    box-shadow: 0 0 10px rgba(246, 130, 31, 0.4);
}

.hero-cta-alt {
    color: #F6821F;
}

.hero-feature-alt:hover .hero-cta-alt {
    text-shadow: 0 0 8px rgba(246, 130, 31, 0.6);
}

.hero-feature-visual-alt {
    background: radial-gradient(circle at center, rgba(246, 130, 31, 0.15) 0%, transparent 70%),
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
}

/* Design System Preview Component */
.design-system-preview {
    width: 95%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-feature-alt:hover .design-system-preview {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.ds-component-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.ds-preview-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-preview-card-wide {
    grid-column: 1 / -1;
}

.ds-btn-group {
    display: flex;
    gap: 8px;
}

.ds-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ds-btn-primary {
    background: #F6821F;
    color: white;
}

.ds-btn-secondary {
    background: white;
    border: 1px solid #E5E7EB;
    color: #4B5563;
}

.ds-badge-group {
    display: flex;
    gap: 6px;
}

.ds-badge {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ds-badge-primary {
    background: #FEF3E9;
    color: #F6821F;
    border: 1px solid rgba(246, 130, 31, 0.3);
}

.ds-badge-secondary {
    background: #F9FAFB;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.ds-alert {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-alert::before {
    content: "ℹ";
    font-size: 0.9rem;
}

.ds-alert-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.ds-code-block {
    width: 100%;
    background: #111827;
    color: #E5E7EB;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
}

.ds-feature-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.ds-tag {
    background: linear-gradient(135deg, rgba(246, 130, 31, 0.1) 0%, rgba(246, 130, 31, 0.05) 100%);
    border: 1px solid rgba(246, 130, 31, 0.2);
    color: #F6821F;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .design-system-preview {
        transform: none;
        max-width: 100%;
    }

    .ds-component-grid {
        grid-template-columns: 1fr;
    }

    .ds-preview-card-wide {
        grid-column: 1;
    }
}

/* --- Hero Feature Purple (Prompt Library Theme) --- */

.hero-feature-purple {
    border-color: rgba(139, 92, 246, 0.3);
}

.hero-feature-purple:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
}

.hero-badge-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.hero-cta-purple {
    color: #A78BFA;
}

.hero-feature-purple:hover .hero-cta-purple {
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.hero-feature-visual-purple {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
}

/* Prompt Library Preview Component */
.prompt-lib-preview {
    width: 95%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-feature-purple:hover .prompt-lib-preview {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

@media (max-width: 768px) {
    .prompt-lib-preview {
        transform: none;
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    .file-uploader-preview {
        transform: none;
        max-width: 100%;
    }
}
