* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(67, 56, 202, 0.1), transparent 30%),
    #f7f7fb;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img,
video {
  max-width: 100%;
}

a {
  color: #4338ca;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
}

.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: bold;
  text-decoration: none;
}

.site-mark:hover {
  text-decoration: none;
  color: #4338ca;
}

.site-mark img {
  display: block;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: #eef2ff;
  color: #4338ca;
  text-decoration: none;
}

.site-nav .nav-cta {
  background: #111827;
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: #4338ca;
  color: #fff;
}

.hero {
  padding: 58px 24px 48px;
  text-align: center;
}

.hero-icon {
  display: block;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.16);
}

.eyebrow,
.brand {
  color: #6b7280;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 36px;
}

h2 {
  margin-top: 0;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #4b5563;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.actions.left {
  justify-content: flex-start;
}

.button,
button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  min-height: 44px;
  text-align: center;
}

.button:hover,
button:hover {
  text-decoration: none;
}

.primary {
  background: #4338ca;
  color: #fff;
}

.secondary {
  background: #e5e7eb;
  color: #111827;
}

.danger {
  background: #dc2626;
  color: #fff;
}

.small {
  padding: 7px 12px;
  font-size: 13px;
}

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

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

.card {
  margin-bottom: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.feature-section {
  margin-top: 18px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 26px;
}

.check-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #4338ca;
  box-shadow: 0 0 0 4px #eef2ff;
}

.notice-inline {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #4b5563;
}

.contact-list {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.contact-list p {
  margin: 8px 0;
}

.notice-card {
  margin-top: 18px;
}

.page {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  margin-top: 48px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  color: #111827;
  font-size: 17px;
}

.footer-brand span {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8faff;
  color: #4338ca;
  font-weight: 700;
  text-align: center;
}

.footer-links a:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  text-decoration: none;
}

.site-operator {
  max-width: 760px;
  margin: 14px auto 24px;
  padding: 0 12px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.operator-intro {
  color: #4b5563;
  font-size: 16px;
}

.topnav {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
}

.topnav a:hover {
  background: #eef2ff;
  text-decoration: none;
}

.form label {
  display: block;
  margin-bottom: 14px;
  font-weight: bold;
}

.inline-form {
  display: inline;
  margin: 0;
}

.inline-form button {
  white-space: nowrap;
}

.bot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.social-login {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.social-button {
  width: 100%;
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.social-button:disabled {
  cursor: default;
  opacity: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #6b7280;
  font-size: 14px;
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

input[type="file"] {
  padding: 8px;
  background: #fff;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-head h1 {
  margin: 0;
}

.checkbox {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: normal !important;
}

.checkbox input {
  width: auto;
  margin-top: 5px;
}

.muted {
  color: #6b7280;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.badge.ok {
  background: #dcfce7;
  color: #166534;
}

.badge.warn {
  background: #fef3c7;
  color: #92400e;
}

.list {
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

th {
  background: #f9fafb;
}

.video-preview {
  width: 100%;
  max-height: 560px;
  margin-bottom: 18px;
  background: #111;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .site-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 760px) {
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .site {
    padding: 14px;
  }

  .site-top {
    gap: 14px;
  }

  .site-mark span {
    font-size: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .site-nav .nav-cta {
    grid-column: span 2;
  }

  .hero {
    padding: 34px 8px;
  }

  .hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button,
  .actions button {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    min-height: 48px;
    border-radius: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 12px;
  }

  .topnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .topnav a {
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-links a {
    justify-content: center;
    min-height: 48px;
  }

  .site-operator {
    font-size: 13px;
  }

  th,
  td {
    padding: 9px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 24px;
  }

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

/* Final footer layout */
.site .footer {
  width: 100%;
  margin: 56px 0 0;
  padding: 34px;
  display: block;
  background: #111827;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.site .footer-brand {
  display: block;
  max-width: none;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.site .footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.site .footer-brand span {
  display: block;
  color: #cbd5e1;
  font-size: 15px;
}

.site .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.site .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 48px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.site .footer-links a:hover {
  background: #fff;
  border-color: #fff;
  color: #111827;
  text-decoration: none;
}

.site .site-operator {
  max-width: 820px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .site .footer {
    margin-top: 38px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .site .footer-brand {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .site .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site .footer-links a {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }
}
