/* 
 * StackCraft Inspired CSS for RoProduct (White/Orange Theme)
 */

:root {
  --sc-bg: #ffffff;
  --sc-text-main: #111827;
  --sc-text-muted: #6b7280;
  --sc-primary: #f97316; /* Orange */
  --sc-border: #e5e7eb;
  --sc-card-bg: #f9fafb;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body.stackcraft-theme {
  background-color: var(--sc-bg);
  color: var(--sc-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.stackcraft-theme h1, 
.stackcraft-theme h2, 
.stackcraft-theme h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 0;
  color: var(--sc-text-main);
}

.stackcraft-theme h1 em, 
.stackcraft-theme h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sc-primary);
}

.stackcraft-theme p {
  color: var(--sc-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Divider */
.sc-divider {
  height: 1px;
  background: var(--sc-border);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Label */
.sc-section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sc-primary);
  margin-bottom: 2rem;
  display: block;
}

/* Buttons */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.sc-btn-primary {
  background-color: var(--sc-primary);
  color: #fff;
}
.sc-btn-primary:hover {
  background-color: #ea580c;
}

.sc-btn-ghost {
  background-color: transparent;
  color: var(--sc-text-main);
  border-color: var(--sc-border);
}
.sc-btn-ghost:hover {
  background-color: var(--sc-card-bg);
  border-color: var(--sc-text-main);
}

/* Sections */
.sc-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.sc-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 5% 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.sc-hero-content {
  flex: 1;
  max-width: 600px;
}

.sc-hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.sc-hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* Code Block in Hero */
.sc-code-block {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255,255,255,0.1);
}
.sc-code-header {
  background: #2d2d2d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-code-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.sc-code-dot:nth-child(1) { background: #ff5f56; }
.sc-code-dot:nth-child(2) { background: #ffbd2e; }
.sc-code-dot:nth-child(3) { background: #27c93f; }
.sc-code-title {
  margin-left: 12px;
  color: #858585;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.sc-code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d4d4d4;
  overflow-x: auto;
}
.sc-code-body .cm { color: #6a9955; }
.sc-code-body .kw { color: #569cd6; }
.sc-code-body .typ { color: #4ec9b0; }
.sc-code-body .pr { color: #9cdcfe; }
.sc-code-body .str { color: #ce9178; }
.sc-code-body .fn { color: #dcdcaa; }
.sc-code-body .op { color: #d4d4d4; }

/* Grid / Features */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.sc-card {
  padding: 32px;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  border-color: var(--sc-primary);
}
.sc-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.sc-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Stats */
.sc-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.sc-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sc-text-main);
  line-height: 1;
  margin-bottom: 8px;
}
.sc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sc-text-muted);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .sc-hero {
    flex-direction: column;
    padding-top: 100px;
  }
  .sc-hero-title {
    font-size: 2.5rem;
  }
}

/* Bento Box Layout */
.sc-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
@media(min-width: 900px) { .sc-bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); } .sc-bento .sc-bento-large { grid-column: span 2; } .sc-bento .sc-bento-tall { grid-row: span 2; } }
.sc-bento-card { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: 16px; padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.sc-bento-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.sc-mockup-wrapper { width: 100%; height: 320px; background: #fff; border-radius: 12px; border: 1px solid #eaeaea; box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; }
.sc-mockup-header { height: 40px; background: #f8f9fa; border-bottom: 1px solid #eaeaea; display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.sc-mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.sc-mockup-dot.red { background: #ff5f56; }
.sc-mockup-dot.yellow { background: #ffbd2e; }
.sc-mockup-dot.green { background: #27c93f; }
.sc-mockup-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.sc-mockup-row { height: 20px; background: #f1f3f5; border-radius: 4px; }
.sc-mockup-row.title { width: 40%; height: 28px; background: #e9ecef; }
.sc-mockup-row.text { width: 100%; }
.sc-mockup-row.text-short { width: 70%; }
