/* ACTIVESTUDIO.AI HOMEPAGE
   Dark, dense, minimal design system
   Style references: Linear, Stripe docs, Vercel, Notion
*/

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.homepage {
  width: 100%;
  min-height: 100vh;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: inherit;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

/* ===== PART 1: HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero-entry-subtext {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-demo-status {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 12px 16px;
  border: 1px solid rgba(100, 200, 100, 0.18);
  background: rgba(100, 200, 100, 0.06);
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.latest-output-panel {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  text-align: left;
}

.latest-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.latest-output-title-heading {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.latest-output-badge {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
}

.latest-output-empty {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.latest-output-body {
  display: grid;
  gap: 12px;
}

.latest-output-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.latest-output-row:last-of-type {
  border-bottom: none;
}

.latest-output-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.latest-output-value,
.latest-output-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  word-break: break-word;
}

.latest-output-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.latest-output-snippet {
  padding-top: 8px;
}

.latest-output-preview {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* ===== PART 2: BREAKTHROUGH ===== */
.breakthrough {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakthrough-content {
  max-width: 600px;
  margin: 0 auto;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.flow-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px 24px;
  transition: all 200ms ease;
}

.flow-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.flow-label {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.flow-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.flow-arrow {
  text-align: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.2);
  padding: 4px 0;
}

.breakthrough-caption {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* ===== PART 3: LIVE PREVIEW ===== */
.live-preview {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-preview-content {
  max-width: 1200px;
  margin: 0 auto;
}

.preview-panels {
  display: grid;
  grid-template-columns: minmax(320px, 720px);
  justify-content: center;
  gap: 20px;
}

.preview-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.panel-indicator {
  font-size: 12px;
  color: rgba(100, 200, 100, 0.8);
}

.panel-body {
  padding: 20px;
}

.recent-run-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recent-run-item {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.recent-run-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.recent-run-value {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

.recent-run-empty {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== PART 4: WHAT YOU GET ===== */
.what-you-get {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.what-you-get-content {
  max-width: 1200px;
  margin: 0 auto;
}

.get-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.get-column {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.get-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.get-list {
  list-style: none;
}

.get-list li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.get-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== PART 5: DOCUMENT TYPES ===== */
.document-types {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.document-types-content {
  max-width: 1000px;
  margin: 0 auto;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.document-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  transition: all 200ms ease;
  cursor: pointer;
}

.document-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.document-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.document-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.document-caption {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
  }

  .latest-output-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .latest-output-row {
    grid-template-columns: 1fr;
  }

  .recent-run-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PART 6: PORTALS ===== */
.portals {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portals-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.portals-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.portal-example {
  margin-bottom: 32px;
}

.portal-url {
  display: inline-block;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 18px;
  font-family: 'Monaco', 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.9);
}

.portal-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-description p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== PART 7: SHARE + FORK ===== */
.share-fork {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.share-fork-content {
  max-width: 1000px;
  margin: 0 auto;
}

.fork-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fork-step {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.fork-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

.fork-caption {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== PART 8: MONETIZATION ===== */
.monetization {
  padding: 120px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.monetization-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.monetization-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.monetization-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.monetization-list li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 0;
}

/* ===== PART 9: FINAL CTA ===== */
.final-cta {
  padding: 120px 20px 160px;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-sub {
  margin-top: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-description {
    font-size: 17px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .preview-panels {
    grid-template-columns: 1fr;
  }
  
  .get-columns {
    grid-template-columns: 1fr;
  }
  
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fork-flow {
    flex-direction: column;
  }
  
  .fork-arrow {
    transform: rotate(90deg);
  }
}
