:root {
  --red: #e91d25;
  --red-dark: #bb1118;
  --blue: #20386f;
  --blue-dark: #14264f;
  --cyan: #73cbd7;
  --ink: #182033;
  --muted: #627086;
  --line: #dce3ee;
  --soft: #f3f7fb;
  --white: #fff;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--soft) 420px, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-top: 6px solid var(--red);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(20, 38, 79, .08);
}

.ytp-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ytp-brand img {
  display: block;
  width: 236px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

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

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 750;
}

.top nav a:hover {
  background: #eaf7f9;
  color: var(--red-dark);
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 560px;
  padding: 58px 0 42px;
}

.hero-brand {
  position: relative;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 38, 79, .12);
}

.hero-brand::before {
  content: "";
  position: absolute;
  inset: -10px -10px auto -10px;
  height: 12px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--red) 48%, var(--blue));
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-copy {
  padding: 4px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.domain-search {
  max-width: 620px;
  margin: 28px 0 0;
}

.domain-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 850;
}

.domain-search div {
  display: flex;
  min-height: 54px;
  padding: 5px;
  background: var(--white);
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 38, 79, .08);
}

.domain-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  font-size: 17px;
  background: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn.secondary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn.secondary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn.ghost {
  color: var(--blue);
  background: var(--white);
  border-color: #b9c6da;
}

.btn.ghost:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.service-strip,
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 38px;
}

.service-strip > a,
.service-strip > div,
.card {
  display: block;
  min-height: 124px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(20, 38, 79, .08);
}

.service-strip > a:hover {
  border-bottom-color: var(--red);
  transform: translateY(-1px);
}

.service-strip strong,
.card h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 20px;
}

.service-strip span,
.card p,
.card li {
  color: var(--muted);
  line-height: 1.55;
}

.price {
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table th,
.table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.foot {
  margin-top: 24px;
  padding: 26px 18px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border-top: 5px solid var(--red);
}

.foot p { margin: 0; }

.login-shell,
.frame-shell {
  width: min(1280px, calc(100% - 24px));
  margin: 28px auto;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  min-height: 420px;
  padding: clamp(22px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(20, 38, 79, .12);
}

.login-mark {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--red);
  background: linear-gradient(180deg, #fff, #f7fbfd);
}

.login-mark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.login-copy h1 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
}

.login-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.login-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(20, 38, 79, .12);
}

.login-note {
  color: var(--muted);
  font-size: 14px;
}

.login-warning {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--blue-dark);
  background: #fff7e8;
  border: 1px solid #f3d28d;
  border-left: 5px solid var(--red);
  border-radius: 8px;
}

.login-warning span {
  color: var(--muted);
  line-height: 1.55;
}

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

  .ytp-brand img {
    width: min(100%, 270px);
    height: auto;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0;
  }

  .hero-brand {
    max-width: 460px;
  }

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

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-frame {
    height: 680px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .domain-search div {
    display: grid;
    gap: 6px;
  }

  .domain-search input,
  .domain-search .btn {
    min-height: 44px;
  }
}
