/* ═══════════════════════════════════════════════════════════
   Frajola — blocks.team inspired design
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --border: #222222;
  --border-light: #2a2a2a;
  
  --text: #fafafa;
  --text-muted: #888888;
  --text-dim: #555555;
  
  --accent: #9ab04d;
  --accent-dim: rgba(154, 176, 77, 0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.15);
  
  --radius: 12px;
  --radius-sm: 8px;
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   Labels
   ═══════════════════════════════════════════════════════════ */

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════ */

.hero {
  padding: 180px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.platforms {
  font-size: 14px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   App Showcase
   ═══════════════════════════════════════════════════════════ */

.showcase {
  margin-top: 80px;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.sc-app {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

.sc-titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.sc-dots {
  display: flex;
  gap: 7px;
}

.sc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.sc-dot--close { background: #ff5f57; }
.sc-dot--min { background: #febc2e; }
.sc-dot--max { background: #28c840; }

.sc-body {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  height: 380px;
}

/* Rail */
.sc-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.sc-rail-top, .sc-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sc-rail-logo {
  border-radius: 6px;
  margin-bottom: 8px;
}

.sc-rail-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sc-rail-btn svg {
  width: 18px;
  height: 18px;
}

.sc-rail-btn--active {
  color: var(--accent);
  background: var(--accent-dim);
}

.sc-rail-record {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-rail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
}

/* Sidebar */
.sc-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.sc-sidebar-header {
  font-weight: 600;
  font-size: 13px;
  padding: 14px 14px 8px;
  color: var(--text);
}

.sc-group-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px 4px;
}

.sc-meeting {
  padding: 8px 14px;
  cursor: pointer;
}

.sc-meeting:hover {
  background: var(--bg-card);
}

.sc-meeting--active {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
}

.sc-meeting-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.sc-meeting-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Main Panel */
.sc-main {
  background: var(--bg);
  padding: 20px 24px;
  text-align: left;
  overflow: hidden;
}

.sc-detail-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.sc-detail-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.sc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sc-tab {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}

.sc-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sc-content {
  font-size: 13px;
}

.sc-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  margin-top: 16px;
}

.sc-label:first-child {
  margin-top: 0;
}

.sc-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.sc-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-points li {
  position: relative;
  padding-left: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.sc-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Overlay Pill */
.sc-pill {
  position: absolute;
  bottom: -20px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.sc-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.sc-pill svg {
  color: var(--text-dim);
}

.sc-pill-rec {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.sc-pill-label {
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .showcase {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════
   Steps
   ═══════════════════════════════════════════════════════════ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Features Grid
   ═══════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-light);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Processing Modes
   ═══════════════════════════════════════════════════════════ */

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.mode {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.mode--highlight {
  border-color: var(--accent);
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(to bottom, var(--accent), transparent) border-box;
}

.mode-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.mode ul {
  list-style: none;
}

.mode li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.mode li:last-child {
  border-bottom: none;
}

.mode li span:first-child {
  color: var(--text-muted);
}

.mode li span:last-child {
  font-weight: 500;
}

.green {
  color: var(--accent) !important;
}

.yellow {
  color: var(--yellow) !important;
}

@media (max-width: 900px) {
  .modes {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Logos / Works with
   ═══════════════════════════════════════════════════════════ */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.logo-item {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Downloads
   ═══════════════════════════════════════════════════════════ */

.section--cta {
  text-align: center;
}

.section--cta .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.dl-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.dl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border-radius: 8px;
  color: var(--text-muted);
}

.dl-icon svg {
  width: 20px;
  height: 20px;
}

.dl-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dl-platform {
  font-size: 15px;
  font-weight: 600;
}

.dl-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.version {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-dim);
}

.version a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.version a:hover {
  color: var(--text);
}

@media (max-width: 800px) {
  .downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 14px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
