/* TxCube website. One stylesheet, no build step, no web fonts (nothing loads from other sites). */

:root {
  --bg: #0b1226;
  --bg-raised: #121b36;
  --bg-sunken: #080d1c;
  --text: #e8ecf7;
  --muted: #a3adc8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #5cf2c7;
  --accent-ink: #052a20;
  --link: #8fe9ff;
  --working: #4c8dff;
  --attention: #ffa53d;
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fc;
    --bg-raised: #ffffff;
    --bg-sunken: #e9eef8;
    --text: #0f1730;
    --muted: #4a5573;
    --line: rgba(15, 23, 48, 0.12);
    --accent: #0a8f6c;
    --accent-ink: #ffffff;
    --link: #0b6bb8;
    --glass: rgba(15, 23, 48, 0.04);
    --shadow: 0 30px 70px rgba(15, 23, 48, 0.18);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 5px; background: var(--glass); }
kbd {
  font-size: 0.85em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-raised);
  white-space: nowrap;
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; }
.nav a:not(.button):hover { color: var(--text); }
@media (max-width: 640px) { .nav li:not(:last-child) { display: none; } }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}
.button:hover { filter: brightness(1.07); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.small { padding: 7px 16px; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* Hero */
.hero {
  padding: 80px 0 90px;
  background:
    radial-gradient(60% 60% at 75% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, #26407f 35%, var(--bg)), var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin: 22px 0 0; }
.fineprint { color: var(--muted); font-size: 14px; }

/* Illustration of the app window */
.mock { margin: 0; }
.mock-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 22, 48, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  color: #e8ecf7;
}
.mock-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; }
.mock-titlebar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mock-titlebar span:nth-child(2) { background: #febc2e; }
.mock-titlebar span:nth-child(3) { background: #28c840; }
.mock-titlebar b { margin-left: 10px; font-weight: 600; opacity: 0.85; }
.mock-tabs { display: flex; gap: 4px; padding: 0 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.tab { display: flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 7px; opacity: 0.75; }
.tab.on { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.dot.working { background: var(--working); }
.dot.attention { background: var(--attention); }
.mock-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 230px; }
.pane { margin: 0; padding: 14px; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow: hidden; color: #cdd5ea; }
.pane + .pane { border-left: 5px solid rgba(255, 255, 255, 0.08); }
.pane.focused { box-shadow: inset 0 0 0 1.5px rgba(92, 242, 199, 0.55); }
.pane .c { color: #5cf2c7; }
.pane .a { color: var(--attention); }
.pane .m { color: #8a94b3; }
.mock-composer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #cdd5ea; }
.mock-composer kbd { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #e8ecf7; }
@media (max-width: 520px) { .mock-panes { grid-template-columns: 1fr; } .pane + .pane { border-left: 0; border-top: 5px solid rgba(255, 255, 255, 0.08); } }

/* Sections */
.section { padding: 84px 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 46em; margin: 0 0 36px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.feature {
  padding: 24px 24px 18px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0 0 12px; }
.feature .detail { color: var(--muted); font-size: 15.5px; }

/* Comparison */
.compare-section { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; color: var(--muted); font-weight: 650; position: sticky; top: 0; background: var(--bg-raised); }
tbody th { font-weight: 600; width: 22%; }
tbody tr:last-child > * { border-bottom: 0; }
td.us, th.us { background: color-mix(in srgb, var(--accent) 9%, transparent); }
thead th.us { color: var(--accent); }
.sources { margin-top: 18px; color: var(--muted); font-size: 15px; }
.sources summary { cursor: pointer; font-weight: 600; }
.sources li { margin: 6px 0; }

/* Download */
.download { text-align: center; }
.download img { border-radius: 28px; }
.download .section-lead { margin-inline: auto; }
.download .cta { justify-content: center; }
.steps { display: inline-block; text-align: left; margin: 20px auto 0; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); }
.site-footer p { display: flex; align-items: center; gap: 8px; margin: 6px 0; }

/* Screenshots */
.screens { display: grid; gap: 56px; max-width: 980px; margin-inline: auto; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-sunken); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.shot figcaption b { color: var(--text); }

/* The download note */
.note {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 16px 20px;
  text-align: left;
  font-size: 15.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.note p { margin: 0 0 10px; }
.note b { color: var(--text); }
.note pre { margin: 0; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: var(--bg-sunken); }
.note pre code { padding: 0; background: none; font-size: 14px; color: var(--text); }
