:root {
  --midnight-blue: #000052;
  --ember-orange: #ff8e2b;
  --deep-rose: #610019;
  --friend-blue: var(--midnight-blue);
  --ink: #f7f8ff;
  --muted: rgba(247, 248, 255, 0.72);
  --quiet: rgba(247, 248, 255, 0.54);
  --card: rgba(255, 255, 255, 0.10);
  --card-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 142, 43, 0.30), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(97, 0, 25, 0.54), transparent 27rem),
    radial-gradient(circle at 52% 92%, rgba(255, 142, 43, 0.18), transparent 30rem),
    linear-gradient(135deg, #020213 0%, var(--midnight-blue) 43%, #240014 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.42;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 38vmax;
  height: 38vmax;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.44;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-one {
  top: -10vmax;
  left: -10vmax;
  background: rgba(0, 0, 82, 0.74);
}

.ambient-two {
  right: -12vmax;
  top: 18vh;
  background: rgba(255, 142, 43, 0.40);
  animation-delay: -8s;
}

.ambient-three {
  left: 38vw;
  bottom: -18vmax;
  background: rgba(97, 0, 25, 0.46);
  animation-delay: -4s;
}

@keyframes drift {
  from { transform: translate3d(-2rem, 1rem, 0) scale(0.95); }
  to { transform: translate3d(2rem, -1.5rem, 0) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 32, 0.62);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember-orange), rgba(255,255,255,0.92) 52%, var(--deep-rose));
  color: #07071d;
  box-shadow: 0 12px 35px rgba(255, 142, 43, 0.26);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.tool-list a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.site-nav .nav-pill {
  color: #170008;
  background: linear-gradient(135deg, var(--ember-orange), #ffd4ad);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: white;
}

.section-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 197, 147, 0.96);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.hero-text,
.section-heading p,
.tools-panel p,
.contact-section p,
.project-card p,
.feature-strip p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #180008;
  background: linear-gradient(135deg, var(--ember-orange), #ffd2a5);
  box-shadow: 0 18px 48px rgba(255, 142, 43, 0.28);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.10);
}

.hero-panel,
.project-card,
.feature-strip article,
.tools-panel,
.contact-section {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055)),
    linear-gradient(135deg, rgba(0,0,82,0.16), rgba(97,0,25,0.16));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: calc(var(--radius-xl) - 0.6rem);
  pointer-events: none;
}

.live-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #7cff9b;
  box-shadow:
    0 0 0 7px rgba(124, 255, 155, 0.10),
    0 0 22px rgba(124, 255, 155, 0.85);
}

.time-card {
  margin-bottom: 1rem;
}

.service-stack {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.service-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.service-dot.online {
  background: #7cff9b;
  box-shadow:
    0 0 0 5px rgba(124, 255, 155, 0.10),
    0 0 16px rgba(124, 255, 155, 0.65);
}

.service-dot.standby {
  background: #ffcf70;
  box-shadow:
    0 0 0 5px rgba(255, 207, 112, 0.10),
    0 0 16px rgba(255, 207, 112, 0.60);
}

.service-dot.offline {
  background: #ff6b6b;
  box-shadow:
    0 0 0 5px rgba(255, 107, 107, 0.10),
    0 0 16px rgba(255, 107, 107, 0.60);
}

.service-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-state {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.mini-grid {
  margin-top: 1rem;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.live-dot {
  animation: statusPulse 3.6s ease-in-out infinite;
}

.service-dot {
  animation: statusPulse 4.4s ease-in-out infinite;
}

.time-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--quiet);
  font-size: 0.85rem;
  font-weight: 700;
}

#clock {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  letter-spacing: -0.08em;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mini-grid span,
.tool-list a {
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-weight: 700;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 7rem;
}

.feature-strip article {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: rgba(255,255,255,0.13);
  font-size: 1.2rem;
}

.split-section,
.contact-section {
  padding: 0 0 7rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.project-card:nth-child(1) { box-shadow: 0 30px 80px rgba(0, 0, 82, 0.30); }
.project-card:nth-child(2) { box-shadow: 0 30px 80px rgba(255, 142, 43, 0.18); }
.project-card:nth-child(3) { box-shadow: 0 30px 80px rgba(97, 0, 25, 0.30); }

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.35);
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.075));
}

.card-kicker {
  margin-bottom: auto;
  color: rgba(255, 190, 134, 0.95);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-link {
  margin-top: 1.2rem;
  color: white;
  font-weight: 850;
}

.tools-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
  margin-bottom: 7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
}

.tool-list {
  display: grid;
  gap: 0.75rem;
}

.tool-list a {
  display: flex;
  justify-content: space-between;
  transition: transform 180ms ease, background 180ms ease;
}

.tool-list a::after { content: "→"; }

.tool-list a:hover,
.tool-list a:focus-visible {
  transform: translateX(4px);
  background: rgba(255,255,255,0.14);
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(0,0,0,0.24);
  color: #ffd2a5;
}

.contact-section {
  max-width: 820px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  color: var(--quiet);
}

.site-footer a { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { text-align: center; }

  .hero,
  .tools-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-panel { max-width: 480px; }

  .feature-strip,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-card { min-height: 240px; }
}

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

.hidden-download {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hidden-download s {
  text-decoration: line-through;
}

.hidden-download:hover,
.hidden-download:focus {
  color: inherit;
  text-decoration: none;
}

.hidden-download:hover {
  cursor: url("../res/quacker.ico"), pointer;
}

.date-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}