@import url("data:text/css,");

:root {
  color-scheme: light;
  --bg: #f7faff;
  --bg-soft: rgba(255, 255, 255, 0.75);
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #101b3d;
  --muted: #65708a;
  --line: rgba(57, 92, 162, 0.13);
  --blue: #1672ff;
  --cyan: #02d5eb;
  --violet: #923eff;
  --shadow: 0 24px 70px rgba(71, 107, 170, 0.13);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b18;
  --bg-soft: rgba(13, 19, 39, 0.82);
  --surface: rgba(19, 27, 52, 0.74);
  --surface-solid: #11182d;
  --text: #edf3ff;
  --muted: #a4afc8;
  --line: rgba(134, 165, 230, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 13%, rgba(0, 208, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 90% 7%, rgba(137, 63, 255, 0.12), transparent 27rem),
    var(--bg);
  transition: background-color .25s ease, color .25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .46;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1480px, calc(100% - 48px));
  height: 82px;
  margin: 16px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  box-shadow: 0 12px 42px rgba(59, 94, 160, .08);
  backdrop-filter: blur(22px);
  position: relative;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand > span:last-child { white-space: nowrap; }
.brand b, .site-footer b { color: var(--blue); }
.brand-mark { width: 38px; height: 38px; display: block; flex: 0 0 auto; filter: drop-shadow(0 7px 12px rgba(76, 74, 255, .24)); }

.desktop-nav { display: flex; align-items: center; gap: 38px; padding: 11px 28px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.desktop-nav a { color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--blue); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; }
.toggle-track { width: 40px; height: 24px; padding: 3px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: block; }
.toggle-track i { width: 18px; height: 18px; border-radius: 50%; background: white; display: block; transition: transform .25s ease; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
[data-theme="dark"] .toggle-track i { transform: translateX(16px); }
.user-chip { min-width: 0; padding: 5px 11px 5px 5px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 20px rgba(41, 83, 155, .08); font-size: 13px; font-weight: 750; }
.user-chip:hover { color: var(--blue); border-color: rgba(49, 112, 255, .32); }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--violet)); box-shadow: 0 5px 13px rgba(61, 93, 255, .25); }
.user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.button {
  min-height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(115deg, var(--cyan), var(--blue) 46%, var(--violet));
  box-shadow: 0 13px 30px rgba(59, 92, 255, .2);
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(76, 72, 255, .3); }
.button-small { min-height: 44px; padding: 0 24px; border-radius: 13px; font-size: 14px; }
.button-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.button-disabled { cursor: default; color: var(--muted); background: var(--line); box-shadow: none; }
.button-disabled:hover { transform: none; box-shadow: none; }

main { overflow: hidden; }
.hero {
  width: min(1480px, calc(100% - 48px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 76% 42%, rgba(76, 168, 255, .11), transparent 48%); pointer-events: none; }
.hero-copy { padding: 70px 24px 60px 36px; position: relative; z-index: 3; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 750; letter-spacing: .2em; color: #7183aa; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow i { display: inline-block; width: 52px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.hero h1 { margin: 28px 0 24px; max-width: 720px; padding: .03em .04em .08em 0; overflow: visible; font-size: clamp(48px, 5.2vw, 82px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; background: linear-gradient(96deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-line { display: flex; flex-wrap: wrap; column-gap: .3em; }
.hero-line > span { display: inline-block; }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45; }
.hero-actions { display: flex; gap: 18px; margin-top: 34px; }
.hero-meta { margin-top: 34px; color: #7d8bad; font-size: 10px; letter-spacing: .17em; }
.hero-meta b { color: var(--blue); padding: 0 9px; }

.network-art { height: 530px; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 0 0; }
.hero-hub-image { width: min(100%, 790px); height: auto; display: block; position: relative; z-index: 2; object-fit: contain; filter: drop-shadow(0 28px 40px rgba(48, 88, 214, .13)); }
.aurora { position: absolute; filter: blur(30px); opacity: .24; border-radius: 50%; }
.aurora-a { width: 340px; height: 130px; top: 60px; left: 80px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform: rotate(-18deg); }
.aurora-b { width: 310px; height: 120px; right: 30px; bottom: 70px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform: rotate(22deg); }

.project-section { padding: 34px max(24px, calc((100vw - 1432px) / 2)) 70px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg-soft), transparent); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading span { font-size: 11px; letter-spacing: .18em; color: #7b89aa; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(32px, 3vw, 48px); letter-spacing: -.04em; }
.section-heading > a { color: var(--blue); font-size: 14px; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.project-card { min-height: 296px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 18px 46px rgba(69, 105, 168, .08); backdrop-filter: blur(20px); overflow: hidden; position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(71, 153, 255, .13), transparent 70%); }
.project-card:hover { transform: translateY(-5px); border-color: rgba(43,111,255,.32); box-shadow: var(--shadow); }
.card-disabled { opacity: .8; }
.card-top { min-height: 54px; display: flex; justify-content: space-between; align-items: start; }
.project-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(81, 132, 255, .09); color: var(--blue); }
.project-icon svg, .detail-icon svg { width: 38px; height: 38px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.project-icon img { width: 44px; height: 44px; display: block; object-fit: contain; }
.detail-icon img { width: 58px; height: 58px; display: block; object-fit: contain; }
.project-icon.jellyfin { color: #7446e8; }.project-icon.cloud { color: #1672ef; }.project-icon.ruter { color: #16213f; }.project-icon.rustdesk { color: #1672ef; }.project-icon.clock { color: #7358e9; }.project-icon.proxmox { color: #e57000; }
[data-theme="dark"] .project-icon.ruter { color: #dfe8ff; }
.project-card h3 { margin: 16px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.project-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.badge { display: inline-flex; align-items: center; width: max-content; min-height: 28px; padding: 0 12px; border-radius: 999px; color: #7441d9; background: rgba(157,87,255,.12); font-size: 11px; font-weight: 750; }
.card-action { margin-top: auto; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 18px; border-radius: 11px; color: #1d5ee7; background: linear-gradient(100deg, rgba(42,188,255,.1), rgba(144,60,255,.1)); font-size: 13px; font-weight: 750; position: relative; z-index: 2; }
.card-action.muted { color: var(--muted); background: var(--line); }

.about-strip { width: min(1360px, calc(100% - 48px)); margin: 20px auto 90px; padding: 54px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-strip h2 { max-width: 600px; margin: 10px 0 0; font-size: clamp(32px, 4vw, 58px); letter-spacing: -.05em; line-height: 1; }
.about-strip p { color: var(--muted); font-size: 18px; line-height: 1.55; }

.detail-hero, .auth-wrap, .account-wrap, .admin-wrap, .message-page { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 90px; }
.back-link { display: inline-block; margin-bottom: 52px; color: var(--muted); font-weight: 650; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.detail-icon { width: 76px; height: 76px; margin-right: 14px; display: inline-grid; place-items: center; border-radius: 22px; color: var(--blue); background: var(--surface); border: 1px solid var(--line); vertical-align: middle; }
.detail-hero h1 { margin: 22px 0 18px; font-size: clamp(60px, 8vw, 112px); letter-spacing: -.07em; line-height: .9; }
.lead { max-width: 700px; color: var(--muted); font-size: 22px; line-height: 1.52; }
.detail-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; color: var(--muted); }
.feature-panel { padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.feature-panel h2 { margin: 0 0 22px; font-size: 28px; }
.feature-panel p, .feature-panel li { color: var(--muted); line-height: 1.6; }
.feature-panel ul { margin: 0; padding-left: 20px; }
.feature-panel li + li { margin-top: 12px; }
.release-section { padding: 62px max(24px, calc((100vw - 1272px) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-section h2 { margin: 10px 0; font-size: 44px; }
.release-section p { color: var(--muted); }
.release-data { display: grid; grid-template-columns: .7fr .7fr 2fr; gap: 18px; }
.release-data div { padding: 20px; border-left: 1px solid var(--line); }
.release-data dt { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.release-data dd { margin: 0; font-weight: 750; }
.release-data code { overflow-wrap: anywhere; font-size: 11px; color: var(--blue); }
.steps { width: min(1272px, calc(100% - 48px)); margin: 80px auto 110px; }
.steps > h2 { font-size: 42px; letter-spacing: -.04em; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.step-grid b { color: var(--blue); font-family: ui-monospace, monospace; }
.step-grid p { color: var(--muted); line-height: 1.5; }

.auth-wrap { min-height: calc(100vh - 190px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.auth-copy h1 { margin: 14px 0 18px; max-width: 560px; font-size: clamp(48px, 6vw, 82px); line-height: .95; letter-spacing: -.06em; }
.auth-copy p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.auth-card, .settings-card { padding: 36px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
label { display: grid; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
label + label { margin-top: 18px; }
input { width: 100%; min-height: 50px; padding: 0 15px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-solid); outline: 0; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,112,255,.12); }
.auth-card .button { width: 100%; margin-top: 24px; }
.form-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.form-switch a { color: var(--blue); font-weight: 750; }
.form-error, .notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.form-error { color: #b12952; background: rgba(240, 66, 112, .1); border: 1px solid rgba(240,66,112,.2); }
.notice { color: #087865; background: rgba(16,188,154,.1); border: 1px solid rgba(16,188,154,.2); }

.account-head, .admin-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.account-head h1, .admin-head h1 { margin: 12px 0 4px; font-size: clamp(48px, 7vw, 86px); letter-spacing: -.06em; }
.account-head p, .admin-head p { color: var(--muted); }
.account-head > div:last-child, .admin-head > div:last-child { display: flex; gap: 12px; }
.inline-form { display: inline; }
.account-grid { margin: 42px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.account-grid span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.status-ok { color: #08a181; }
.status-off { color: #d24a6b; }
.settings-card { margin-top: 18px; display: grid; grid-template-columns: 1fr .85fr .85fr auto; gap: 18px; align-items: end; }
.settings-card h2 { margin: 0 0 8px; }
.settings-card p { margin: 0; color: var(--muted); font-size: 13px; }

.admin-wrap { min-height: 70vh; }
.table-wrap { margin-top: 38px; overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.status { font-size: 12px; font-weight: 750; }
.table-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-solid); cursor: pointer; }
.table-button:disabled { opacity: .4; cursor: not-allowed; }
.message-page { min-height: 65vh; display: grid; place-content: center; text-align: center; }
.message-page h1 { margin: 12px 0; font-size: clamp(56px, 9vw, 120px); letter-spacing: -.07em; }
.message-page p { margin-bottom: 28px; color: var(--muted); }

.site-footer { width: min(1480px, calc(100% - 48px)); margin: 0 auto 24px; padding: 26px 0; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer span:first-child { color: var(--text); font-weight: 800; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-copy { text-align: center; padding: 60px 10px 10px; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .eyebrow, .hero-actions { justify-content: center; }
  .hero-line { justify-content: center; }
  .network-art { width: min(760px, 100%); margin: 0 auto; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .settings-card { grid-template-columns: 1fr 1fr; }
  .settings-card > div { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 24px); height: 68px; margin-top: 8px; padding: 0 14px; border-radius: 17px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand-mark { width: 25px; height: 28px; }
  .header-actions { gap: 5px; }
  .theme-toggle { padding: 3px; }
  .theme-toggle .sun, .theme-toggle .moon { display: none; }
  .button-small { min-height: 40px; padding: 0 16px; }
  .hero, .detail-hero, .auth-wrap, .account-wrap, .admin-wrap, .message-page { width: calc(100% - 30px); }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 68px); line-height: 1.1; letter-spacing: -.04em; }
  .hero-copy { padding-top: 52px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-meta { line-height: 1.8; }
  .network-art { width: calc(100% + 24px); height: auto; min-height: 285px; margin: 6px -12px 0; padding: 10px 0 18px; }
  .hero-hub-image { width: 100%; max-width: 620px; }
  .user-chip { padding-right: 8px; gap: 6px; }
  .user-avatar { width: 28px; height: 28px; }
  .user-name { max-width: 72px; }
  .project-section { padding-left: 15px; padding-right: 15px; }
  .section-heading > a { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 240px; }
  .about-strip { width: calc(100% - 30px); grid-template-columns: 1fr; gap: 22px; }
  .detail-grid, .auth-wrap, .release-section { grid-template-columns: 1fr; }
  .detail-hero { padding-top: 44px; }
  .detail-hero h1 { font-size: 70px; }
  .feature-panel { padding: 26px; }
  .release-section { padding: 42px 22px; }
  .release-data { grid-template-columns: 1fr; }
  .step-grid, .account-grid { grid-template-columns: 1fr; }
  .auth-wrap { padding: 50px 0 70px; gap: 30px; }
  .auth-card { padding: 25px; }
  .account-head, .admin-head { align-items: start; flex-direction: column; }
  .settings-card { grid-template-columns: 1fr; padding: 25px; }
  .settings-card > div { grid-column: auto; }
  .site-footer { width: calc(100% - 30px); align-items: center; gap: 12px; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .theme-toggle { display: none; }
  .user-name { max-width: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
