/* i-dash web — shared styles for the landing and downloads pages. */

:root {
  --bg: #0b0e14;
  --panel: #11151f;
  --panel-2: #161b28;
  --border: #232a3a;
  --text: #e8ecf4;
  --muted: #8a94a8;
  --accent: #77acf4;
  --accent-strong: #4d8df0;
  --danger: #f47174;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    1200px 600px at 80% -10%,
    #1a2233 0%,
    var(--bg) 55%
  );
  color: var(--text);
  font-family:
    "Work Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

/* ---- shared ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.button.primary {
  background: var(--accent-strong);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.small {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- landing ---- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.hero-inner {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  margin: 22px 0 14px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.feature-list li {
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- downloads ---- */

.downloads {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px;
}

.dl-header {
  margin-bottom: 26px;
}

.dl-header h1 {
  margin: 20px 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.dl-header .lede {
  margin: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  max-width: 360px;
}

#login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

#login-form input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

#login-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.files-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.file-tile {
  justify-content: space-between;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-tile .platform {
  font-weight: 700;
  font-size: 0.95rem;
}

.file-tile .file-name {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}

.file-tile .file-size {
  color: var(--muted);
  font-size: 0.8rem;
}

.file-tile a.button {
  margin-top: 8px;
  text-align: center;
}

.note {
  margin-top: 20px;
  font-size: 0.88rem;
}

.credit {
  margin-top: 26px;
  font-size: 0.6rem;
}
