/* Inter is a variable font: one file per script subset covers weights 400–800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #161618;
  --bg-card: #212124;
  --bg-inset: #2a2a2d;
  --bg-input: #1a1a1c;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8a8a8f;
  --ink-4: #6e6e73;
  --accent: #ff5a1f;
  --accent-soft: #ff7a45;
  --ok: #3ddc84;
  --warn: #e0b64a;
  --line: rgba(255, 255, 255, 0.08);
  --mono: 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #ff926b; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  background-image: radial-gradient(circle at 50% 0%, #1f1f22 0%, #141416 55%);
}

.hero {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  max-width: 1060px;
  width: 100%;
  min-height: 100vh;
  padding: 64px 0;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ff7a45, #ff5a1f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 26px -8px rgba(255, 90, 31, 0.6);
}

.title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 560px;
  line-height: 1.08;
}

.subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 460px;
}

.downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
}

.download:hover { filter: brightness(1.08); }

.download.primary {
  background: linear-gradient(160deg, #ff7a45, #ff5a1f);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255, 90, 31, 0.55);
}
.download.primary:hover { color: #fff; }

.download.disabled {
  background: var(--bg-inset);
  color: var(--ink-3);
}
.download.disabled:hover { color: var(--ink-3); }

.soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 100px;
  background: #3a3a3e;
  color: #c0c0c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta {
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 26px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #232326;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.github-link:hover { background: #2c2c30; color: var(--ink); }

/* ---- Animated app mock ---- */

.hero-right { flex: none; }

.mock {
  width: 390px;
  background: var(--bg-card);
  border-radius: 15px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  margin-bottom: 40px;
  text-align: left;
}

.mock-titlebar {
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.traffic-light { width: 11px; height: 11px; border-radius: 50%; }
.traffic-light.red { background: #ff5f57; }
.traffic-light.yellow { background: #febc2e; }
.traffic-light.green { background: #28c840; }
.mock-titlebar .app-name { margin-left: 9px; font-size: 12.5px; font-weight: 700; }

.mock-header {
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
}
.mock-header .app-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, #ff7a45, #ff5a1f);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-header .app-title { font-size: 15px; font-weight: 700; }

.status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }

.mock-body { height: 322px; position: relative; }

.scene {
  position: absolute;
  inset: 0;
  padding: 22px 18px;
  transition: opacity 0.35s ease;
}

/* Scene 0: access */
.scene-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.access-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #2c2c30;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.access-title { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.access-text {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 20px;
  max-width: 250px;
  line-height: 1.5;
}
.grant-btn {
  padding: 10px 22px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: box-shadow 0.2s;
}

/* Scene 1: backup list */
.scene-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 11px;
}
.backup-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-inset);
  margin-bottom: 9px;
}
.backup-row .backup-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2c2c30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.backup-row .backup-name { font-size: 13.5px; font-weight: 600; }
.backup-row .backup-date { font-size: 12px; color: var(--ink-3); }
.backup-row .backup-info { flex: 1; }
.backup-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid #57575c;
  background: transparent;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}
.backup-row.selected {
  border-color: var(--accent);
  background: rgba(255, 90, 31, 0.1);
}
.backup-row.selected .backup-check {
  border-color: var(--accent);
  background: var(--accent);
}

/* Scene 2: password */
.pw-backup {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--bg-inset);
  margin-bottom: 16px;
}
.pw-backup .backup-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #3a3a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pw-backup .backup-info { flex: 1; }
.pw-backup .backup-name { font-size: 13px; font-weight: 600; }
.pw-backup .backup-date { font-size: 11.5px; color: var(--ink-3); }
.pw-backup .change-link { font-size: 12px; color: var(--accent-soft); font-weight: 500; }

.encrypted-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(254, 188, 46, 0.1);
  border: 1px solid rgba(254, 188, 46, 0.28);
  margin-bottom: 16px;
}
.encrypted-note svg { flex: none; }
.encrypted-note span { font-size: 11.5px; color: var(--warn); line-height: 1.4; }

.pw-label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.pw-wrap { position: relative; margin-bottom: 16px; }
.pw-field {
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: var(--bg-input);
  min-height: 38px;
  letter-spacing: 2px;
}
.pw-wrap .eye-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
}
.extract-btn {
  padding: 11px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

/* Scene 3: progress */
.progress-ring-wrap { position: relative; width: 116px; height: 116px; margin-bottom: 18px; }
.progress-ring-wrap svg { transform: rotate(-90deg); }
.progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.progress-step { font-size: 13.5px; font-weight: 600; }

/* Scene 4: done */
.done-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.done-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(40, 199, 111, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.done-header .done-info { flex: 1; }
.done-header .done-title { font-size: 13.5px; font-weight: 700; }
.done-header .done-sub { font-size: 11px; color: var(--ink-3); }

.token-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg-inset);
}
.token-card + .token-card { margin-top: 10px; }
.token-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.token-name {
  font-size: 12.5px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-ip { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.token-via { font-size: 10.5px; color: var(--ink-3); font-style: italic; }
.token-row { display: flex; align-items: center; gap: 10px; }
.token-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  color: #d0d0d4;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-label { flex: none; font-size: 12px; font-weight: 600; color: var(--accent-soft); }

.mock-dots {
  padding: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mock-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a4a4e;
  transition: all 0.3s;
}

/* ---- Credits ---- */

.credits {
  width: 100%;
  max-width: 1060px;
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.credits-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.credits-grid:last-child { margin-bottom: 0; }

.credit-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border-radius: 12px;
  background: #1e1e21;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.credit-card:hover {
  border-color: rgba(255, 122, 69, 0.5);
  background: #232326;
}

.credit-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.credit-arrow { color: var(--accent-soft); font-size: 11px; }
.credit-desc { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }

/* ---- Copyright ---- */

.copyright {
  width: 100%;
  padding: 44px 0 40px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-4);
}
