:root {
  --bg: #03100d;
  --bg-soft: #071814;
  --panel: rgba(8, 32, 25, 0.78);
  --text: #edf6f1;
  --muted: #a7c6b2;
  --accent: #2db965;
  --line: rgba(45, 185, 101, 0.3);
  --glow: rgba(45, 185, 101, 0.32);
  --danger: #f43f5e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 82% -4%, rgba(45, 185, 101, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 7% 0%, rgba(45, 185, 101, 0.2) 0%, transparent 38%),
    var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(3, 16, 13, 0.84), rgba(3, 16, 13, 0.9)),
    url("/home/media/wayforge_1024x500.png") center top / cover no-repeat;
  opacity: 0.42;
  z-index: -1;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

.wrap--narrow {
  max-width: 960px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 20px;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

h1,
h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #103124, #0a2218);
  padding: 11px 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(45, 185, 101, 0);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: #35c86e;
  box-shadow: 0 0 16px 0 rgba(53, 200, 110, 0.24);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(180deg, #35c86e, #2db965);
  border-color: #4ad47d;
  color: #04110b;
  box-shadow: 0 0 18px 0 var(--glow);
}

.footer {
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.home-page h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0.01em;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 28px 0 20px;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.section {
  margin-top: 34px;
  border-top: 1px solid rgba(26, 45, 82, 0.6);
  padding-top: 22px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.shots {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #082118;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-cta {
  display: none;
}

.home-page .footer {
  margin: 34px 0 8px;
}

.policy-page a {
  color: var(--accent);
}

.policy-page h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 42px);
}

.policy-page h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.delete-page {
  color-scheme: dark;
}

.delete-page main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.delete-page code {
  background: rgba(26, 45, 82, 0.75);
  border-radius: 4px;
  padding: 2px 6px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(7, 27, 20, 0.78);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.delete-page .btn {
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: linear-gradient(180deg, #103124, #0a2218);
  color: var(--text);
}

.btn-danger {
  background: linear-gradient(180deg, var(--danger), #cf2749);
  border-color: #f9728b;
  color: #ffffff;
}

input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  background: rgba(10, 32, 23, 0.9);
  color: var(--text);
}

.status {
  margin-top: 10px;
  font-size: 14px;
}

.ok {
  color: #4ade80;
}

.err {
  color: #fb7185;
}

@media (max-width: 900px) {
  .wrap {
    padding: 18px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shots {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 14px;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  .panel,
  .delete-page main {
    padding: 18px;
    border-radius: 14px;
  }
  .home-page h1 {
    font-size: clamp(30px, 11vw, 42px);
    line-height: 1.08;
  }
  .sub {
    font-size: 16px;
  }
  .cta-row {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero-card {
    margin-top: 4px;
  }
  .section h2 {
    font-size: 24px;
  }
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .shot {
    min-width: 78vw;
    max-width: 78vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(3, 16, 13, 0.2), rgba(3, 16, 13, 0.96) 35%);
    border-top: 1px solid rgba(45, 185, 101, 0.24);
    display: block;
  }
  .mobile-cta .btn {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 22px 0 var(--glow);
  }
  .home-page .footer {
    padding-bottom: 86px;
  }
  .row .btn {
    width: 100%;
  }
}

