/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #e7e7e7;
  background: #0f1115;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Links */
a { color: #74c7ec; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.wrap { width: 92%; max-width: 1100px; margin: 0 auto; }
.section { padding: 48px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.list { padding-left: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15,17,21,0.95);
  border-bottom: 1px solid #23262d;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.brand { color: #e7e7e7; font-weight: 700; font-size: 18px; }
.nav a { display: inline-block; margin-left: 16px; padding: 6px 8px; color: #cbd5e1; border-radius: 6px; }
.nav a:hover { background: #1a1d23; }

/* About */
.about-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

/* Cards */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}
.card { background: #11141a; border: 1px solid #23262d; border-radius: 12px; overflow: hidden; }
.card-body { padding: 14px 14px 16px; }
.card-body h3 { margin-top: 4px; color: #ffffff; }
.meta { padding-left: 18px; margin: 8px 0 0; color: #cbd5e1; }

/* Buttons */
.buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn, .btn-ghost, .btn-warning {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn { background: #e7e7e7; color: #0f1115; border-color: #e7e7e7; }
.btn:hover { opacity: 0.9; }
.btn-ghost { background: #0f1115; color: #e7e7e7; border-color: #343944; }
.btn-ghost:hover { background: #151922; }
.btn-warning { background: #e02424; color: #fff; border-color: #e02424; }
.btn-warning:hover { opacity: 0.95; }

/* Forms */
.contact-form {
  display: grid; gap: 8px; max-width: 560px; margin-top: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #343944;
  border-radius: 8px;
  font: inherit;
  color: #e7e7e7;
  background: #0f1115;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #74c7ec;
  outline-offset: 1px;
}

/* Contact Icons */
.icon-row {
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
  display: flex;
  gap: 12px;
}
.icon-row li { display: inline-block; }
.icon-row a {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid #343944;
  background: #0f1115;
  padding: 8px;
}
.icon-row a:hover { background: #151922; }
.icon-row img { border-radius: 0; width: 28px; height: 28px; }

/* Footer */
.site-footer { border-top: 1px solid #23262d; background: #0d0f13; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.to-top { color: #cbd5e1; }
.to-top:hover { text-decoration: underline; }

/* Warning Page */
.warning-page { background: #000; }
.video-wrap { position: fixed; inset: 0; z-index: 0; background: #000; }
.video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }

/* Warning Overlay */
.overlay { position: relative; z-index: 1; }
.overlay-inner { width: 92%; max-width: 1100px; margin: 24px auto 0; padding: 8px 0; }
.overlay-left { display: flex; justify-content: flex-start; }
.overlay-buttons { display: inline-flex; gap: 8px; }

/* Grading Page */
.grade-wrap { width: 92%; max-width: 720px; margin: 48px auto; color: #e7e7e7; }
.grade-box { border: 1px solid #23262d; border-radius: 12px; background: #11141a; padding: 18px; }
.grade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.grade-row label { align-self: center; color: #cbd5e1; }
.grade-row input, .grade-row textarea, .grade-row select {
  width: 100%; padding: 10px 12px; border: 1px solid #343944; border-radius: 8px;
  font: inherit; color: #e7e7e7; background: #0f1115;
}
.grade-row textarea { grid-column: 1 / -1; }

/* Slider */
.mood { grid-column: 1 / -1; margin-top: 6px; }
.mood .scale { display: flex; align-items: center; gap: 10px; }
.mood .minmax { color: #9aa3af; font-size: 12px; }
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #343944;
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #e7e7e7;
  border: 1px solid #e7e7e7;
  cursor: pointer;
  margin-top: -6px;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #e7e7e7; border: 1px solid #e7e7e7; cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; background: #343944; border-radius: 4px; }
