/* Alus ja DEVILAATORi värvid */
:root {
  --bg: #060b0e;
  --panel: rgba(7, 18, 22, 0.94);
  --green: #65e7a5;
  --cyan: #52cbd1;
  --orange: #e5a44f;
  --text: #eef4f2;
  --muted: #acbfba;
  --border: rgba(82, 203, 209, 0.3);
  --dev-gradient: linear-gradient( 90deg, #ff3030 0%, #ff7a00 32%, #ffd500 58%, #35e06f 100% );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #080909;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Päis, navigatsioon ja ühised elemendid */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(8, 9, 9, 0.95);
  border-bottom: 1px solid #1b2721;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  gap: 14px 24px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: transparent;
  background: var(--dev-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: #b8c4bd;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
nav a[aria-current] {
  color: #53e68b;
}

nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: #ffd500;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #606666;
  border-radius: 8px;
  background: #101212;
  color: #f5f5f5;
  font: inherit;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid #ffd500;
  outline-offset: 3px;
}

main {
  width: min(1100px, 88%);
  margin: 0 auto;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

footer {
  width: min(1100px, 88%);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid #242727;
  color: #777;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 4px;
  display: inline-block;
  background: var(--dev-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.small-title {
  color: #53e68b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.button,
.btn {
  display: inline-block;
  padding: 14px 22px;
  background: #53e68b;
  color: #07110b;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  transition: 0.2s;
}

.btn {
  background: var(--dev-gradient);
}

a:focus-visible {
  outline: 2px solid #ffd500;
  outline-offset: 5px;
}

/* Avaleht ja projektikaardid */
.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 28px);
  padding: 60px 0;
}

.hero-copy {
  min-width: 0;
}

.idea-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #354139;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(53, 224, 111, 0.045), rgba(255, 122, 0, 0.025));
}
.idea-cta h2 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.idea-cta p { font-size: 14px; line-height: 1.65; color: #abb6af; }
.idea-cta-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; font-weight: 800; color: #a3e5bb; text-decoration: none; }
.idea-cta-link:hover { color: #d1f5de; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 750px) {
  .idea-cta { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

#project-grid .project-card { background: linear-gradient(145deg, rgba(22, 29, 26, 0.97), rgba(14, 17, 17, 0.97)); border-color: #34403a; }
.project-id { font-family: Consolas, monospace; font-size: 11px; letter-spacing: 1.5px; color: #8d9f94; margin-bottom: 16px; }
.project-secret-link,
.project-secret-link:hover,
.project-secret-link:focus,
.project-secret-link:visited {
  color: inherit;
  text-decoration: none;
  cursor: default;
}
#project-grid .project-status-testing::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 7px; box-shadow: 0 0 7px rgba(217, 191, 118, 0.18); }
@media (hover: hover) and (pointer: fine) {
  #project-grid .project-card:has(a):hover { border-color: #52745e; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 18px rgba(53, 224, 111, 0.06); }
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  justify-self: center;
  mix-blend-mode: screen;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  margin: 20px 0;
  max-width: 850px;
}

.intro {
  color: #9aa79f;
  max-width: 650px;
  font-size: 20px;
  margin-bottom: 30px;
}

.devilaator-about {
  padding: 32px 0 40px;
  border-top: 1px solid #242727;
}

.devilaator-about > p {
  max-width: 760px;
  margin-top: 16px;
  color: #b9bdbd;
  font-size: 17px;
  line-height: 1.7;
}

.devilaator-about > .devilaator-technologies {
  font-size: 14px;
  color: #939f97;
  line-height: 1.7;
}

.devilaator-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.devilaator-socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #343b36; border-radius: 8px; color: #c6d1ca; font-size: 14px; text-decoration: none; }
.devilaator-socials a:hover { border-color: #53a875; color: #f5f5f5; }

.section {
  padding: 90px 0;
  border-top: 1px solid #17211b;
}

.section h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 12px 0 35px;
}

.project-card {
  background: #101212;
  border: 1px solid #292c2c;
  padding: 30px;
  border-radius: 20px;
  min-height: 260px;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:has(a):hover { transform: translateY(-3px); border-color: #555; }
  .project-card:has(a):hover .project-preview { transform: scale(1.025); }
}

#project-grid .project-card { display: flex; flex-direction: column; min-width: 0; }
#project-grid .project-link { align-self: flex-start; margin-top: auto; padding-top: 20px; min-height: 44px; }
#project-grid .project-card:focus-within { border-color: #7a8f7e; }
.project-preview-area { height: 180px; margin-bottom: 20px; overflow: hidden; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: center; }
.project-preview-empty { background: transparent; }
.project-placeholder .project-top { justify-content: flex-end; }
.project-placeholder.project-has-label .project-top { justify-content: space-between; }
.project-status-upcoming { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid #46534b; border-radius: 999px; color: #aebdb2; background: #1a211d; line-height: 1.5; letter-spacing: 0.8px; }
.project-placeholder .project-preview-empty { position: relative; border: 1px solid #344039; background: radial-gradient(circle at center, rgba(153, 183, 162, 0.07), transparent 64%), repeating-linear-gradient(90deg, transparent 0 29px, rgba(158, 190, 169, 0.055) 30px), repeating-linear-gradient(0deg, transparent 0 29px, rgba(158, 190, 169, 0.055) 30px), #101615; }
.project-placeholder .project-preview-empty::before { content: ""; width: 66px; height: 66px; border: 1px solid rgba(166, 190, 175, 0.36); border-radius: 14px; transform: rotate(45deg); box-shadow: 0 0 24px rgba(166, 190, 175, 0.06); }
.project-placeholder .project-preview-empty::after { content: "+"; position: absolute; color: #8da499; font: 300 34px Consolas, monospace; }
@media (hover: hover) and (pointer: fine) {
  .project-placeholder:hover { transform: translateY(-3px); border-color: #46554b; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22), 0 0 18px rgba(53, 224, 111, 0.04); }
}
.project-card h3 {
  font-size: 34px;
  margin: 0 0 16px;
}

.project-card p {
  color: #b9bdbd;
  line-height: 1.7;
  font-size: 16px;
  max-width: 520px;
}

.text {
  max-width: 760px;
  color: #aab5ae;
  font-size: 18px;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 54px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--dev-gradient);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.project-badge,
.project-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.project-badge {
  color: #aaa;
}

.project-status {
  color: #48df75;
}

.project-status-testing {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.project-status-testing { color: #d9bf76; background: #292519; border-color: #51472c; }

.project-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.project-link:hover {
  background: var(--dev-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-link.disabled {
  color: #666;
  pointer-events: none;
}

.project-card a.project-link {
  color: #53e68b;
}

.project-preview {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 180px;
  transition: transform 0.25s ease;
  border-radius: 10px;
}

.steady-hand-page .project-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
}

.steady-hand-page .project-intro + .project-intro { margin-top: 18px; }
.apk-trust { margin-top: 22px; padding-left: 14px; border-left: 2px solid #344c3b; max-width: 620px; }
.apk-trust h3 { font-size: 15px; color: #afc4b5; margin-bottom: 6px; }
.apk-trust p { font-size: 14px; color: #aeb3b3; }

/* QUIT30 tutvustus */
.project-hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: 50px;
  padding: 100px 0;
}

.project-hero h1 {
  font-size: clamp(70px, 10vw, 130px);
  line-height: 0.9;
  margin: 20px 0 28px;
  background: var(--dev-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-intro {
  max-width: 720px;
  font-size: 21px;
  line-height: 1.7;
  color: #b9bdbd;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.project-hero-text {
  min-width: 0;
}

.hero-actions .project-link {
  margin-top: 0;
}

.demo-download-note {
  margin-top: 14px;
  color: #b9bdbd;
  font-size: 14px;
}

.quit30-page .status-section .quit30-download { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 24px; }
.quit30-page .apk-trust { border-color: #7b7058; }
.quit30-page .apk-trust h3 { color: #d5c7a9; }
.quit30-page .section .text + .text { margin-top: 18px; }

/* Telefoni mockup */
.phone-demo {
  display: flex;
  justify-content: center;
  align-self: center;
  min-width: 0;
}

.phone-screen {
  width: 290px;
  background: #050606;
  border: 4px solid #222;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  max-width: 100%;
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

@media (min-width: 901px) {
  .phone-screen {
    width: 330px;
  }
}

/* QUIT30 phone: restrained cyan/green depth without altering the real screenshot. */
.quit30-page .phone-screen {
  position: relative;
  border: 2px solid rgba(80, 238, 190, 0.3);
  background: #04090a;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(76, 205, 222, 0.09),
    0 0 22px rgba(76, 205, 222, 0.075);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.quit30-page .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(85, 232, 138, 0.04), transparent 46%, rgba(76, 205, 222, 0.035));
  mix-blend-mode: screen;
}

.quit30-page .phone-screenshot {
  filter: saturate(0.96) contrast(1.02) hue-rotate(2deg);
}

@media (min-width: 901px) {
  .quit30-page .phone-screen { width: 370px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .quit30-page .phone-screen:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(80, 238, 190, 0.42);
    box-shadow:
      0 30px 64px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(76, 205, 222, 0.13),
      0 0 26px rgba(76, 205, 222, 0.11);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quit30-page .phone-screen { transition: none; }
  .quit30-page .phone-screen:hover { transform: none; }
}

/* Funktsioonid ja arenduse staatus */
.feature-section {
  padding: 100px 0;
  border-top: 1px solid #242727;
}

.feature-section h2,
.status-section h2 {
  font-size: clamp(36px, 5vw, 58px);
  margin: 12px 0 45px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 30px;
  background: #101212;
  border: 1px solid #292c2c;
  border-radius: 18px;
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.feature-card p {
  color: #aeb3b3;
  line-height: 1.65;
}

/* QUIT30 feature matrix: compact translucent HUD cards over the shared cyber landscape. */
.quit30-page .feature-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top-color: rgba(82, 203, 209, 0.16);
  background: transparent;
}

.quit30-page .feature-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 9, 0.86), rgba(8, 9, 9, 0.42) 48%, rgba(8, 9, 9, 0.88)),
    url("../img/hero-cyberpunk-bg.png") center / cover no-repeat;
  opacity: 0.34;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.quit30-page .feature-section > .section-label,
.quit30-page .feature-section > h2,
.quit30-page .feature-section > .feature-grid {
  position: relative;
  z-index: 1;
}

.quit30-page .feature-section .section-label {
  color: #71dec6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.quit30-page .feature-section h2 {
  margin: 10px 0 36px;
  font-size: clamp(32px, 4.5vw, 50px);
  text-shadow: 0 0 24px rgba(82, 203, 209, 0.08);
}

.quit30-page .feature-grid {
  gap: 26px;
}

.quit30-page .feature-card {
  --feature-accent: 80 238 190;
  position: relative;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgb(var(--feature-accent) / 0.055), rgba(5, 15, 20, 0.48) 45%, rgba(5, 15, 20, 0.62));
  border: 1px solid rgb(var(--feature-accent) / 0.26);
  border-radius: 14px;
  box-shadow: inset 0 1px rgb(var(--feature-accent) / 0.035), 0 0 16px rgb(var(--feature-accent) / 0.035);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.quit30-page .feature-card:nth-child(3n + 2) { --feature-accent: 228 171 77; }
.quit30-page .feature-card:nth-child(3n) { --feature-accent: 76 205 222; }

.quit30-page .feature-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgb(var(--feature-accent) / 0.58);
  border-right: 1px solid rgb(var(--feature-accent) / 0.58);
  pointer-events: none;
}

.quit30-page .feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgb(var(--feature-accent) / 0.3);
  border-radius: 9px;
  background: rgb(var(--feature-accent) / 0.07);
  box-shadow: 0 0 12px rgb(var(--feature-accent) / 0.06);
  font-size: 19px;
}

.quit30-page .feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.quit30-page .feature-card p {
  color: #bac7c5;
  font-size: 14px;
  line-height: 1.48;
}

@media (hover: hover) and (pointer: fine) {
  .quit30-page .feature-card:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--feature-accent) / 0.46);
    box-shadow: inset 0 1px rgb(var(--feature-accent) / 0.05), 0 8px 22px rgb(var(--feature-accent) / 0.07);
  }
}

.status-section {
  padding: 100px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.6fr);
  gap: 50px;
  border-top: 1px solid #242727;
}

.status-section p {
  color: #aeb3b3;
  line-height: 1.7;
  max-width: 700px;
}

.status-box {
  background: #101212;
  border: 1px solid #292c2c;
  border-radius: 18px;
  padding: 30px;
}

.status-box span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #777;
  margin-top: 20px;
}

.status-box span:first-child {
  margin-top: 0;
}

.status-box strong {
  display: block;
  margin-top: 5px;
}

.status-live {
  color: #43df73;
}

/* Eraldi lisasoovitus, väljaspool DEVILAATORi projekte */
.see-also {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 230px);
  justify-content: start;
  align-items: center;
  gap: 24px;
  padding: 50px 0;
  border-top: 1px solid #242727;
}

.see-also-copy { min-width: 0; }
.see-also-description { margin-top: 12px; color: #b9bdbd; }
.see-also-prompt {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #d4af67;
  font-size: 14px;
}

.see-also-direction {
  position: relative;
  display: block;
  width: clamp(64px, 8vw, 100px);
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  animation: hessy-point 2.4s ease-in-out infinite;
}

.see-also-direction::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

@keyframes hessy-point {
  0%, 100% { translate: 0 0; }
  50% { translate: 4px 0; }
}

@keyframes hessy-point-down {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}

.see-also h2 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  text-transform: none;
  line-height: 1.5;
}

.hessy-brand {
  color: #d4af67;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(212, 175, 103, 0.12);
}

.hessy-text {
  font-family: Georgia, "Times New Roman", serif;
  color: #d4af67;
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.see-also-logo {
  display: block;
  width: 100%;
  max-width: 230px;
  margin: 0;
  padding: 8px;
  background: rgba(24, 22, 18, 0.55);
  border: 1px solid rgba(212, 175, 103, 0.24);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(214, 181, 109, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.see-also-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .see-also-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 24px rgba(212, 175, 103, 0.13);
  }
}

@media (max-width: 600px) {
  .see-also { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .see-also-logo { max-width: 220px; margin: 0; }
  .see-also-prompt { flex-direction: column; align-items: flex-start; gap: 14px; }
  .see-also-direction { width: 1px; height: 40px; margin-left: 60px; animation-name: hessy-point-down; }
  .see-also-direction::after { top: auto; bottom: 0; right: -4px; transform: rotate(135deg); }
}

/* Avalehe kontaktivorm */
.contact-github {
  margin-bottom: 28px;
}

.contact-form {
  max-width: 680px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #292c2c;
  border-radius: 20px;
  background: #101212;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--dev-gradient);
}

.contact-field {
  margin-bottom: 22px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #606666;
  border-radius: 10px;
  background: #080909;
  color: #f5f5f5;
  font: inherit;
  font-size: 16px;
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid #ffd500;
  outline-offset: 3px;
}

.contact-note {
  color: #b9bdbd;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-submit {
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

#contact-status:not(:empty) {
  margin-top: 16px;
}

.field-error {
  color: #ffaaa0;
  font-size: 14px;
}

.field-error:not(:empty) { margin-top: 6px; }
.contact-field [aria-invalid="true"] { border-color: #ffaaa0; }

.reveal {
  transition: opacity 450ms ease, translate 450ms ease;
}

.reveal-pending {
  opacity: 0;
  translate: 0 14px;
}

.reveal:focus-within { opacity: 1; translate: none; }

.info-page { min-height: 70vh; }
.info-page h1 { font-size: clamp(36px, 6vw, 64px); margin: 16px 0 24px; }
.info-page h2 { font-size: 26px; margin: 32px 0 12px; }
.info-page p { max-width: 760px; margin-bottom: 20px; color: #b9bdbd; }
.info-page p a { color: #53e68b; }

/* Ainult admin-postkast */
.admin-page [hidden] { display: none !important; }
.admin-page h1 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 24px; overflow-wrap: anywhere; }
.admin-page .contact-form { margin-inline: auto; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-toolbar h1 { margin-bottom: 8px; }
.admin-page button { min-height: 48px; }
.admin-page button:disabled { cursor: wait; opacity: 0.6; }
.admin-page button:focus-visible { outline: 2px solid #ffd500; outline-offset: 4px; }
.admin-page [role="status"] { margin: 16px 0; color: #b9bdbd; }
.admin-page .message-card { width: 100%; min-width: 0; background: #101212; border: 1px solid #303636; border-radius: 18px; padding: clamp(20px, 4vw, 30px); margin: 22px 0; overflow-wrap: anywhere; }
.admin-page .message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.admin-page .message-date { display: block; color: #aeb3b3; font-size: 13px; line-height: 1.5; }
.admin-page .message-card h2 { font-size: 24px; margin: 0 0 8px; }
.admin-page .message-card a:not(.btn) { color: #53e68b; }
.admin-page .status-badge { display: inline-flex; align-items: center; flex-shrink: 0; padding: 5px 11px; border: 1px solid #606666; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1.5; background: #222727; color: #f5f5f5; }
.admin-page .status-badge[data-status="new"] { background: #38280c; border-color: #82621b; color: #ffe082; }
.admin-page .status-badge[data-status="read"] { background: #162b3c; border-color: #386384; color: #a6d8ff; }
.admin-page .status-badge[data-status="replied"] { background: #192f22; border-color: #3f7754; color: #8cf0ac; }
.admin-message-text { white-space: pre-wrap; margin: 24px 0; }
.admin-message-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-page .admin-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 0; font: inherit; font-weight: 800; line-height: 24px; cursor: pointer; text-align: center; }
.admin-page .admin-action:hover:not(:disabled) { filter: brightness(1.08); }
.admin-page .admin-delete { background: #4a2024; color: #ffd4d4; box-shadow: inset 0 0 0 1px #a44850; }
.admin-page .admin-reply-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid #303636; }
.admin-reply-form > p { margin-bottom: 12px; color: #b9bdbd; }
.admin-reply-form .contact-field { display: block; margin-top: 20px; }
.admin-reply-form .contact-field > span { display: block; margin-bottom: 8px; font-weight: 700; }
.admin-page .admin-reply-status:empty { margin: 0; }
#admin-user-email { overflow-wrap: anywhere; }

/* Mobiilivaade ja vähendatud liikumine */
@media (max-width: 900px) {
  .project-hero,
  .status-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 750px) {
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .menu-ready #primary-nav { display: none; width: 100%; }
  .menu-ready #primary-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  #primary-nav a { min-height: 44px; display: flex; align-items: center; }

  header {
    padding: 16px 6%;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: 70vh;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: 50px 0;
  }

  .hero-illustration {
    max-width: 360px;
  }

  .intro,
  .project-intro {
    font-size: 17px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .project-hero,
  .feature-section,
  .status-section {
    padding: 65px 0;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .feature-card,
  .status-box {
    padding: 24px;
  }

  footer {
    padding: 30px 0;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .btn,
  .project-card {
    transition: none;
  }

  .reveal { transition: none; opacity: 1; translate: none; }
  .project-preview { transition: none; }
  .project-card:has(a):hover, .project-card:has(a):hover .project-preview, .project-placeholder:hover { transform: none; }
  .see-also-logo { transition: none; }
  .see-also-direction { animation: none; }
  .see-also-logo:hover { transform: none; }
}

/* Avalehe atmosfäär: staatilised CSS-kihid, ilma lisapiltide või animatsioonita. */
.home-page {
  position: relative;
  background-color: #080a0b;
  background-image:
    radial-gradient(ellipse 650px 480px at 88% 10%, rgba(43, 211, 229, 0.055), transparent 75%),
    radial-gradient(ellipse 700px 550px at 4% 38%, rgba(53, 224, 111, 0.045), transparent 75%),
    radial-gradient(ellipse 650px 500px at 96% 76%, rgba(255, 122, 0, 0.035), transparent 75%),
    linear-gradient(rgba(129, 176, 163, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 176, 163, 0.024) 1px, transparent 1px);
  background-size: auto, auto, auto, 80px 80px, 80px 80px;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 7% 29%, rgba(53, 224, 111, 0.36) 0 1px, rgba(53, 224, 111, 0.07) 2px, transparent 9px),
    radial-gradient(circle at 93% 52%, rgba(61, 215, 229, 0.3) 0 1px, rgba(61, 215, 229, 0.06) 2px, transparent 9px),
    radial-gradient(circle at 13% 87%, rgba(255, 145, 66, 0.3) 0 1px, transparent 7px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(160, 187, 178, 0.012) 3px 4px),
    radial-gradient(rgba(181, 197, 190, 0.025) 0.5px, transparent 0.75px);
  background-size: auto, auto, auto, auto, 7px 11px;
}

.home-page .hero {
  position: relative;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 216, 143, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 188, 210, 0.09) 1px, transparent 1px);
  background-size: 64px 48px;
  transform: perspective(440px) rotateX(52deg);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
}

.home-page > header {
  background: rgba(8, 12, 13, 0.78);
  border-bottom-color: rgba(82, 203, 209, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

.home-page #primary-nav a {
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.home-page #primary-nav a[aria-current] {
  color: #79edaa;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(53, 224, 111, 0.22);
}

.home-page #primary-nav a[aria-current]::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  bottom: -5px;
  background: #65e99b;
  box-shadow: 0 0 6px rgba(53, 224, 111, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .home-page #primary-nav a:hover { text-shadow: 0 0 10px rgba(53, 224, 111, 0.25); }
}

.home-page main > section:not(.hero),
.home-page > footer {
  position: relative;
  border-top-color: transparent;
}

.home-page main > section:not(.hero)::before,
.home-page > footer::before {
  content: "";
  position: absolute;
  inset: -3px 0 auto;
  height: 5px;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 50%, rgba(104, 221, 155, 0.5) 0 1px, transparent 2.5px),
    radial-gradient(circle at 76% 50%, rgba(68, 203, 217, 0.35) 0 1px, transparent 2.5px),
    linear-gradient(90deg, transparent, rgba(104, 221, 155, 0.22) 12%, rgba(63, 170, 185, 0.15) 65%, rgba(222, 139, 62, 0.18) 88%, transparent) center / 100% 1px no-repeat;
}

.home-page .section-label {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

/* Visioonipildi HUD-aktsendid: olemasolevate elementide staatiline viimistlus. */
.home-page .small-title {
  font-family: Consolas, "Courier New", monospace;
  text-shadow: 0 0 16px rgba(53, 224, 111, 0.16);
}

.home-page .hero h1 { text-shadow: 0 3px 24px rgba(123, 207, 183, 0.07); }
.home-page .hero .button {
  background: linear-gradient(110deg, #72ed81, #43e89a 65%, #46dfc0);
  box-shadow: 0 0 22px rgba(53, 224, 111, 0.12), inset 0 1px rgba(226, 255, 239, 0.25);
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 24px;
  height: 18px;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 20% 50%, #7ae5a5 0 1px, transparent 3px),
    radial-gradient(circle at 78% 50%, #62c9d2 0 1px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(104, 221, 155, 0.4) 20%, rgba(61, 199, 220, 0.2) 78%, transparent) center / 100% 1px no-repeat;
}

.home-page .idea-cta {
  position: relative;
  border-color: rgba(111, 198, 149, 0.3);
  background: linear-gradient(125deg, rgba(22, 38, 31, 0.72), rgba(9, 17, 20, 0.85));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px rgba(148, 223, 190, 0.035);
}

.home-page .idea-cta::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 18px;
  width: 56px;
  height: 1px;
  pointer-events: none;
  background: #7ebd99;
  box-shadow: 0 0 8px rgba(94, 219, 149, 0.25);
}

.home-page #project-grid .project-card {
  --panel-accent: 104 221 155;
  border-color: rgb(var(--panel-accent) / 0.26);
  background: linear-gradient(145deg, rgb(var(--panel-accent) / 0.045), transparent 45%), #0c1112;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgb(var(--panel-accent) / 0.04);
}

.home-page #project-grid .project-card:nth-child(2) { --panel-accent: 225 153 78; }
.home-page #project-grid .project-card:nth-child(3) { --panel-accent: 80 193 211; }

.home-page #project-grid .project-card::before {
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--panel-accent) / 0.7), transparent);
}

.home-page #project-grid .project-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(rgb(var(--panel-accent) / 0.3), rgb(var(--panel-accent) / 0.3)) top left / 12px 1px,
    linear-gradient(rgb(var(--panel-accent) / 0.3), rgb(var(--panel-accent) / 0.3)) top left / 1px 12px,
    linear-gradient(rgb(var(--panel-accent) / 0.3), rgb(var(--panel-accent) / 0.3)) bottom right / 12px 1px,
    linear-gradient(rgb(var(--panel-accent) / 0.3), rgb(var(--panel-accent) / 0.3)) bottom right / 1px 12px;
  background-repeat: no-repeat;
}

.home-page #project-grid .project-id { color: rgb(var(--panel-accent) / 0.75); }
@media (hover: hover) and (pointer: fine) {
  .home-page #project-grid .project-card:hover {
    border-color: rgb(var(--panel-accent) / 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26), 0 0 20px rgb(var(--panel-accent) / 0.055);
  }
}

@media (max-width: 750px) {
  .home-page { background-size: auto, auto, auto, 64px 64px, 64px 64px; }
  .home-page::before { display: none; }
  .home-page .hero::before { height: 160px; opacity: 0.55; }
  .home-page > header { background: rgba(8, 12, 13, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .home-page #primary-nav a[aria-current]::after { right: auto; width: 28px; bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #primary-nav a { transition: none; }
}

/* ETAPP 2: ainult avalehe päis ja hero. */
.home-page > header { gap: 14px 28px; }
.home-page > header .logo { margin-right: auto; }
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(73, 204, 139, 0.18);
  border-radius: 999px;
  color: #91dcb5;
  font: 10px/1.4 Consolas, "Courier New", monospace;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.system-dot { width: 7px; height: 7px; border-radius: 50%; background: #45ee94; box-shadow: 0 0 10px rgba(69, 238, 148, 0.5); animation: core-pulse 4s ease-in-out infinite; }

.home-page .hero {
  --hero-mint: #65dfb3;
  --hero-cyan: #62bac5;
  width: min(1440px, 92vw);
  margin-left: calc((100% - min(1440px, 92vw)) / 2);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(240px, 0.8fr);
  grid-template-areas: "copy visual idea" "action visual idea";
  gap: 26px 22px;
  min-height: 740px;
  padding: 90px 0 110px;
  background-image:
    linear-gradient(90deg, rgba(3, 7, 9, 0.34), rgba(3, 7, 9, 0.08) 48%, rgba(3, 7, 9, 0.2)),
    linear-gradient(to bottom, transparent 68%, rgba(3, 8, 10, 0.3)),
    url("../img/hero-cyberpunk-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-primary {
  --hero-primary-offset: 0px;
  display: contents;
}
.hero-primary > * { translate: var(--hero-primary-offset) 0; }
.home-page .hero-copy { grid-area: copy; align-self: end; }
/* The generated landscape replaces the earlier inline SVG terrain. */
.hero-terrain { display: none; }
.home-page .hero h1 { font-size: clamp(42px, 4.4vw, 70px); line-height: 1.06; letter-spacing: -0.045em; margin: 22px 0; }
.home-page .hero h1 > span { display: block; }
.home-page .hero-title-accent { background: linear-gradient(100deg, #67ed91 5%, #cfed70 48%, #f5d052 70%, #ffad42 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.home-page .hero .intro { margin-bottom: 18px; font-size: clamp(17px, 1.5vw, 21px); color: #c1cdc6; }
.hero-tagline { max-width: 340px; color: #8dada3; font: 10px/1.8 Consolas, "Courier New", monospace; letter-spacing: 2px; }
.home-page .hero .small-title { font-size: 10px; letter-spacing: 1.7px; }
.home-page .hero-project-cta { grid-area: action; align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: 24px; min-height: 52px; }
.home-page .hero-project-cta:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(53, 224, 111, 0.23); }
.hero-visual { grid-area: visual; position: relative; min-width: 0; align-self: center; }
.home-page .hero-illustration { max-width: 620px; width: 100%; height: auto; }
.hero-hud { position: absolute; inset: 0; pointer-events: none; }
.hud-label { position: absolute; padding: 4px 8px; border: 1px solid rgba(65, 194, 205, 0.24); background: rgba(8, 16, 18, 0.8); color: #82bfc4; font: 9px/1.4 Consolas, "Courier New", monospace; letter-spacing: 2px; }
.hud-label::after { content: ""; position: absolute; width: 26px; height: 1px; background: currentColor; opacity: 0.3; top: 50%; }
.hud-code { top: 4%; left: 3%; }
.hud-code::after { left: 100%; }
.hud-create { top: 38%; right: 0; }
.hud-create::after { right: 100%; }
.hud-build { bottom: 5%; left: 15%; color: #d3aa72; border-color: rgba(211, 170, 114, 0.25); }
.hud-build::after { left: 100%; }
.hud-node { position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; animation: core-pulse 5s ease-in-out infinite; }
.hud-node-cyan { top: 16%; right: 6%; color: #60d3dd; box-shadow: 0 0 9px rgba(96, 211, 221, 0.4); }
.hud-node-orange { bottom: 25%; left: 1%; color: #e9a660; box-shadow: 0 0 9px rgba(233, 166, 96, 0.4); animation-delay: -2s; }

.home-page .hero .idea-cta { grid-area: idea; align-self: end; margin-top: 0; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 22px; border-radius: 8px 24px 8px 24px; border-color: rgba(84, 210, 160, 0.4); transform: translateX(30px); }
/* This circuit is anchored to the panel, so its endpoint always touches the panel border. */
.idea-energy-link { position: absolute; top: 100%; left: -180px; width: calc(100% + 180px); height: 100px; overflow: visible; pointer-events: none; }
.idea-energy-link path { fill: none; stroke: var(--hero-mint); stroke-width: 1.25; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(101, 223, 179, 0.35)); }
.idea-energy-link circle { fill: #9ceccc; }
.home-page .hero .idea-cta h2 { font-size: 18px; line-height: 1.4; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(73, 194, 196, 0.23); }
.home-page .hero .idea-cta p { font-size: 14px; line-height: 1.7; }
.home-page .hero .idea-cta::after { content: ""; position: absolute; bottom: 10px; right: 10px; width: 15px; height: 15px; border-right: 1px solid #74b799; border-bottom: 1px solid #74b799; pointer-events: none; }
.home-page .hero .idea-cta-link { justify-content: center; padding: 10px 12px; border: 1px solid rgba(68, 229, 150, 0.45); border-radius: 7px; color: #79edaa; font-family: Consolas, "Courier New", monospace; letter-spacing: 1px; }
.hero-micro-label { position: absolute; top: 20px; left: 0; padding-left: 12px; border-left: 1px solid rgba(98, 188, 172, 0.35); color: #6e948c; font: 9px/1.7 Consolas, "Courier New", monospace; letter-spacing: 2px; pointer-events: none; }
.hero-micro-label span { display: block; }
.home-page .hero::before,
.home-page .hero::after { content: none; }
.hero-energy { position: absolute; bottom: 26px; left: 3%; width: 94%; height: 70px; overflow: visible; pointer-events: none; opacity: 0.55; }
.hero-energy path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.energy-green { stroke: #5bc591; }
.energy-cyan { stroke: #388e99; }
.energy-orange { stroke: #b27c41; }
.energy-node { fill: #8ae4b0; animation: core-pulse 6s ease-in-out infinite; }
.hero-flow-label {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 45px;
  min-width: 176px;
  padding: 6px 17px;
  border: 1px solid rgba(86, 218, 189, 0.56);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
  background: rgba(7, 18, 19, 0.93);
  box-shadow: 0 0 12px rgba(58, 207, 178, 0.08), inset 0 0 10px rgba(48, 183, 171, 0.035);
  color: #67d8c7;
  font: 9px/1.4 Consolas, "Courier New", monospace;
  letter-spacing: 2.2px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
@keyframes core-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

@media (max-width: 1199px) {
  .hero-primary { --hero-primary-offset: 0px; }
  .idea-energy-link { display: none; }
  .system-status { display: none; }
  .home-page .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "copy visual" "action visual" "idea idea"; min-height: auto; padding-top: 65px; background-position: 35% center; }
  .home-page .hero .idea-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; transform: none; }
  .hero-micro-label { display: none; }
}
@media (max-width: 750px) {
  .home-page .hero {
    width: 100%;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual" "action" "idea";
    gap: 26px;
    padding: 42px 0 64px;
    background-image:
      linear-gradient(90deg, rgba(3, 7, 9, 0.34), rgba(3, 7, 9, 0.16)),
      linear-gradient(to bottom, rgba(3, 7, 9, 0.08), rgba(3, 8, 10, 0.32)),
      url("../img/hero-cyberpunk-bg.png");
    background-position: 32% center;
  }
  .home-page .hero h1 { font-size: clamp(40px, 10.5vw, 64px); margin-top: 0; }
  .home-page .hero .small-title, .hero-hud { display: none; }
  .hero-tagline { font-size: 9px; letter-spacing: 1.5px; }
  .hero-visual { width: min(100%, 440px); justify-self: center; }
  .home-page .hero-project-cta { justify-self: stretch; justify-content: center; }
  .home-page .hero .idea-cta { display: flex; padding: 24px; }
  .hero-energy { bottom: 12px; height: 30px; opacity: 0.25; }
  .hero-flow-label { display: none; }
  .energy-node { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .system-dot, .hud-node, .energy-node { animation: none; opacity: 0.8; }
  .home-page .hero-project-cta:hover { transform: none; }
}

/* Shared homepage modules. Decorative frames never intercept links or form fields. */
.home-page main { width: min(1440px, 94%); }
.home-page .system-panel {
  position: relative;
  width: 100%;
  margin: 24px auto;
  padding: clamp(26px, 3.4vw, 52px);
  border: 1px solid var(--border);
  border-radius: 3px 22px 3px 22px;
  background-color: var(--panel);
  box-shadow: inset 0 0 48px rgba(31, 116, 115, 0.035), 0 14px 38px rgba(0, 0, 0, 0.16);
}
.home-page .system-panel::before,
.home-page .system-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  width: auto;
  height: auto;
  z-index: auto;
  transform: none;
  mask-image: none;
  opacity: 0.65;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 25px 1px,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 25px,
    linear-gradient(var(--green), var(--green)) right bottom / 25px 1px,
    linear-gradient(var(--green), var(--green)) right bottom / 1px 25px;
  background-repeat: no-repeat;
}
.home-page .system-panel::after { inset: 0 18%; background: linear-gradient(90deg, transparent, rgba(82, 203, 209, 0.4), transparent) top / 100% 1px no-repeat; }

/* Keep the landscape inside a spacious hero; edge gradients soften the artwork. */
.home-page .hero.system-panel {
  margin-left: 0;
  padding: 88px 38px 110px 70px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(260px, 0.85fr);
  min-height: 740px;
  background-image:
    linear-gradient(90deg, rgba(6, 11, 14, 0.75), rgba(6, 11, 14, 0.28) 9%, transparent 48%, rgba(6, 11, 14, 0.55)),
    linear-gradient(0deg, var(--bg), transparent 16%, transparent 88%, rgba(6, 11, 14, 0.75)),
    url("../img/hero-cyberpunk-bg.png");
}
.home-page .hero .idea-cta {
  transform: none;
  border: 1px solid rgba(82, 203, 209, 0.72);
  border-radius: 3px 17px 3px 17px;
  background: rgba(5, 18, 20, 0.92);
  box-shadow: 0 0 18px rgba(67, 213, 167, 0.06);
}
.home-page .hero .idea-cta::before {
  inset: 7px;
  width: auto;
  height: auto;
  border: 1px solid rgba(101, 231, 165, 0.22);
  border-radius: 1px 11px 1px 11px;
  background: none;
  box-shadow: none;
}
.home-page .hero .idea-cta h2 { font-size: 20px; color: var(--text); }
.home-page .hero .idea-cta-link { width: 100%; border-radius: 3px; }
.home-page .hero-micro-label { left: 24px; }
.home-page .hero-flow-label { min-width: 264px; padding: 10px 22px; bottom: 6px; font-size: 12px; letter-spacing: 2.6px; }
.home-page .hero-energy { left: 3%; width: 76%; bottom: 0; height: 44px; }
/* The panel connector ends 22px above the hero edge, aligned with the label. */
.home-page .idea-energy-link { height: 100px; }

/* Two-column project modules retain their original images, content and links. */
.home-page #project-grid { gap: 22px; align-items: stretch; }
.home-page #project-grid .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 22px;
  min-height: 360px;
  padding: 26px;
  border-radius: 3px 18px 3px 18px;
  border-color: rgb(var(--panel-accent) / 0.5);
}
.home-page #project-grid .project-card:nth-child(4) { --panel-accent: 77 201 176; }
.home-page #project-grid .project-id { grid-column: 1 / -1; margin-bottom: 12px; }
.home-page #project-grid .project-top { grid-column: 1 / -1; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.home-page #project-grid h3 { grid-column: 1; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.home-page #project-grid .project-preview-area { grid-column: 2; grid-row: 3 / 6; height: 100%; min-height: 180px; margin: 0; border-radius: 4px; }
.home-page #project-grid .project-preview { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.home-page #project-grid .steady-hand-project .project-preview-area { position: relative; }
.steady-hand-eyes {
  position: absolute;
  pointer-events: none;
}
.steady-hand-eye {
  position: absolute;
  width: 40.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.steady-hand-eye::before {
  content: '';
  position: absolute;
  left: 11.5%;
  top: 49%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, #fff 0 24%, #fde9e7 58%, #efafb3 100%);
  box-shadow: 0 0 8px rgba(255, 225, 225, 0.75);
}
.steady-hand-eye-left { left: 7.7%; top: 25.8%; }
.steady-hand-eye-right { left: 51.6%; top: 25.8%; }
.steady-hand-pupil {
  --pupil-x: 0px;
  --pupil-y: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 2px solid #162c29;
  border-radius: 50%;
  background: #67bca8;
  transform: translate(calc(-50% + var(--pupil-x)), calc(-50% + var(--pupil-y)));
  will-change: transform;
}
.steady-hand-pupil-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #05090a;
  transform: translate(-50%, -50%);
}
.steady-hand-pupil-core::after {
  content: '';
  position: absolute;
  top: 9%;
  left: 12%;
  width: 39%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .steady-hand-eyes { display: none; }
}
.home-page #project-grid .project-card > p { grid-column: 1; font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
.home-page #project-grid .project-link { grid-column: 1; justify-self: start; align-self: end; padding: 10px 13px; border: 1px solid rgb(var(--panel-accent) / 0.65); border-radius: 3px; color: var(--green); font: 700 11px/1.7 Consolas, monospace; letter-spacing: 0.5px; }
.home-page #project-grid .project-status-upcoming { color: var(--green); background: rgba(16, 45, 33, 0.45); border-color: rgba(101, 231, 165, 0.4); }
.home-page #contact .contact-form { max-width: 800px; }
.home-page #contact input, .home-page #contact textarea { border-color: var(--border); background: rgba(3, 10, 13, 0.8); border-radius: 4px; }
.home-page #devilaatorist { border-color: rgba(101, 231, 165, 0.23); }
.home-page > footer.system-panel { width: min(1440px, 94%); padding: 25px 32px; align-items: center; color: var(--muted); }
.home-page > footer .logo { font-size: 16px; }

@media (max-width: 1199px) {
  .home-page .hero.system-panel { padding: 64px 32px 110px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .home-page #project-grid .project-card { padding: 22px; column-gap: 16px; }
  .home-page #project-grid .project-card > p { font-size: 13px; }
}
@media (max-width: 900px) {
  .home-page #project-grid .project-card { display: flex; }
  .home-page #project-grid .project-preview-area { height: 180px; min-height: 180px; margin-bottom: 20px; }
  .home-page #project-grid .project-top { min-height: 58px; }
}
@media (max-width: 750px) {
  .home-page .system-panel { padding: 26px 20px; margin: 16px auto; border-radius: 3px 14px 3px 14px; }
  .home-page .hero.system-panel { padding: 40px 20px 64px; grid-template-columns: minmax(0, 1fr); min-height: auto; background-position: 32% center; }
  .home-page .hero h1 { font-size: clamp(36px, 9.6vw, 64px); }
  .home-page #project-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page #project-grid .project-top { min-height: 0; }
  .home-page #project-grid h3 { font-size: 28px; }
  .home-page #project-grid .project-card > p { font-size: 15px; }
  .home-page > footer.system-panel { padding: 24px; }
}

/* Continuous homepage environment: one background, separated by space and signal lines. */
.home-page {
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, rgba(3, 8, 11, 0.1) 0 680px, rgba(3, 8, 11, 0.58) 1100px, rgba(3, 8, 11, 0.88) 1750px, rgba(3, 8, 11, 0.92) 100%),
    url("../img/hero-cyberpunk-bg.png"),
    linear-gradient(rgba(82, 203, 209, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 203, 209, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, cover, 80px 80px, 80px 80px;
  background-position: center top, center center, center top, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: scroll, fixed, fixed, fixed;
}
.home-page::before { display: none; }

.home-page .system-panel {
  width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .system-panel::after { content: none; }
.home-page .system-panel::before {
  content: "";
  position: absolute;
  inset: 0 4% auto;
  width: auto;
  height: 5px;
  opacity: 0.72;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(101, 231, 165, 0.75) 0 1px, transparent 3px),
    radial-gradient(circle at 78% 50%, rgba(82, 203, 209, 0.58) 0 1px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(82, 203, 209, 0.3) 14%, rgba(101, 231, 165, 0.15) 72%, transparent) center / 100% 1px no-repeat;
  box-shadow: none;
  pointer-events: none;
}
.home-page .hero.system-panel {
  width: min(1180px, calc(100% - 80px));
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 0 112px;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.62fr);
  grid-template-areas: "copy idea" "action idea";
  gap: 28px 74px;
  background: none;
}
.home-page .hero-primary { --hero-primary-offset: 52px; }
.home-page .hero.system-panel::before { content: none; }
.home-page .hero-copy,
.home-page .hero-project-cta,
.home-page .hero .idea-cta { position: relative; z-index: 2; }
.home-page .hero-copy { align-self: end; max-width: 560px; }
.home-page .hero-project-cta { align-self: start; }
.home-page .hero .idea-cta {
  align-self: center;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  translate: -28px 0;
}
.home-page .hero-energy {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.64;
}
.home-page .hero-energy path { filter: drop-shadow(0 0 3px currentColor); }
.home-page .hero-energy .energy-green { color: #5bc591; }
.home-page .hero-energy .energy-cyan { color: #388e99; }
.home-page .hero-energy .energy-orange { color: #b27c41; }
.home-page .hero-energy .energy-node-left { fill: #e5a44f; }
.home-page .hero-energy .energy-node-right { fill: #8ae4b0; }
.home-page .hero-flow-label {
  position: absolute;
  z-index: 2;
  left: 48%;
  bottom: 5px;
  min-width: 286px;
  padding: 11px 24px;
  font-size: 12px;
}
.home-page .idea-energy-link { display: none; }

.home-page main > .system-panel:not(.hero) {
  padding: clamp(74px, 8vw, 112px) clamp(0px, 2vw, 28px);
}
.home-page #projektid,
.home-page #devilaatorist,
.home-page #contact { background: rgba(3, 9, 12, 0.3); }
.home-page > footer.system-panel {
  width: min(1440px, 94%);
  margin: 0 auto;
  padding: 30px 18px;
  border-top: 0;
  background: rgba(3, 9, 12, 0.38);
}

@media (max-width: 1199px) {
  .home-page .hero-primary { --hero-primary-offset: 0px; }
  .home-page .hero.system-panel {
    width: min(100%, 940px);
    padding: 78px 24px 112px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
    grid-template-areas: "copy idea" "action idea";
    gap: 26px 44px;
    background: none;
  }
  .home-page .hero .idea-cta { translate: none; }
}
@media (max-width: 900px) {
  .home-page .hero-energy { display: none; }
}
@media (max-width: 750px) {
  .home-page {
    background-image:
      linear-gradient(to bottom, rgba(3, 8, 11, 0.12) 0 580px, rgba(3, 8, 11, 0.72) 950px, rgba(3, 8, 11, 0.92) 1450px, rgba(3, 8, 11, 0.94) 100%),
      url("../img/hero-cyberpunk-bg.png"),
      linear-gradient(rgba(82, 203, 209, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(82, 203, 209, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, auto 820px, 64px 64px, 64px 64px;
    background-position: center top, 31% 72px, center top, center top;
    background-attachment: scroll;
  }
  .home-page .hero.system-panel {
    width: 100%;
    min-height: auto;
    padding: 54px 20px 90px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "action" "idea";
    gap: 28px;
  }
  .home-page .hero .idea-cta { max-width: none; justify-self: stretch; }
  .home-page .hero-flow-label { display: block; left: 50%; min-width: 210px; padding: 8px 15px; font-size: 9px; }
  .home-page .hero-energy { display: none; }
  .home-page main > .system-panel:not(.hero) { padding: 68px 0; }
}

/* Compact header composition from brand identity to live system status. */
.home-page > .site-header {
  min-height: 76px;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(82, 203, 209, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.home-page .header-inner {
  width: 100%;
  max-width: none;
  min-height: 76px;
  margin: 0;
  padding: 0 clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}
.home-page .brand-group,
.home-page .header-actions {
  display: flex;
  align-items: center;
}
.home-page .brand-group { flex: 0 1 auto; min-width: 0; gap: 20px; margin-right: auto; }
.home-page > .site-header .brand-logo {
  flex: 0 0 auto;
  margin-right: 0;
  font-size: clamp(26px, 2.3vw, 33px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2.2px;
}
.brand-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(82, 203, 209, 0.68), transparent);
  box-shadow: 0 0 8px rgba(82, 203, 209, 0.12);
}
.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #a0bdb9;
  font: 10px/1.4 Consolas, "Courier New", monospace;
  letter-spacing: 1.7px;
  white-space: nowrap;
}
.brand-meta span:first-child { color: #b8d3cf; }
.home-page .header-actions { flex: 0 0 auto; gap: clamp(20px, 2.2vw, 34px); margin-left: auto; }
.home-page .main-nav { align-items: center; gap: clamp(20px, 2vw, 31px); flex-wrap: nowrap; }
.home-page .main-nav a {
  color: #d4dcda;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.home-page #primary-nav a[aria-current]::after { height: 2px; }
.home-page .status-pill {
  min-height: 36px;
  padding: 8px 18px;
  border-color: rgba(64, 224, 153, 0.38);
  background: rgba(5, 20, 18, 0.48);
  color: #78e9aa;
  box-shadow: 0 0 10px rgba(53, 224, 111, 0.025);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.home-page .status-pill .system-dot { width: 7px; height: 7px; }

@media (min-width: 901px) and (max-width: 1199px) {
  .home-page .system-status { display: flex; }
}
@media (min-width: 901px) and (max-width: 1120px) {
  .home-page .brand-divider,
  .home-page .brand-meta { display: none; }
}
@media (max-width: 900px) {
  .home-page .brand-divider,
  .home-page .brand-meta { display: none; }
}
@media (max-width: 750px) {
  .home-page > .site-header { min-height: 70px; }
  .home-page .header-inner { width: 100%; min-height: 70px; padding: 13px 6%; flex-wrap: wrap; gap: 10px 18px; }
  .home-page > .site-header .brand-logo { font-size: 21px; }
  .home-page .header-actions { display: contents; }
  .home-page .main-nav { gap: 0; }
}

@media (max-width: 600px) {
  .quit30-page .feature-grid { gap: 14px; }
  .quit30-page .feature-card { padding: 18px; }
  .quit30-page .feature-icon { width: 36px; height: 36px; margin-bottom: 13px; }
  .quit30-page .feature-section h2 { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .quit30-page .feature-card { transition: none; }
  .quit30-page .feature-card:hover { transform: none; }
}

/* QUIT30 uses the same visual world as the DEVILAATOR homepage. */
.quit30-site {
  background-color: #05090c;
  background-image:
    linear-gradient(180deg, rgba(3, 8, 11, 0.48), rgba(3, 8, 11, 0.72) 48%, rgba(3, 8, 11, 0.84)),
    radial-gradient(ellipse at 78% 12%, rgba(66, 205, 220, 0.08), transparent 42%),
    url("../img/hero-cyberpunk-bg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

:is(.quit30-site, .steady-hand-site) > .site-header {
  min-height: 76px;
  padding: 14px clamp(28px, 4vw, 64px);
  background: transparent;
  border-bottom: 1px solid rgba(82, 203, 209, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  flex-wrap: nowrap;
}

:is(.quit30-site, .steady-hand-site) > .site-header .brand-logo {
  margin-right: auto;
  font-size: clamp(26px, 2.3vw, 33px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2.2px;
}

:is(.quit30-site, .steady-hand-site) .main-nav {
  align-items: center;
  gap: clamp(20px, 2vw, 31px);
  flex-wrap: nowrap;
}

:is(.quit30-site, .steady-hand-site) .main-nav a {
  color: #d4dcda;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.quit30-page .project-hero h1 {
  background: linear-gradient(90deg, #55e88a 0%, #9bea63 38%, #d8ef55 68%, #ffd45a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quit30-page .section-label {
  color: #83e6bd;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(85, 232, 138, 0.14);
}

.quit30-page .feature-section::before { display: none; }

.quit30-page .btn {
  background: linear-gradient(110deg, #74ed83, #49e5a2 65%, #4bdccc);
  color: #06110c;
  box-shadow: 0 0 20px rgba(73, 229, 162, 0.1), inset 0 1px rgba(230, 255, 240, 0.24);
}

.quit30-page .project-link:hover {
  background: linear-gradient(90deg, #55e88a, #8ce6bc);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 750px) {
  .quit30-site { background-attachment: scroll; }
  :is(.quit30-site, .steady-hand-site) > .site-header { min-height: 70px; padding: 13px 6%; flex-wrap: wrap; }
  :is(.quit30-site, .steady-hand-site) > .site-header .brand-logo { font-size: 21px; }
  :is(.quit30-site, .steady-hand-site) .main-nav { gap: 0; }
}

/* STEADY HAND keeps the shared DEVILAATOR system with a warm game identity. */
.steady-hand-site {
  background-color: #05080b;
  background-image:
    linear-gradient(180deg, rgba(3, 7, 10, 0.58), rgba(4, 7, 10, 0.78) 50%, rgba(4, 7, 10, 0.88)),
    radial-gradient(ellipse at 18% 18%, rgba(255, 91, 61, 0.075), transparent 38%),
    url("../img/hero-cyberpunk-bg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.steady-hand-page .project-hero h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.02;
  background: linear-gradient(90deg, #ff4b4b 0%, #ff7a3d 35%, #ffad45 68%, #ffd75a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steady-hand-page .section-label {
  color: #ffac58;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(255, 122, 61, 0.17);
}

.steady-hand-page .btn {
  background: linear-gradient(110deg, #ff5a48, #ff863f 58%, #ffc653);
  color: #160805;
  box-shadow: 0 0 20px rgba(255, 103, 61, 0.12), inset 0 1px rgba(255, 244, 220, 0.26);
}

.steady-hand-page .project-link:hover {
  background: linear-gradient(90deg, #ff6b45, #ffc957);
  -webkit-background-clip: text;
  background-clip: text;
}

.steady-hand-page .phone-screen {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(5, 8, 10, 0.82), rgba(7, 6, 8, 0.88)) padding-box,
    linear-gradient(150deg, rgba(255, 84, 67, 0.5), rgba(255, 166, 62, 0.34) 58%, rgba(76, 205, 222, 0.3)) border-box;
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.52),
    0 0 18px rgba(255, 104, 67, 0.065),
    0 0 16px rgba(76, 205, 222, 0.045);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steady-hand-page .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 75, 75, 0.035), transparent 46%, rgba(76, 205, 222, 0.04));
  mix-blend-mode: screen;
}

.steady-hand-page .phone-screenshot {
  filter: saturate(1.02) contrast(1.02);
}

@media (min-width: 901px) {
  .steady-hand-page .phone-screen { width: 360px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .steady-hand-page .phone-screen:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
      0 31px 66px rgba(0, 0, 0, 0.54),
      0 0 22px rgba(255, 104, 67, 0.1),
      0 0 20px rgba(76, 205, 222, 0.07);
  }
}

.steady-hand-page .feature-section {
  position: relative;
  border-top-color: rgba(255, 122, 61, 0.16);
  background: transparent;
}

.steady-hand-page .status-section,
.steady-hand-page > .section {
  border-top-color: rgba(255, 122, 61, 0.14);
}

.steady-hand-page .status-box {
  background: linear-gradient(145deg, rgba(255, 91, 61, 0.055), rgba(7, 12, 16, 0.62));
  border-color: rgba(255, 139, 66, 0.24);
  box-shadow: inset 0 1px rgba(255, 202, 109, 0.035), 0 0 18px rgba(255, 91, 61, 0.035);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.steady-hand-page .apk-trust { border-color: rgba(255, 139, 66, 0.42); }
.steady-hand-page .apk-trust h3 { color: #e4c7aa; }

.steady-hand-page .feature-section h2 {
  margin: 10px 0 36px;
  font-size: clamp(32px, 4.5vw, 50px);
  color: #f4f7f6;
  text-shadow: 0 0 24px rgba(255, 122, 61, 0.07);
}

.steady-hand-page .feature-grid { gap: 26px; }

.steady-hand-page .feature-card {
  --steady-accent: 255 91 61;
  position: relative;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgb(var(--steady-accent) / 0.06), rgba(15, 7, 7, 0.5) 46%, rgba(7, 12, 16, 0.64));
  border: 1px solid rgb(var(--steady-accent) / 0.27);
  border-radius: 14px;
  box-shadow: inset 0 1px rgb(var(--steady-accent) / 0.04), 0 0 16px rgb(var(--steady-accent) / 0.035);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.steady-hand-page .feature-card:nth-child(3n + 2) { --steady-accent: 255 166 62; }
.steady-hand-page .feature-card:nth-child(3n) { --steady-accent: 76 205 222; }

.steady-hand-page .feature-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgb(var(--steady-accent) / 0.58);
  border-right: 1px solid rgb(var(--steady-accent) / 0.58);
  pointer-events: none;
}

.steady-hand-page .feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgb(var(--steady-accent) / 0.31);
  border-radius: 9px;
  background: rgb(var(--steady-accent) / 0.075);
  box-shadow: 0 0 12px rgb(var(--steady-accent) / 0.065);
  font-size: 19px;
}

.steady-hand-page .feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.steady-hand-page .feature-card p {
  color: #c7bfbd;
  font-size: 14px;
  line-height: 1.48;
}

@media (hover: hover) and (pointer: fine) {
  .steady-hand-page .feature-card:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--steady-accent) / 0.48);
    box-shadow: inset 0 1px rgb(var(--steady-accent) / 0.055), 0 8px 22px rgb(var(--steady-accent) / 0.075);
  }
}

@media (max-width: 750px) {
  .steady-hand-site { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .steady-hand-page .feature-grid { gap: 14px; }
  .steady-hand-page .feature-card { padding: 18px; }
  .steady-hand-page .feature-icon { width: 36px; height: 36px; margin-bottom: 13px; }
  .steady-hand-page .feature-section h2 { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .steady-hand-page .phone-screen,
  .steady-hand-page .feature-card { transition: none; }
  .steady-hand-page .phone-screen:hover,
  .steady-hand-page .feature-card:hover { transform: none; }
}

/* Refined label only; connector geometry and label position remain unchanged. */
.home-page .hero-flow-label {
  border-color: rgba(91, 238, 218, 0.78);
  background: linear-gradient(180deg, rgba(6, 23, 25, 0.97), rgba(3, 12, 15, 0.98));
  box-shadow:
    inset 0 0 13px rgba(82, 203, 209, 0.11),
    inset 0 1px rgba(174, 255, 239, 0.08),
    0 0 13px rgba(58, 207, 178, 0.13),
    0 0 3px rgba(82, 203, 209, 0.16);
  color: #a5f8e9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-shadow: 0 0 7px rgba(118, 241, 218, 0.34);
}

@media (max-width: 750px) {
  .home-page .hero-flow-label { font-size: 10px; }
}

/* Real-world testing status, only on the Kilbihaldus project card. */
.home-page #project-grid .project-field-test > .project-link {
  margin-top: 16px;
  min-height: 44px;
}
@media (max-width: 750px) {
  .home-page #project-grid .project-field-test > .project-link {
    width: 100%;
    text-align: center;
  }
}
.home-page #project-grid .project-preview.kilbihaldus-project-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
@media (max-width: 750px) {
  .home-page #project-grid .project-preview.kilbihaldus-project-logo {
    max-width: 180px;
  }
}
.home-page #project-grid .project-field-test .project-status {
  color: #d9bf76;
  background: #292519;
  border-color: #51472c;
  white-space: normal;
}
.home-page #project-grid .project-field-test > .project-test-note {
  padding-left: 12px;
  border-left: 2px solid #d9bf76;
  color: #b8c4c8;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 0;
}
