/* ============================================
   ONNODO — Brand System Scouting
   style.css
   ============================================ */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #F5F7F9;
  color: #020F21;
  line-height: 1.6;
}

/* ---- Layout ---- */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---- Helpers ---- */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3E5057;
}
.label.accent { color: #009BEC; }

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

/* ---- Header ---- */
.site-header {
  background: #020F21;
  color: white;
  padding: 48px 0 40px;
  border-bottom: 2px solid #009BEC;
}
.header-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.header-meta .label { color: rgba(255,255,255,0.35); }
.brand-logo {
  height: 32px;
  display: block;
  margin-bottom: 14px;
}
.header-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-alt { background: #FFFFFF; }

.section-label { margin-bottom: 40px; }
.section-label h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0 8px;
  letter-spacing: -.02em;
}
.section-desc { font-size: 14px; color: #3E5057; }

.section-divider {
  padding: 14px 0;
  text-align: center;
  color: #009BEC;
  font-size: 18px;
  background: #F5F7F9;
  border-top: 1px solid #E8EAED;
  border-bottom: 1px solid #E8EAED;
}

/* ---- Grid ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- Cards ---- */
.card {
  background: #FFFFFF;
  border: 1px solid #E4E8EC;
  border-radius: 12px;
  padding: 24px;
}
.section-alt .card { background: #F5F7F9; }

.card h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A9AA3;
  margin-bottom: 20px;
}
.card-note {
  font-size: 12px;
  color: #AAB4BA;
  margin-top: 16px;
  font-style: italic;
}
.card-desc {
  font-size: 14px;
  color: #3E5057;
  margin-top: -10px;
  margin-bottom: 24px;
}

/* ---- Color Grid ---- */
.color-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px 8px;
}
.color-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  font-weight: 500;
  display: block;
  line-height: 1.3;
}
.color-name {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  display: block;
}
.color-swatch.light .color-label,
.color-swatch.light .color-name { color: #3E5057; }
.color-swatch.light .color-name { color: #8A9AA3; }

/* ---- Font Demo ---- */
.font-demo { display: flex; flex-direction: column; gap: 14px; }
.font-sample {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #F0F2F4;
  padding-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  color: #020F21;
}
.font-sample:last-of-type { border-bottom: none; padding-bottom: 0; }
.poppins-700 { font-size: 21px; font-weight: 700; }
.poppins-600 { font-size: 17px; font-weight: 600; }
.poppins-400 { font-size: 14px; font-weight: 400; color: #3E5057; }
.font-meta {
  font-size: 10px;
  font-family: monospace;
  color: #AAB4BA;
  flex-shrink: 0;
  margin-left: 12px;
}
.font-tag {
  display: inline-flex;
  align-items: center;
  background: #E9F7FF;
  color: #009BEC;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ---- Screenshots ---- */
.screenshots-card { margin-top: 0; }
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .screenshots-grid { grid-template-columns: 1fr; } }

.screenshot-frame {
  border: 1px solid #E4E8EC;
  border-radius: 8px;
  overflow: hidden;
}
.screenshot-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #8A9AA3;
  padding: 7px 12px;
  background: #F5F7F9;
  border-bottom: 1px solid #E4E8EC;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.screenshot-frame img { width: 100%; display: block; }

/* ---- Tokens ---- */
.token-list { display: flex; flex-direction: column; gap: 12px; }
.token-row { display: flex; align-items: center; gap: 12px; }
.token-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}
.token-info { display: flex; flex-direction: column; gap: 2px; }
.token-info code {
  font-size: 12px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  color: #009BEC;
  font-weight: 500;
}
.token-info span { font-size: 12px; color: #8A9AA3; }

/* ---- Type Scale ---- */
.type-scale { display: flex; flex-direction: column; gap: 0; }
.type-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F4;
}
.type-row:last-child { border-bottom: none; }
.type-label {
  font-size: 10px;
  color: #AAB4BA;
  width: 48px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.type-sample { color: #020F21; line-height: 1.2; }

/* ---- Fleet Card Component ---- */
.component-showcase { margin-top: 20px; }
.component-demo {
  background: #EEF2F5;
  border-radius: 10px;
  padding: 32px;
  display: flex;
  justify-content: center;
}
.fleet-card {
  background: white;
  border: 1px solid #DDE6ED;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 24px rgba(0,155,236,0.10);
  font-family: 'Poppins', sans-serif;
}
.fleet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.fleet-card-id { display: flex; flex-direction: column; }
.fleet-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #8A9AA3;
  text-transform: uppercase;
}
.fleet-number {
  font-size: 24px;
  font-weight: 700;
  color: #020F21;
  line-height: 1.1;
}
.fleet-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}
.fleet-status.active {
  background: #E9F7FF;
  color: #009BEC;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #009BEC;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.fleet-card-model {
  font-size: 13px;
  color: #3E5057;
  margin-bottom: 14px;
}
.fleet-card-divider {
  height: 1px;
  background: #EEF2F5;
  margin-bottom: 14px;
}
.fleet-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.fleet-stat {
  text-align: center;
  background: #F5F9FC;
  border-radius: 8px;
  padding: 10px 6px;
}
.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #020F21;
  line-height: 1;
}
.stat-unit {
  font-size: 11px;
  font-weight: 600;
  color: #009BEC;
}
.stat-label {
  display: block;
  font-size: 9px;
  color: #8A9AA3;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- Footer ---- */
.site-footer {
  background: #020F21;
  padding: 48px 0;
  border-top: 2px solid #009BEC;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
@media (max-width: 640px) {
  .footer-content { flex-direction: column; align-items: flex-start; }
}
.footer-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.footer-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  max-width: 380px;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-contact a {
  color: #009BEC;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-contact a:hover { text-decoration: underline; }
.footer-sep { color: rgba(255,255,255,0.2); }
.footer-contact span { color: rgba(255,255,255,0.35); font-size: 13px; }
