/* ===========================
   Floio Shared Base Styles
   =========================== */
:root {
  --bg: #000000;

  /* Greens */
  --green-main: #3bbb5b;
  --green-alt: #3de167;

  /* Text + cards */
  --text: #f9fafb;
  --text-muted: #a1a1aa;
  --muted: #9ca3af;
  --card-bg: radial-gradient(circle at top, #041207 0%, #02040a 55%, #000 100%);
  --card-border: rgba(61, 225, 103, 0.25);

  /* Status colors */
  --border: #1a1a1a;
  --accent: #3bbb5b;
  --accent-bright: #3de167;
  --danger: #ff4b4b;
}

html {
  background-color: #000000;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(
      circle at top,
      rgba(2, 8, 18, 0.25) 0%,
      rgba(0, 0, 0, 0.25) 55%
    ) !important;
  background-color: transparent !important;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  position: relative;
}

/* Shared particles canvas */
.floio-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
  pointer-events: none;
}

/* ===========================
   Floio API Homepage (index.html)
   =========================== */

.api-shell {
  width: 100%;
  max-width: 980px;
  text-align: center;
  animation: shellFadeIn 0.7s ease-out forwards;
  opacity: 0;
}

.api-logo-block {
  margin-bottom: 1.75rem;
  animation: logoIn 0.85s ease-out forwards;
  opacity: 0;
}

.api-logo-block img {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(61, 225, 103, 0.45));
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 225, 103, 0.35);
  background: radial-gradient(circle at top, #041207 0%, #000 75%);
  box-shadow: 0 0 22px rgba(59, 187, 91, 0.28);
  margin-bottom: 1.1rem;
}

/* API pill state modifiers */
.api-pill.api-pill-online {
  border-color: rgba(61, 225, 103, 0.55);
  box-shadow:
    0 0 18px rgba(61, 225, 103, 0.45),
    0 0 36px rgba(61, 225, 103, 0.35);
}

.api-pill.api-pill-offline {
  border-color: rgba(255, 75, 75, 0.65);
  box-shadow:
    0 0 20px rgba(255, 75, 75, 0.55),
    0 0 40px rgba(255, 75, 75, 0.45);
}

.api-pill.api-pill-offline .api-pill-dot {
  background: #ff4b4b;
  box-shadow: 0 0 14px rgba(255, 75, 75, 1);
}

.api-pill.api-pill-offline .api-pill-label {
  color: #ff7272;
}

.api-pill-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--green-main);
  box-shadow: 0 0 14px rgba(59, 187, 91, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

.api-pill-label {
  font-weight: 600;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--green-alt);
}

.api-heading h1 {
  font-size: 2rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.api-heading p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.25rem auto 2rem auto;
  max-width: 820px;
}

.api-card {
  position: relative;
  padding: 1.35rem 1.3rem 1.45rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(61, 225, 103, 0.08);
  text-align: left;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.7s ease-out forwards;
}

.api-card:nth-child(1) {
  animation-delay: 0.25s;
}
.api-card:nth-child(2) {
  animation-delay: 0.4s;
}

.api-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(61, 225, 103, 0.12),
    transparent 60%
  );
  opacity: 0.85;
  pointer-events: none;
}

.api-card h2 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-alt);
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
}

.api-card p {
  position: relative;
  z-index: 1;
  font-size: 0.93rem;
  color: #e5e7eb;
  line-height: 1.55;
}

.api-actions {
  margin-top: 0.75rem;
  animation: actionsIn 0.85s ease-out forwards;
  opacity: 0;
}

.api-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 225, 103, 0.5);
  background: radial-gradient(circle at top, #041207 0%, #000 70%);
  color: #f9fafb;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  gap: 0.45rem;
  box-shadow: 0 0 20px rgba(61, 225, 103, 0.32);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    border-color 0.16s ease-out;
}

.api-btn span {
  font-size: 1.1rem;
  transform: translateY(0.5px);
}

.api-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 26px rgba(61, 225, 103, 0.45),
    0 0 10px rgba(61, 225, 103, 0.4);
  border-color: rgba(61, 225, 103, 0.75);
  background: radial-gradient(circle at top, #062412 0%, #000 75%);
}

.api-footer {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.api-footer code {
  font-size: 0.78rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.6);
  color: #e5e7eb;
}

.api-footer span {
  display: none;
}

/* Homepage animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes shellFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes actionsIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage responsive tweaks */
@media (max-width: 768px) {
  body {
    padding: 1.8rem 1.1rem;
  }

  .api-logo-block {
    margin-bottom: 1.5rem;
  }

  .api-logo-block img {
    max-width: 360px;
  }

  .api-heading h1 {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
  }

  .api-heading p {
    font-size: 0.9rem;
  }

  .api-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.7rem;
    margin-bottom: 1.7rem;
  }

  .api-card {
    text-align: left;
  }

  .api-footer {
    margin-top: 1.4rem;
  }
}

@media (max-width: 480px) {
  .api-logo-block img {
    max-width: 300px;
  }

  .api-pill {
    padding-inline: 0.9rem;
  }

  .api-heading h1 {
    font-size: 1.45rem;
  }
}

/* ===========================
   Floio Status Page (status.html)
   =========================== */

.status-shell {
  width: 100%;
  max-width: 720px;
  background: radial-gradient(circle at top, #020b04 0%, #000000 55%);
  border-radius: 1.2rem;
  border: 1px solid rgba(61, 225, 103, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 34px 90px rgba(0, 0, 0, 0.9);
  padding: 2.4rem 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}

.status-shell.offline {
  border-color: rgba(255, 75, 75, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 28px 80px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(255, 75, 75, 0.45);
  background: radial-gradient(circle at top, #1b0505 0%, #000000 60%);
}

.status-shell::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top,
    rgba(61, 225, 103, 0.22),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.status-shell.offline::before {
  background: radial-gradient(
    circle at top,
    rgba(255, 75, 75, 0.32),
    transparent 60%
  );
}

.status-inner {
  position: relative;
  z-index: 1;
}

.status-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.status-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow:
    0 0 20px rgba(61, 225, 103, 0.5),
    0 0 40px rgba(0, 0, 0, 0.9);
  opacity: 0.95;
  padding: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.9);
  background: radial-gradient(
    circle at top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 45%,
    rgba(0, 0, 0, 1) 100%
  );
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 1);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-badge.online {
  color: var(--accent-bright);
  box-shadow:
    0 0 12px rgba(61, 225, 103, 0.35),
    0 0 36px rgba(61, 225, 103, 0.25);
}

.status-badge.offline {
  color: var(--danger);
  box-shadow:
    0 0 18px rgba(255, 75, 75, 0.45),
    0 0 42px rgba(255, 75, 75, 0.35);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(61, 225, 103, 0.9);
  animation: pulse-online 1.4s ease-in-out infinite;
}

.status-badge.offline .status-dot {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 75, 75, 1);
  animation: pulse-offline 1s ease-in-out infinite;
}

@keyframes pulse-online {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@keyframes pulse-offline {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.status-title {
  font-size: 1.4rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.status-shell.offline .status-title {
  color: var(--danger);
}

.status-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 420px;
}

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

.status-card {
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.status-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(156, 163, 175, 0.9);
}

.status-value {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--accent-bright);
  word-break: break-all;
}

.status-value.muted {
  color: var(--muted);
}

.status-footer {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  padding-top: 0.8rem;
}

.status-footer span {
  opacity: 0.9;
}

.status-footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(30, 64, 175, 0.6);
  display: inline-block;
  margin-right: 0.25rem;
  margin-top: 0.25rem;
}

/* Status responsive */
@media (max-width: 640px) {
  .status-shell {
    padding: 1.8rem 1.4rem 1.4rem;
  }

  .status-title {
    font-size: 1.2rem;
  }

  .status-subtitle {
    font-size: 0.8rem;
  }

  .status-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}