:root {
  --ink: #0b0f0d;
  --panel: #111713;
  --panel-soft: #151d18;
  --line: rgba(230, 239, 232, 0.12);
  --line-strong: rgba(230, 239, 232, 0.22);
  --text: #eef3ef;
  --muted: #98a49c;
  --acid: #c7ff3f;
  --acid-soft: rgba(199, 255, 63, 0.12);
  --amber: #ffca57;
  --blue: #65c9ff;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(90deg, rgba(255,255,255,.02), transparent 14%, transparent 86%, rgba(255,255,255,.02));
  mix-blend-mode: overlay;
}

a, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.ambient {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  opacity: .11;
}

.ambient-one { background: var(--acid); top: -16rem; right: -8rem; }
.ambient-two { background: #2f7f5c; bottom: -22rem; left: -12rem; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  position: relative;
}

.topbar {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 32px; height: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewY(-12deg); }
.brand-mark span { background: var(--acid); border-radius: 1px; }
.brand-mark span:nth-child(2) { opacity: .55; }
.brand-mark span:nth-child(3) { opacity: .25; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: .08em; }
.brand-copy strong span { color: var(--acid); }
.brand-copy small { margin-top: 6px; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; color: var(--muted); }

.topbar-right { display: flex; align-items: center; gap: 24px; }
.status-pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c8d1cb;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 0 rgba(199,255,63,.4); animation: pulse 2.2s infinite; }
@keyframes pulse { 65% { box-shadow: 0 0 0 7px rgba(199,255,63,0); } 100% { box-shadow: 0 0 0 0 rgba(199,255,63,0); } }

#clock { font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; color: var(--muted); }

.hero { padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 11vw, 148px); position: relative; }
.eyebrow, .section-kicker { font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.eyebrow span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border: 1px solid var(--line-strong); color: var(--acid); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 960px;
  margin: 34px 0 28px;
  font-size: clamp(50px, 8vw, 110px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 680;
}

h1 em { color: var(--acid); font-style: normal; font-weight: 430; }
.hero-copy { max-width: 560px; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; color: var(--muted); }
.hero-copy strong { color: var(--text); font-weight: 600; }

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 105px;
  display: flex;
  border: 1px solid var(--line);
  background: rgba(10, 15, 12, .65);
  backdrop-filter: blur(12px);
}

.hero-meta div { min-width: 116px; padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta strong { font: 600 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-meta span { font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; color: var(--muted); }

.services-section { padding: 56px 0 96px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.section-kicker { margin-bottom: 10px; color: var(--acid); }
.section-heading h2, .roadmap h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }

.service-search {
  width: min(100%, 290px);
  height: 46px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(17, 23, 19, .7);
}

.service-search:focus-within { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(199,255,63,.08); }
.service-search svg { width: 17px; stroke: var(--muted); stroke-width: 1.6; }
.service-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.service-search input::placeholder { color: #748078; }
.service-search kbd { padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 10px/1 ui-monospace, monospace; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card {
  min-height: 360px;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(22, 30, 25, .98), rgba(13, 18, 15, .98));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-card::after { content: ""; position: absolute; width: 220px; height: 220px; top: -160px; right: -110px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.009), 0 0 0 70px rgba(255,255,255,.007); }
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(26, 36, 29, .98), rgba(14, 20, 16, .98)); }
.service-card-primary { background: linear-gradient(145deg, rgba(27, 39, 31, .98), rgba(14, 20, 16, .98)); }
.service-card-primary::before { content: ""; position: absolute; inset: auto -20% -70% 20%; height: 90%; background: var(--acid); filter: blur(120px); opacity: .05; }

.card-topline, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.service-icon { width: 56px; height: 56px; border: 1px solid var(--line); background: rgba(0,0,0,.18); display: grid; place-items: center; position: relative; }
.crafty-icon svg { width: 29px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linejoin: round; }
.nextcloud-icon { color: var(--blue); }
.cloud-dot { width: 14px; height: 14px; background: currentColor; border-radius: 50%; }
.cloud-ring { position: absolute; width: 20px; height: 20px; border: 5px solid currentColor; border-radius: 50%; top: 17px; }
.cloud-ring.left { left: 6px; }
.cloud-ring.right { right: 6px; }

.service-state { font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.service-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.service-state.ready { color: var(--acid); }
.service-state.queued { color: var(--amber); }

.card-copy { position: relative; z-index: 1; margin: auto 0 34px; padding-top: 48px; }
.card-number { margin-bottom: 10px; color: #6f7b73; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.card-copy h3 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.card-copy > p:last-child { max-width: 410px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.card-footer { padding-top: 20px; border-top: 1px solid var(--line); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #7d8a81; }
.card-footer a, .text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; border: 0; background: transparent; cursor: pointer; padding: 5px 0; }
.card-footer a svg, .text-button svg { width: 17px; stroke: currentColor; stroke-width: 1.7; }
.card-footer a:hover, .text-button:hover { color: var(--acid); }

.add-card {
  grid-column: 1 / -1;
  min-height: 112px;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: rgba(14, 19, 16, .72);
  border-style: dashed;
}
.add-card::after { display: none; }
.add-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 22px; color: var(--acid); }
.add-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 6px; }
.add-card strong { font-size: 15px; }
.add-card small { color: var(--muted); }
.add-arrow { margin-left: auto; color: var(--muted); font-size: 24px; }
.empty-state { padding: 40px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.roadmap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: start; padding: 110px 0; border-top: 1px solid var(--line); }
.roadmap-intro { position: sticky; top: 32px; }
.roadmap-intro h2 { margin: 16px 0 22px; }
.roadmap-intro > p:last-child { max-width: 430px; color: var(--muted); line-height: 1.65; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { min-height: 96px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); color: #7e8982; }
.step-marker { font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps div { display: flex; flex-direction: column; gap: 8px; }
.steps strong { color: var(--text); font-size: 15px; }
.steps small { font-size: 12px; color: var(--muted); }
.step-status { font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.steps .done .step-status { color: var(--acid); }

footer { min-height: 92px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #68736c; font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }

dialog { width: min(calc(100% - 32px), 510px); padding: 0; border: 1px solid var(--line-strong); background: #121914; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(4,7,5,.78); backdrop-filter: blur(8px); }
.dialog-card { padding: 32px; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
.dialog-label { color: var(--acid); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.dialog-close { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; font-size: 20px; cursor: pointer; }
.dialog-card h2 { margin: 32px 0 16px; font-size: 34px; letter-spacing: -.04em; }
.dialog-card p { margin-bottom: 28px; color: var(--muted); line-height: 1.65; }
.dialog-action { width: 100%; padding: 14px 18px; border: 0; background: var(--acid); color: #0a100b; font-weight: 800; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 840px) {
  .hero-meta { position: static; margin-top: 54px; width: 100%; }
  .hero-meta div { flex: 1; min-width: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap-intro { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .topbar { height: 88px; }
  .status-pill { display: none; }
  h1 { font-size: clamp(46px, 16vw, 70px); }
  .hero { padding: 76px 0 82px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-meta div { padding: 14px 10px; }
  .hero-meta strong { font-size: 14px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .service-search { width: 100%; }
  .service-card { min-height: 340px; }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .add-card { min-height: 126px; }
  .add-card small { max-width: 210px; line-height: 1.45; }
  .roadmap { padding: 88px 0; }
  .steps li { grid-template-columns: 34px 1fr; padding: 20px 0; }
  .step-status { grid-column: 2; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
