:root {
  --bg: #111312;
  --surface: rgba(248, 244, 234, 0.08);
  --surface-strong: rgba(248, 244, 234, 0.14);
  --text: #f8f4ea;
  --muted: #b7b4aa;
  --line: rgba(248, 244, 234, 0.16);
  --amber: #e7b75f;
  --coral: #de6b5f;
  --teal: #79c7b9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #111312 0%, #18211d 48%, #241d18 100%);
  background-size: 44px 44px, 44px 44px, cover;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 7.2rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: left;
  text-wrap: nowrap;
}

.intro {
  width: 100%;
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.sections {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-group {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

h3 {
  margin: 0 0 18px;
  color: teal;
  font-size: 1.05rem;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  h1 {
    font-size: 5.8rem;
  }
}

@media (max-width: 760px) {
  .page {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px 40px;
  }


  .intro {
    max-width: 100%;
    font-size: 1rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .sections {
    grid-template-columns: 1fr;
  }
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: transparent;
  text-align: center;
  border-radius: 6px;
  position: absolute;
  right: 175%;
  opacity: 0;
  transition: opacity 1s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* components */
.list-grid {
  display: grid;
  gap: 1.5rem;
}

textarea {
  min-width: 100%;
  min-height: 500px;
  resize: none;
}

input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  display: inline-grid;
  place-content: center;
  vertical-align: -1px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(248, 244, 234, 0.75);
  border-radius: 2px;
  background-color: #243d2b;
  accent-color: #243d2b;
  cursor: pointer;
}

input[type="checkbox"]::before {
  content: "";
  width: 4px;
  height: 7px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
}

input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

input[type="submit"][value="Kowtow"] {
  color: white;
  background-color: #243d2b;
}

select,
select option {
  color: white;
  background-color: #243d2b;
}

.inp_base {
    text-align: right;
    width: 80px;
    color: white;
    background-color: #243d2b;
}
 
.inp_exp {
    text-align: right;
    width: 80px;
    color: white;
    background-color: #243d2b;
}

.inp_coeff {
    text-align: right;
    width: 180px;
    color: white;
    background-color: #243d2b;
}

.inp_n {
    text-align: right;
    width: 250px;
    color: white;
    background-color: #243d2b;
}

.inp_factor {
    text-align: right;
    width: 350px;
    color: white;
    background-color: #243d2b;
}

.inp_sigma {
    text-align: right;
    width: 100px;
    color: white;
    background-color: #243d2b;
}

.inp_pm {
    text-align: right;
    width: 20px;
    color: white;
    background-color: #243d2b;
}

/* For mobile phones: */
[class="list-grid"] {
  grid-template-columns: 1fr;
}

/* for tablets */
@media only screen and (min-width: 768px) {
  .list-grid { grid-template-columns: 1fr 1fr; }
}

/* for desktops */
@media only screen and (min-width: 1200px) {
  .list-grid { grid-template-columns: 1fr 1fr 1fr; }
}
